Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.415/2.415, allocations: 235 MB / 247.6 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.924e-05/2.924e-05, allocations: 0 / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.393, allocations: 54.86 MB / 359.8 MB, free: 2.312 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1515/0.5445, allocations: 80.92 MB / 440.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.5448, allocations: 64.94 kB / 440.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009385/0.5542, allocations: 1.908 MB / 442.7 MB, free: 14 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.498e-06/0.5543, allocations: 4 kB / 442.7 MB, free: 14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.5543, allocations: 0 / 442.7 MB, free: 14 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.0007566/0.5551, allocations: 0.5261 MB / 443.3 MB, free: 13.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.5551, allocations: 11.97 kB / 443.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.902e-05/0.5552, allocations: 46.55 kB / 443.3 MB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.73e-05/0.5553, allocations: 18.11 kB / 443.3 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.5555, allocations: 171.8 kB / 443.5 MB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.5556, allocations: 93.11 kB / 443.6 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/0.5557, allocations: 16 kB / 443.6 MB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.556, allocations: 137.2 kB / 443.8 MB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.556, allocations: 0 / 443.8 MB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.5561, allocations: 8 kB / 443.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.5561, allocations: 7.953 kB / 443.8 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.5563, allocations: 67.97 kB / 443.8 MB, free: 12.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009886/0.5573, allocations: 0.5284 MB / 444.4 MB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.5577, allocations: 147.7 kB / 444.5 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.5579, allocations: 90.8 kB / 444.6 MB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.558, allocations: 4 kB / 444.6 MB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005898/0.5586, allocations: 459.3 kB / 445.1 MB, free: 11.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 3.196e-06/0.5586, allocations: 0 / 445.1 MB, free: 11.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008767/0.5595, allocations: 383.1 kB / 445.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/0.5597, allocations: 247.3 kB / 445.7 MB, free: 10.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.5598, allocations: 126 kB / 445.8 MB, free: 10.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.5599, allocations: 37.69 kB / 445.8 MB, free: 10.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.56, allocations: 163 kB / 446 MB, free: 10.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.426e-05/0.5601, allocations: 39.52 kB / 446 MB, free: 10.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-05/0.5601, allocations: 4 kB / 446 MB, free: 10.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.5603, allocations: 322.8 kB / 446.3 MB, free: 9.965 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.5605, allocations: 53.31 kB / 446.4 MB, free: 9.914 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.5607, allocations: 111.7 kB / 446.5 MB, free: 9.777 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.561, allocations: 197 kB / 446.7 MB, free: 9.555 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.561, allocations: 3.938 kB / 446.7 MB, free: 9.551 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007685/0.5618, allocations: 386.8 kB / 447.1 MB, free: 9.137 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.5619, allocations: 156.4 kB / 447.2 MB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.562, allocations: 4 kB / 447.2 MB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.562, allocations: 4 kB / 447.2 MB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.5621, allocations: 7.984 kB / 447.2 MB, free: 8.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.5621, allocations: 4 kB / 447.3 MB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.5624, allocations: 23.23 kB / 447.3 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.677e-05/0.5624, allocations: 12.19 kB / 447.3 MB, free: 8.902 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.0002785/0.5627, allocations: 265.9 kB / 447.5 MB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.059e-05/0.5628, allocations: 23.86 kB / 447.6 MB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.577e-05/0.5629, allocations: 9.656 kB / 447.6 MB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.5629, allocations: 4 kB / 447.6 MB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.5629, allocations: 0 / 447.6 MB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.5629, allocations: 3.984 kB / 447.6 MB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000972/0.5639, allocations: 0.568 MB / 448.2 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.5639, allocations: 0 / 448.2 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.742e-05/0.5639, allocations: 0.6562 kB / 448.2 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.564, allocations: 4 kB / 448.2 MB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.92e-05/0.564, allocations: 11.98 kB / 448.2 MB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.564, allocations: 3.938 kB / 448.2 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.564, allocations: 7.938 kB / 448.2 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009819/0.565, allocations: 0.5564 MB / 448.7 MB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.93e-05/0.5651, allocations: 88.92 kB / 448.8 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.55e-05/0.5652, allocations: 12 kB / 448.8 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.5655, allocations: 19.98 kB / 448.9 MB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.5656, allocations: 27.97 kB / 448.9 MB, free: 7.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.5657, allocations: 11.94 kB / 448.9 MB, free: 7.117 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001035/0.5658, allocations: 105.5 kB / 449 MB, free: 7.016 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5658, allocations: 0 / 449 MB, free: 7.016 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005117/0.5663, allocations: 60 kB / 449.1 MB, free: 6.957 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.001583/0.5679, allocations: 1.275 MB / 450.3 MB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008111/0.5688, allocations: 480.9 kB / 450.8 MB, free: 5.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5688, allocations: 0 / 450.8 MB, free: 5.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005387/0.5693, allocations: 405.5 kB / 451.2 MB, free: 4.645 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.5696, allocations: 16.33 kB / 451.2 MB, free: 4.629 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.5708, allocations: 321.3 kB / 451.5 MB, free: 4.266 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.5712, allocations: 0.7121 MB / 452.2 MB, free: 3.527 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.743e-05/0.5713, allocations: 35.55 kB / 452.3 MB, free: 3.492 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5713, allocations: 3.938 kB / 452.3 MB, free: 3.488 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.718/3.29, allocations: 2.365 MB / 454.6 MB, free: 1.141 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat