Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_OnDelay",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.629/2.629, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.205e-05/2.216e-05, allocations: 0 / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3802, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1745/0.5548, allocations: 80.25 MB / 434.7 MB, free: 14.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5551, allocations: 59.98 kB / 434.7 MB, free: 14.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01069/0.5658, allocations: 1.901 MB / 436.6 MB, free: 12.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5659, allocations: 0 / 436.6 MB, free: 12.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.5659, allocations: 4 kB / 436.6 MB, free: 12.88 MB / 378.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.000791/0.5667, allocations: 0.53 MB / 437.2 MB, free: 12.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.5668, allocations: 12.03 kB / 437.2 MB, free: 12.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.592e-05/0.5669, allocations: 19.86 kB / 437.2 MB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.567, allocations: 175 kB / 437.4 MB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.5672, allocations: 85.11 kB / 437.5 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.073e-05/0.5673, allocations: 12 kB / 437.5 MB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002585/0.5675, allocations: 59.98 kB / 437.5 MB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003436/0.5679, allocations: 128.1 kB / 437.7 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.5679, allocations: 3.938 kB / 437.7 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.568, allocations: 4 kB / 437.7 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.568, allocations: 7.953 kB / 437.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.569, allocations: 0.4899 MB / 438.2 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003372/0.5694, allocations: 135.7 kB / 438.3 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.5696, allocations: 90.73 kB / 438.4 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.5697, allocations: 4 kB / 438.4 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006102/0.5703, allocations: 460.1 kB / 438.8 MB, free: 10.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 3.376e-06/0.5703, allocations: 0 / 438.8 MB, free: 10.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008438/0.5712, allocations: 241.5 kB / 439.1 MB, free: 10.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.5713, allocations: 251.3 kB / 439.3 MB, free: 9.824 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.5715, allocations: 117.9 kB / 439.4 MB, free: 9.703 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.906e-05/0.5716, allocations: 37.69 kB / 439.5 MB, free: 9.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.626e-05/0.5717, allocations: 92.58 kB / 439.6 MB, free: 9.566 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.206e-05/0.5718, allocations: 43.5 kB / 439.6 MB, free: 9.523 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-05/0.5718, allocations: 4 kB / 439.6 MB, free: 9.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.572, allocations: 322.8 kB / 439.9 MB, free: 9.195 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.5721, allocations: 47.92 kB / 440 MB, free: 9.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.5724, allocations: 111.7 kB / 440.1 MB, free: 9.012 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/0.5727, allocations: 51.97 kB / 440.1 MB, free: 8.961 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.5727, allocations: 0 / 440.1 MB, free: 8.961 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007207/0.5734, allocations: 229.3 kB / 440.4 MB, free: 8.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.5736, allocations: 153.1 kB / 440.5 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.5736, allocations: 0 / 440.5 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.5736, allocations: 7.938 kB / 440.5 MB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.5738, allocations: 11.95 kB / 440.5 MB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.5738, allocations: 11.92 kB / 440.5 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.574, allocations: 16.19 kB / 440.5 MB, free: 8.504 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.5741, allocations: 16 kB / 440.6 MB, free: 8.488 MB / 378.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.0002861/0.5744, allocations: 257.9 kB / 440.8 MB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009253/0.5753, allocations: 289.3 kB / 441.1 MB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.584e-05/0.5754, allocations: 16.28 kB / 441.1 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.018e-05/0.5755, allocations: 16.58 kB / 441.1 MB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.5755, allocations: 7.984 kB / 441.1 MB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.5755, allocations: 7.984 kB / 441.1 MB, free: 7.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.5755, allocations: 0 / 441.1 MB, free: 7.871 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009442/0.5765, allocations: 470.8 kB / 441.6 MB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.5765, allocations: 4 kB / 441.6 MB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.09e-05/0.5765, allocations: 0 / 441.6 MB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.357e-06/0.5766, allocations: 3.953 kB / 441.6 MB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.176e-05/0.5766, allocations: 11.98 kB / 441.6 MB, free: 7.348 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.5766, allocations: 4 kB / 441.6 MB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.5766, allocations: 4 kB / 441.6 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000943/0.5776, allocations: 419.8 kB / 442 MB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.524e-05/0.5777, allocations: 88.92 kB / 442.1 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.183e-05/0.5778, allocations: 8 kB / 442.1 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.5781, allocations: 23.98 kB / 442.2 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.5782, allocations: 15.98 kB / 442.2 MB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/0.5783, allocations: 15.98 kB / 442.2 MB, free: 6.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.5784, allocations: 95.98 kB / 442.3 MB, free: 6.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5784, allocations: 3.938 kB / 442.3 MB, free: 6.633 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006205/0.579, allocations: 56 kB / 442.3 MB, free: 6.578 MB / 378.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.001559/0.5806, allocations: 1.131 MB / 443.5 MB, free: 5.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008538/0.5815, allocations: 472.9 kB / 443.9 MB, free: 4.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5815, allocations: 0 / 443.9 MB, free: 4.887 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000574/0.5821, allocations: 393.5 kB / 444.3 MB, free: 4.453 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.5824, allocations: 15.89 kB / 444.3 MB, free: 4.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.5836, allocations: 276 kB / 444.6 MB, free: 4.129 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.584, allocations: 0.7161 MB / 445.3 MB, free: 3.387 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.585e-05/0.584, allocations: 4.422 kB / 445.3 MB, free: 3.383 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.183e-05/0.5841, allocations: 35.42 kB / 445.4 MB, free: 3.348 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5841, allocations: 0 / 445.4 MB, free: 3.348 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04404/0.6282, allocations: 2.742 MB / 448.1 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003609/0.6286, allocations: 126.6 kB / 448.2 MB, free: 424 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.628/3.256, allocations: 0 / 448.2 MB, free: 424 kB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat