How do I fix this Simulink Assertation Error?

44 views (last 30 days)
J H
J H on 22 Feb 2017
Commented: xiangyu du on 14 Jul 2022
I am getting a Simulink assertation error when I run my model. My model looks like this:
I believe that the error is caused by the memory blocks because if I delete them and then reinsert them, the model works fine for one or two runs. Then, it gives the same error. I also can see that there is no "double" signal on the memory block, unlike the other signals.
How can I fix this error?
Thanks!
Full Error Code:
failed assertion in b:\matlab\toolbox\stateflow\src\stateflow\cdr\cdr_eml_propagation.cpp at line 639:
false
[ 0] 0x000000032c5df7e8 C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+04782056 SF::cdr_test_prop_flag+00838440
[ 1] 0x000000032c5d8feb C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+04755435 SF::cdr_test_prop_flag+00811819
[ 2] 0x000000032c5d7b0b C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+04750091 SF::cdr_test_prop_flag+00806475
[ 3] 0x000000032c92f47d C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+08254589 SF::prs_compile_data_properties_in_object+00004269
[ 4] 0x000000032c92e702 C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+08251138 SF::prs_compile_data_properties_in_object+00000818
[ 5] 0x000000032c931bd6 C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+08264662 SF::prs_register_unit_for_data+00004454
[ 6] 0x000000032d1a65ce C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+17130958 SF::mx2str_write_str+00031646
[ 7] 0x000000032cd66e9d C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+12676765 SF::sf_mexFunction+00002077
[ 8] 0x000000032cd66692 C:\Program Files\MATLAB\R2016b\bin\win64\stateflow.dll+12674706 SF::sf_mexFunction+00000018
[ 9] 0x00000000fc5fc5d1 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00116177 mexRunMexFile+00000129
[ 10] 0x00000000fc5fb2e2 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00111330 mexFeature_mexver+00001794
[ 11] 0x00000000fc5fa506 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00107782 mexUnlock+00020182
[ 12] 0x0000000015fe46de C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00018142 Mfh_file::dispatch_fh_impl+00000434
[ 13] 0x0000000015fe44fa C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00017658 Mfh_file::dispatch_fh_with_reuse+00000062
[ 14] 0x0000000016be5166 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00872806 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00783730
[ 15] 0x0000000016b640b7 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00344247 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00255171
[ 16] 0x0000000016bb20d9 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00663769 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00574693
[ 17] 0x00000000161539ec C:\Program Files\MATLAB\R2016b\bin\win64\m_interpreter.dll+00080364 inCallFcn+00000060
[ 18] 0x00000000f9d470eb C:\Program Files\MATLAB\R2016b\bin\win64\sl_services.dll+00880875 SlFeature::operator=+00001691
[ 19] 0x00000000f9d4cd3d C:\Program Files\MATLAB\R2016b\bin\win64\sl_services.dll+00904509 CMatlabCommand::execute+00000109
[ 20] 0x00000000f9d53ad4 C:\Program Files\MATLAB\R2016b\bin\win64\sl_services.dll+00932564 slsvFEVAL_NoThrow+00000100
[ 21] 0x0000000028ef7ef5 C:\Program Files\MATLAB\R2016b\toolbox\stateflow\stateflow\sf_sfun.mexw64+00098037 CGXE::JITEngine::generateClientSpecificJITFunctionTensors+00029269
[ 22] 0x0000000028ef2e4b C:\Program Files\MATLAB\R2016b\toolbox\stateflow\stateflow\sf_sfun.mexw64+00077387 CGXE::JITEngine::generateClientSpecificJITFunctionTensors+00008619
[ 23] 0x0000000028ef9e13 C:\Program Files\MATLAB\R2016b\toolbox\stateflow\stateflow\sf_sfun.mexw64+00106003 mexFunction+00000499
[ 24] 0x00000000fc5fc5d1 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00116177 mexRunMexFile+00000129
[ 25] 0x00000000fc5fb2e2 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00111330 mexFeature_mexver+00001794
[ 26] 0x00000000fc5fa506 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00107782 mexUnlock+00020182
[ 27] 0x0000000015fe46de C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00018142 Mfh_file::dispatch_fh_impl+00000434
[ 28] 0x0000000015fe44b6 C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00017590 Mfh_file::dispatch_fh+00000062
[ 29] 0x00000000160456ff C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00415487 mdAcquireMatlabFunction+00000295
[ 30] 0x0000000016045b78 C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00416632 mdDoMatlabFcnCall+00000116
[ 31] 0x000000013d2a5ffa C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+11624442 slDisplayErrorsAndReturn+00001066
[ 32] 0x00000000f9d4ce08 C:\Program Files\MATLAB\R2016b\bin\win64\sl_services.dll+00904712 CMatlabCommandNoWatermark::execute+00000056
[ 33] 0x000000013d2a6218 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+11624984 slDisplayErrorsAndReturn+00001608
[ 34] 0x000000013d8fc0ea C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+18268394 slSetStateflowChartAccessesModelInfo+00045098
[ 35] 0x000000013d8efba1 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+18217889 slRegisterPrmAssoc+00244993
[ 36] 0x00000000fb36dce6 C:\Program Files\MATLAB\R2016b\bin\win64\sl_propagation.dll+00122086 sl_propagation::PropMgr::TypesProp::SetCompDefaultPortTypeValue+00000102
[ 37] 0x00000000fb369505 C:\Program Files\MATLAB\R2016b\bin\win64\sl_propagation.dll+00103685 sl_propagation::PropMgr::TypesProp::GetConstrainedBlockAndInitTypesWithDefaults+00000421
[ 38] 0x00000000fb36ccf8 C:\Program Files\MATLAB\R2016b\bin\win64\sl_propagation.dll+00118008 sl_propagation::PropMgr::TypesProp::Propagate+00000280
[ 39] 0x00000000fb36890f C:\Program Files\MATLAB\R2016b\bin\win64\sl_propagation.dll+00100623 sl_propagation::PropMgr::TypesProp::Execute+00000863
[ 40] 0x000000013d29e2b2 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+11592370 SlDeploymentDiagramUtilities::getTsFromTID+00030466
[ 41] 0x000000013cf9cb68 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+08440680 compCanonicalIO::isActSrcDominating+00183960
[ 42] 0x000000013d086204 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+09396740 slmsg::WirelessQueueIntrf::getCompReaders+00102356
[ 43] 0x000000013d07d7eb C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+09361387 slmsg::WirelessQueueIntrf::getCompReaders+00067003
[ 44] 0x000000013d085f9b C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+09396123 slmsg::WirelessQueueIntrf::getCompReaders+00101739
[ 45] 0x000000013d083ee3 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+09387747 slmsg::WirelessQueueIntrf::getCompReaders+00093363
[ 46] 0x000000013d9484c5 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+18580677 ssAddFullBlockPathToStructuralCheckSumForInvariantInput+00105493
[ 47] 0x000000013d94cef6 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+18599670 ssAddFullBlockPathToStructuralCheckSumForInvariantInput+00124486
[ 48] 0x000000013d9523ec C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+18621420 ssAddFullBlockPathToStructuralCheckSumForInvariantInput+00146236
[ 49] 0x000000013d981b3f C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+18815807 ssAddFullBlockPathToStructuralCheckSumForInvariantInput+00340623
[ 50] 0x000000013c966de1 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+01928673 ExitPauseInDebuggerMenuSim+00002017
[ 51] 0x000000013d400804 C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll+13043716 SLGlue::simulationStartPauseContinue+00000212
[ 52] 0x000000017fab86b9 C:\Program Files\MATLAB\R2016b\bin\win64\sl_mi.dll+00296633 SLM3I::mi::initCosSFBlockOpenNotification+00031177
[ 53] 0x000000001dca946a C:\Program Files\MATLAB\R2016b\bin\win64\mcos_impl.dll+00103530
[ 54] 0x000000001dca8fbd C:\Program Files\MATLAB\R2016b\bin\win64\mcos_impl.dll+00102333
[ 55] 0x000000001dca8791 C:\Program Files\MATLAB\R2016b\bin\win64\mcos_impl.dll+00100241
[ 56] 0x000000001dceefd4 C:\Program Files\MATLAB\R2016b\bin\win64\mcos_impl.dll+00389076 mcos::plugins::init__pm_init+00073084
[ 57] 0x000000001dceeef1 C:\Program Files\MATLAB\R2016b\bin\win64\mcos_impl.dll+00388849 mcos::plugins::init__pm_init+00072857
[ 58] 0x000000001dceebb0 C:\Program Files\MATLAB\R2016b\bin\win64\mcos_impl.dll+00388016 mcos::plugins::init__pm_init+00072024
[ 59] 0x0000000015fe5b1f C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00023327 Mfh_MATLAB_fn::dispatch_fh+00000639
[ 60] 0x000000001dcacba5 C:\Program Files\MATLAB\R2016b\bin\win64\mcos_impl.dll+00117669
[ 61] 0x0000000016be5166 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00872806 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00783730
[ 62] 0x0000000016be3818 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00866328 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00777252
[ 63] 0x000000018008584c C:\Program Files\MATLAB\R2016b\bin\win64\libmx.dll+00546892 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 64] 0x000000001619095c C:\Program Files\MATLAB\R2016b\bin\win64\m_interpreter.dll+00330076 inRegisterMFunctionFromOpaqueArray+00130560
[ 65] 0x0000000015fe70ee C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00028910 mdLogging::~mdLogging+00000218
[ 66] 0x0000000015fe5b1f C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00023327 Mfh_MATLAB_fn::dispatch_fh+00000639
[ 67] 0x0000000016be5166 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00872806 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00783730
[ 68] 0x0000000016b640b7 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00344247 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00255171
[ 69] 0x0000000016bb20d9 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00663769 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00574693
[ 70] 0x00000000161539ec C:\Program Files\MATLAB\R2016b\bin\win64\m_interpreter.dll+00080364 inCallFcn+00000060
[ 71] 0x0000000016bb28a6 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00665766 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00576690
[ 72] 0x000000001615d057 C:\Program Files\MATLAB\R2016b\bin\win64\m_interpreter.dll+00118871 inCallFcnWithTrap+00000071
[ 73] 0x00000000f94cd419 C:\Program Files\MATLAB\R2016b\bin\win64\dastudio.dll+03003417 SafeCallMatlab+00000201
[ 74] 0x00000000f94c1a85 C:\Program Files\MATLAB\R2016b\bin\win64\dastudio.dll+02955909 ActionSchema::invokeCallback+00000117
[ 75] 0x00000000f94c8dcb C:\Program Files\MATLAB\R2016b\bin\win64\dastudio.dll+02985419 DigCallbackInvoker::invokeUDI+00000187
[ 76] 0x00000000f94c8cea C:\Program Files\MATLAB\R2016b\bin\win64\dastudio.dll+02985194 DigDefaultCallbackInvoker::invoke+00000058
[ 77] 0x00000000f95451bd C:\Program Files\MATLAB\R2016b\bin\win64\dastudio.dll+03494333 DeferredManager::get_instance+00000141
[ 78] 0x00000000fd01d347 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00578375 iqm::UserEvalPlugin::pre+00030679
[ 79] 0x00000000fd029e7c C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00630396 iqm::UserEvalPlugin::pre+00082700
[ 80] 0x00000000fd017480 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00554112 iqm::UserEvalPlugin::pre+00006416
[ 81] 0x00000000fd02c99a C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00641434 iqm::UserEvalPlugin::pre+00093738
[ 82] 0x00000000fcff9a37 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00432695 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000727
[ 83] 0x00000000fcffa08f C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00434319 iqm::PackagedTaskPlugin::execute+00000575
[ 84] 0x00000000fcff9aa9 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00432809 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000841
[ 85] 0x00000000fcff9f04 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00433924 iqm::PackagedTaskPlugin::execute+00000180
[ 86] 0x00000000fcfd42fa C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00279290 iqm::Iqm::setupIqmFcnPtrs+00071530
[ 87] 0x00000000fcfd41d3 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00278995 iqm::Iqm::setupIqmFcnPtrs+00071235
[ 88] 0x00000000fcfb95a5 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00169381 iqm::Iqm::deliver+00001045
[ 89] 0x00000000fb5fb545 C:\Program Files\MATLAB\R2016b\bin\win64\libmwbridge.dll+00046405 ioReadLine+00000293
[ 90] 0x00000000fb5fb342 C:\Program Files\MATLAB\R2016b\bin\win64\libmwbridge.dll+00045890 ioCmdLineEditSave+00019986
[ 91] 0x00000000fb5fb40b C:\Program Files\MATLAB\R2016b\bin\win64\libmwbridge.dll+00046091 ioReadLine+00000107
[ 92] 0x00000000fb609691 C:\Program Files\MATLAB\R2016b\bin\win64\libmwbridge.dll+00104081 mnDebugPrompt+00001521
[ 93] 0x00000000fb6091ba C:\Program Files\MATLAB\R2016b\bin\win64\libmwbridge.dll+00102842 mnDebugPrompt+00000282
[ 94] 0x00000000fb6098fa C:\Program Files\MATLAB\R2016b\bin\win64\libmwbridge.dll+00104698 mnParser+00000410
[ 95] 0x0000000015e26841 C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00223297 mcr::runtime::setInterpreterThreadToCurrent+00025585
[ 96] 0x0000000015e257d7 C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00219095 mcr::runtime::setInterpreterThreadToCurrent+00021383
[ 97] 0x0000000015e25853 C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00219219 mcr::runtime::setInterpreterThreadToCurrent+00021507
[ 98] 0x0000000015e26141 C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00221505 mcr::runtime::setInterpreterThreadToCurrent+00023793
[ 99] 0x00000000fd01d347 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00578375 iqm::UserEvalPlugin::pre+00030679
[100] 0x00000000fd029e7c C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00630396 iqm::UserEvalPlugin::pre+00082700
[101] 0x00000000fd017480 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00554112 iqm::UserEvalPlugin::pre+00006416
[102] 0x00000000fd02c99a C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00641434 iqm::UserEvalPlugin::pre+00093738
[103] 0x00000000fcff9a37 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00432695 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000727
[104] 0x00000000fcffa08f C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00434319 iqm::PackagedTaskPlugin::execute+00000575
[105] 0x00000000fcff9aa9 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00432809 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000841
[106] 0x00000000fcff9f04 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00433924 iqm::PackagedTaskPlugin::execute+00000180
[107] 0x00000000fcfd42fa C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00279290 iqm::Iqm::setupIqmFcnPtrs+00071530
[108] 0x00000000fcfd41d3 C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00278995 iqm::Iqm::setupIqmFcnPtrs+00071235
[109] 0x00000000fcfb9e5a C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00171610 iqm::Iqm::deliver+00003274
[110] 0x00000000fcfbad2f C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00175407 iqm::Iqm::deliver+00007071
[111] 0x0000000100108173 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01147251 services::system_events::PpeDispatchHook::dispatchOne+00019059
[112] 0x000000010010c3a3 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01164195 sysq::addProcessPendingEventsUnitTestHook+00001923
[113] 0x000000010010c580 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01164672 sysq::addProcessPendingEventsUnitTestHook+00002400
[114] 0x000000010010d685 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01169029 sysq::getCondition+00002917
[115] 0x000000010010e4b2 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01172658 svWS_ProcessPendingEvents+00000162
[116] 0x0000000015e26b7d C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00224125 mcr::runtime::setInterpreterThreadToCurrent+00026413
[117] 0x0000000015e2726a C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00225898 mcr::runtime::setInterpreterThreadToCurrent+00028186
[118] 0x0000000015e1e385 C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00189317 mcr_process_events+00010293
[119] 0x0000000015e202d2 C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00197330 mcr_process_events+00018306
[120] 0x0000000015d0bd0e C:\Program Files\MATLAB\R2016b\bin\win64\MVMLocal.dll+00245006 mvm_server::inproc::LocalFactory::terminate+00070846
[121] 0x00000000fa942cd9 C:\Program Files\MATLAB\R2016b\bin\win64\mvm.dll+01125593 mvm::detail::initLocalMvmHack+00000521
[122] 0x00000000fa9432a5 C:\Program Files\MATLAB\R2016b\bin\win64\mvm.dll+01127077 mvm::detail::SessionImpl::privateSession+00000373
[123] 0x00000000fa9434b1 C:\Program Files\MATLAB\R2016b\bin\win64\mvm.dll+01127601 mvm::detail::SessionImpl::privateSession+00000897
[124] 0x0000000140006fd5 C:\Program Files\MATLAB\R2016b\bin\win64\MATLAB.exe+00028629
[125] 0x0000000140007661 C:\Program Files\MATLAB\R2016b\bin\win64\MATLAB.exe+00030305
[126] 0x00007ff9adbc8102 C:\WINDOWS\system32\KERNEL32.DLL+00098562 BaseThreadInitThunk+00000034
[127] 0x00007ff9add1c5b4 C:\WINDOWS\SYSTEM32\ntdll.dll+00378292 RtlUserThreadStart+00000052
MATLAB stack trace:
false
Component:Stateflow | Category:Assertionerror
false
Component:Simulink | Category:Blockerror
  2 Comments
Michael Melzer
Michael Melzer on 20 Mar 2017
Same problem. If I open the feedback from the memory and run the model the compilation works and the model compiles. The calculation results are wrong due to the missing feedback. A second run of the model with reconnected feedback is probably not recompiled and runs correct.
Lalitesh Kumar
Lalitesh Kumar on 1 Sep 2020
Hi,
Did you solve this error during you time ? I am in the same situation please help me out:
An error occurred while running the simulation and the simulation was terminated
Caused by:
At time 10.000200, an assertion is triggered. Pressure before the Orifice SHOULD NOT be Negative.
Thanks,
Lalitesh

Sign in to comment.

Answers (1)

Michael Melzer
Michael Melzer on 21 Mar 2017
Yesterday I've been working a bit on this topic. For me the problem solved after defining input variable names different from output variable names. If the input variable remains unchanged I now have to reassign it to the output variable.

Categories

Find more on Get Started with Aerospace Blockset in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!