Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.618/2.618, allocations: 249.5 MB / 261.6 MB, free: 2.156 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.809e-05/3.82e-05, allocations: 7.984 kB / 323.5 MB, free: 4.219 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4379, allocations: 58.84 MB / 382.3 MB, free: 10.21 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1719/0.6098, allocations: 88.99 MB / 471.3 MB, free: 3.402 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.6101, allocations: 63.97 kB / 471.4 MB, free: 3.34 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02742/0.6376, allocations: 5.971 MB / 477.3 MB, free: 13.36 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6376, allocations: 0 / 477.3 MB, free: 13.36 MB / 410.8 MB Notification: Performance of Transformations before backend: time 2.843e-05/0.6377, allocations: 8 kB / 477.3 MB, free: 13.36 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001036/0.6387, allocations: 0.5905 MB / 477.9 MB, free: 12.7 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.6388, allocations: 8.031 kB / 477.9 MB, free: 12.69 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.388e-05/0.6389, allocations: 46.5 kB / 478 MB, free: 12.63 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.639, allocations: 23.81 kB / 478 MB, free: 12.61 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006228/0.6396, allocations: 301.5 kB / 478.3 MB, free: 12.27 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001245/0.6398, allocations: 89.11 kB / 478.4 MB, free: 12.17 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.6398, allocations: 16 kB / 478.4 MB, free: 12.15 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.6402, allocations: 149.6 kB / 478.5 MB, free: 11.98 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.6403, allocations: 0 / 478.5 MB, free: 11.98 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.6403, allocations: 4 kB / 478.5 MB, free: 11.98 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.6403, allocations: 0 / 478.5 MB, free: 11.98 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.6406, allocations: 87.91 kB / 478.6 MB, free: 11.89 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.6419, allocations: 0.6259 MB / 479.3 MB, free: 11.21 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.6423, allocations: 164 kB / 479.4 MB, free: 11.02 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.6425, allocations: 82.58 kB / 479.5 MB, free: 10.93 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.6426, allocations: 3.984 kB / 479.5 MB, free: 10.93 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00056/0.6431, allocations: 421.3 kB / 479.9 MB, free: 10.44 MB / 410.8 MB Notification: Performance of pre-optimization done (n=23): time 2.935e-06/0.6432, allocations: 4 kB / 479.9 MB, free: 10.44 MB / 410.8 MB Notification: Performance of matching and sorting (n=23): time 0.0008976/0.6441, allocations: 354.3 kB / 480.3 MB, free: 10.07 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.6442, allocations: 213.7 kB / 480.5 MB, free: 9.809 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000554/0.6448, allocations: 300.9 kB / 480.8 MB, free: 9.504 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.6449, allocations: 33.7 kB / 480.8 MB, free: 9.465 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.645, allocations: 128.6 kB / 480.9 MB, free: 9.336 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.419e-05/0.6451, allocations: 59.33 kB / 481 MB, free: 9.277 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.6451, allocations: 0 / 481 MB, free: 9.277 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.6453, allocations: 338.8 kB / 481.3 MB, free: 8.938 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.6455, allocations: 56.17 kB / 481.4 MB, free: 8.883 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.6458, allocations: 138.4 kB / 481.5 MB, free: 8.711 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.646, allocations: 145.1 kB / 481.6 MB, free: 8.551 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.646, allocations: 0 / 481.6 MB, free: 8.551 MB / 410.8 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007195/0.6468, allocations: 322.2 kB / 482 MB, free: 8.211 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.851e-05/0.6469, allocations: 97.09 kB / 482.1 MB, free: 8.098 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.6469, allocations: 4 kB / 482.1 MB, free: 8.094 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.6469, allocations: 8.203 kB / 482.1 MB, free: 8.086 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.6471, allocations: 23.89 kB / 482.1 MB, free: 8.062 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.6472, allocations: 4 kB / 482.1 MB, free: 8.059 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.6474, allocations: 27.98 kB / 482.1 MB, free: 8.031 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.6475, allocations: 12 kB / 482.1 MB, free: 8.02 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.000256/0.6477, allocations: 233.1 kB / 482.4 MB, free: 7.766 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.6478, allocations: 31.72 kB / 482.4 MB, free: 7.734 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005182/0.6484, allocations: 205 kB / 482.6 MB, free: 7.52 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.6484, allocations: 4 kB / 482.6 MB, free: 7.516 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.6484, allocations: 3.953 kB / 482.6 MB, free: 7.512 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.6484, allocations: 4.078 kB / 482.6 MB, free: 7.508 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004512/0.6489, allocations: 305.3 kB / 482.9 MB, free: 7.16 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.6489, allocations: 0 / 482.9 MB, free: 7.16 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-05/0.649, allocations: 8 kB / 482.9 MB, free: 7.152 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.649, allocations: 0 / 482.9 MB, free: 7.152 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.6491, allocations: 12 kB / 482.9 MB, free: 7.141 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.6491, allocations: 8.156 kB / 482.9 MB, free: 7.133 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6491, allocations: 0 / 482.9 MB, free: 7.133 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009167/0.65, allocations: 458.7 kB / 483.4 MB, free: 6.629 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.6502, allocations: 112.8 kB / 483.5 MB, free: 6.5 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.6503, allocations: 19.95 kB / 483.5 MB, free: 6.48 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.6505, allocations: 19.98 kB / 483.5 MB, free: 6.461 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.6507, allocations: 19.97 kB / 483.5 MB, free: 6.441 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.27e-05/0.6507, allocations: 16 kB / 483.6 MB, free: 6.426 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.0004023/0.6511, allocations: 229.3 kB / 483.8 MB, free: 6.203 MB / 410.8 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6511, allocations: 0 / 483.8 MB, free: 6.203 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.0005237/0.6517, allocations: 68 kB / 483.9 MB, free: 6.137 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.002477/0.6542, allocations: 1.445 MB / 485.3 MB, free: 4.711 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0008301/0.655, allocations: 381.9 kB / 485.7 MB, free: 4.301 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.655, allocations: 0 / 485.7 MB, free: 4.301 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000518/0.6556, allocations: 342.1 kB / 486 MB, free: 3.93 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004583/0.656, allocations: 36.42 kB / 486 MB, free: 3.895 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.6575, allocations: 446.2 kB / 486.5 MB, free: 3.414 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.658, allocations: 0.7561 MB / 487.2 MB, free: 2.633 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.0001888/0.6582, allocations: 37.69 kB / 487.3 MB, free: 2.598 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002039/0.6584, allocations: 67.41 kB / 487.3 MB, free: 2.531 MB / 410.8 MB Notification: Performance of SimCode: time 1.082e-06/0.6584, allocations: 0 / 487.3 MB, free: 2.531 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04584/0.7043, allocations: 5.544 MB / 492.9 MB, free: 13.02 MB / 426.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002808/0.7047, allocations: 179.2 kB / 493.1 MB, free: 12.79 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.786/3.491, allocations: 4.062 kB / 493.1 MB, free: 12.78 MB / 426.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat