Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.575/2.575, allocations: 235 MB / 242.2 MB, free: 15.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.081e-05/2.093e-05, allocations: 0 / 299.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3956, allocations: 54.85 MB / 354.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.5433, allocations: 80.25 MB / 434.6 MB, free: 1.957 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.5436, allocations: 63.97 kB / 434.6 MB, free: 1.895 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008719/0.5524, allocations: 1.89 MB / 436.5 MB, free: 8 kB / 362.7 MB Notification: Performance of FrontEnd: time 4.007e-06/0.5524, allocations: 0 / 436.5 MB, free: 8 kB / 362.7 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.5524, allocations: 7.938 kB / 436.5 MB, free: 0 / 362.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.0006901/0.5531, allocations: 0.5338 MB / 437.1 MB, free: 15.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.5532, allocations: 12.03 kB / 437.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.206e-05/0.5533, allocations: 19.84 kB / 437.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.5534, allocations: 171.1 kB / 437.3 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.5536, allocations: 89.11 kB / 437.4 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.09e-05/0.5536, allocations: 12 kB / 437.4 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002248/0.5539, allocations: 63.97 kB / 437.4 MB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.5542, allocations: 128.1 kB / 437.6 MB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.5542, allocations: 0 / 437.6 MB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.586e-05/0.5542, allocations: 4 kB / 437.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.5542, allocations: 3.953 kB / 437.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008639/0.5551, allocations: 0.5016 MB / 438.1 MB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.5554, allocations: 127.7 kB / 438.2 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.5556, allocations: 90.8 kB / 438.3 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.5556, allocations: 3.938 kB / 438.3 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004872/0.5561, allocations: 443.3 kB / 438.7 MB, free: 13.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.365e-06/0.5562, allocations: 4 kB / 438.7 MB, free: 13.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007108/0.5569, allocations: 253.4 kB / 439 MB, free: 13.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.557, allocations: 247.3 kB / 439.2 MB, free: 12.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.5572, allocations: 128.6 kB / 439.3 MB, free: 12.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.5572, allocations: 29.7 kB / 439.4 MB, free: 12.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.55e-05/0.5573, allocations: 92.73 kB / 439.5 MB, free: 12.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.174e-05/0.5574, allocations: 43.5 kB / 439.5 MB, free: 12.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.698e-05/0.5574, allocations: 4 kB / 439.5 MB, free: 12.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5576, allocations: 322.8 kB / 439.8 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.5577, allocations: 51.98 kB / 439.9 MB, free: 12.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.5579, allocations: 99.7 kB / 440 MB, free: 12.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.5581, allocations: 63.91 kB / 440 MB, free: 12.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5581, allocations: 0 / 440 MB, free: 12.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005783/0.5587, allocations: 223 kB / 440.3 MB, free: 11.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.5588, allocations: 152.5 kB / 440.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.5589, allocations: 0 / 440.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.5589, allocations: 4.188 kB / 440.4 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.559, allocations: 27.88 kB / 440.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.559, allocations: 4 kB / 440.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.5592, allocations: 15.94 kB / 440.5 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.766e-05/0.5593, allocations: 19.92 kB / 440.5 MB, free: 11.61 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.000272/0.5596, allocations: 261.9 kB / 440.7 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007071/0.5603, allocations: 285.4 kB / 441 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.434e-05/0.5604, allocations: 27.91 kB / 441 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.98e-05/0.5604, allocations: 16.56 kB / 441.1 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5604, allocations: 0 / 441.1 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.5604, allocations: 0 / 441.1 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.5605, allocations: 4 kB / 441.1 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007834/0.5613, allocations: 462.9 kB / 441.5 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5613, allocations: 0 / 441.5 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.263e-05/0.5613, allocations: 7.984 kB / 441.5 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.5613, allocations: 7.953 kB / 441.5 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.526e-05/0.5614, allocations: 8 kB / 441.5 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.5614, allocations: 4 kB / 441.5 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5614, allocations: 3.938 kB / 441.5 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007844/0.5622, allocations: 414.9 kB / 441.9 MB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.92e-05/0.5623, allocations: 92.92 kB / 442 MB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.038e-05/0.5624, allocations: 8 kB / 442 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.5626, allocations: 23.98 kB / 442.1 MB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.5627, allocations: 23.95 kB / 442.1 MB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.5628, allocations: 8 kB / 442.1 MB, free: 9.852 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001029/0.5629, allocations: 100.2 kB / 442.2 MB, free: 9.754 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5629, allocations: 3.938 kB / 442.2 MB, free: 9.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005107/0.5634, allocations: 60 kB / 442.3 MB, free: 9.691 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.001287/0.5647, allocations: 1.125 MB / 443.4 MB, free: 8.527 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006467/0.5654, allocations: 465.1 kB / 443.8 MB, free: 8.012 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5654, allocations: 3.938 kB / 443.8 MB, free: 8.008 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004548/0.5659, allocations: 393.5 kB / 444.2 MB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.5661, allocations: 15.95 kB / 444.2 MB, free: 7.559 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009166/0.5671, allocations: 277.1 kB / 444.5 MB, free: 7.246 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.5674, allocations: 0.7197 MB / 445.2 MB, free: 6.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.638e-05/0.5675, allocations: 4.438 kB / 445.2 MB, free: 6.496 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.518e-05/0.5676, allocations: 27.42 kB / 445.3 MB, free: 6.469 MB / 378.7 MB Notification: Performance of SimCode: time 3.707e-06/0.5676, allocations: 0 / 445.3 MB, free: 6.469 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03944/0.607, allocations: 2.752 MB / 448 MB, free: 3.734 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002995/0.6074, allocations: 114 kB / 448.1 MB, free: 3.543 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.462/3.07, allocations: 0 / 448.1 MB, free: 3.543 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat