Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.573e-05/2.585e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 48.71 MB / 316.3 MB, free: 4.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4218/0.5261, allocations: 74.12 MB / 390.4 MB, free: 2.18 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.5264, allocations: 64.09 kB / 390.5 MB, free: 2.148 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009238/0.5357, allocations: 1.895 MB / 392.4 MB, free: 492 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5357, allocations: 0 / 392.4 MB, free: 492 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.5358, allocations: 4 kB / 392.4 MB, free: 488 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007649/0.5365, allocations: 0.5341 MB / 392.9 MB, free: 15.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.5366, allocations: 8.031 kB / 392.9 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.291e-05/0.5367, allocations: 19.89 kB / 392.9 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.5369, allocations: 174.8 kB / 393.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.537, allocations: 85.11 kB / 393.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.576e-05/0.537, allocations: 12 kB / 393.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002365/0.5373, allocations: 62.66 kB / 393.3 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.5376, allocations: 130.9 kB / 393.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.5376, allocations: 0 / 393.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.5377, allocations: 4 kB / 393.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.5377, allocations: 7.984 kB / 393.4 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.5391, allocations: 0.4972 MB / 393.9 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.5395, allocations: 129.7 kB / 394 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.5397, allocations: 101.1 kB / 394.1 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.5397, allocations: 0 / 394.1 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005158/0.5402, allocations: 444.3 kB / 394.6 MB, free: 14.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.843e-06/0.5402, allocations: 0 / 394.6 MB, free: 14.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007277/0.541, allocations: 247.1 kB / 394.8 MB, free: 13.97 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/0.5412, allocations: 251.2 kB / 395.1 MB, free: 13.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.5413, allocations: 126.9 kB / 395.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.5414, allocations: 29.7 kB / 395.2 MB, free: 13.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.74e-05/0.5415, allocations: 162.7 kB / 395.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.229e-05/0.5415, allocations: 43 kB / 395.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.524e-05/0.5416, allocations: 0 / 395.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.5417, allocations: 326.7 kB / 395.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.5419, allocations: 43.25 kB / 395.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.5421, allocations: 106.3 kB / 395.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.5423, allocations: 59.03 kB / 395.9 MB, free: 12.83 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.5423, allocations: 0 / 395.9 MB, free: 12.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005953/0.5429, allocations: 227.8 kB / 396.2 MB, free: 12.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.5431, allocations: 148.4 kB / 396.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.5431, allocations: 0 / 396.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.5431, allocations: 7.984 kB / 396.3 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.5432, allocations: 11.94 kB / 396.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.5433, allocations: 4.188 kB / 396.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.5435, allocations: 19.98 kB / 396.3 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.7e-05/0.5435, allocations: 12 kB / 396.4 MB, free: 12.42 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002725/0.5438, allocations: 261.2 kB / 396.6 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007085/0.5445, allocations: 283.1 kB / 396.9 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.341e-05/0.5446, allocations: 23.8 kB / 396.9 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.225e-05/0.5447, allocations: 16.56 kB / 396.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.5447, allocations: 0 / 396.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.5447, allocations: 0 / 396.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.5447, allocations: 7.938 kB / 396.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008052/0.5455, allocations: 472.1 kB / 397.4 MB, free: 11.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5456, allocations: 4 kB / 397.4 MB, free: 11.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.125e-05/0.5456, allocations: 4 kB / 397.4 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.5456, allocations: 0 / 397.4 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.5456, allocations: 8 kB / 397.4 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/0.5457, allocations: 11.94 kB / 397.4 MB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.5457, allocations: 0 / 397.4 MB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007904/0.5465, allocations: 419.7 kB / 397.8 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.615e-05/0.5466, allocations: 85.02 kB / 397.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.168e-05/0.5466, allocations: 19.94 kB / 397.9 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/0.5469, allocations: 16 kB / 397.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.547, allocations: 19.84 kB / 398 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.5471, allocations: 15.81 kB / 398 MB, free: 10.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.789e-05/0.5472, allocations: 98.95 kB / 398.1 MB, free: 10.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5472, allocations: 0 / 398.1 MB, free: 10.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005243/0.5477, allocations: 56 kB / 398.1 MB, free: 10.72 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001365/0.5491, allocations: 1.131 MB / 399.3 MB, free: 9.617 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006996/0.5498, allocations: 465.3 kB / 399.7 MB, free: 9.176 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5498, allocations: 0 / 399.7 MB, free: 9.176 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004931/0.5504, allocations: 400.6 kB / 400.1 MB, free: 8.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.5506, allocations: 8 kB / 400.1 MB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.5517, allocations: 299 kB / 400.4 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.5521, allocations: 0.7122 MB / 401.1 MB, free: 7.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.639e-05/0.5522, allocations: 37.23 kB / 401.2 MB, free: 7.746 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5522, allocations: 192 / 401.2 MB, free: 7.746 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.601/3.154, allocations: 2.366 MB / 403.5 MB, free: 5.395 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat