Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.233/2.233, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.717e-05/3.726e-05, allocations: 4 kB / 273.2 MB, free: 160 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 48.7 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4336/0.5397, allocations: 74.54 MB / 396.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003296/0.5401, allocations: 59.97 kB / 396.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01464/0.5547, allocations: 1.915 MB / 398.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.5548, allocations: 3.938 kB / 398.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.5548, allocations: 0 / 398.4 MB, free: 13.14 MB / 330.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.001093/0.5559, allocations: 0.5231 MB / 398.9 MB, free: 12.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/0.556, allocations: 11.97 kB / 398.9 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.5562, allocations: 46.56 kB / 399 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.5563, allocations: 19.91 kB / 399 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.5565, allocations: 178.9 kB / 399.2 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.5567, allocations: 85.11 kB / 399.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.25e-05/0.5568, allocations: 16 kB / 399.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005148/0.5574, allocations: 132.2 kB / 399.4 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.5574, allocations: 0 / 399.4 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.776e-05/0.5575, allocations: 8 kB / 399.4 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.5575, allocations: 4 kB / 399.4 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003899/0.5579, allocations: 71.91 kB / 399.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.5594, allocations: 0.5361 MB / 400 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.5599, allocations: 139.8 kB / 400.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.5603, allocations: 90.58 kB / 400.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.5604, allocations: 0 / 400.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008557/0.5612, allocations: 459.6 kB / 400.7 MB, free: 10.51 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.336e-06/0.5613, allocations: 0 / 400.7 MB, free: 10.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001404/0.5627, allocations: 384.3 kB / 401.1 MB, free: 10.1 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002235/0.5629, allocations: 243.3 kB / 401.3 MB, free: 9.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.5632, allocations: 132.8 kB / 401.4 MB, free: 9.672 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.073e-05/0.5633, allocations: 33.7 kB / 401.5 MB, free: 9.633 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.5634, allocations: 92.58 kB / 401.6 MB, free: 9.539 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.5635, allocations: 43.5 kB / 401.6 MB, free: 9.496 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.362e-05/0.5636, allocations: 4 kB / 401.6 MB, free: 9.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.5638, allocations: 326.8 kB / 401.9 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.5641, allocations: 55.92 kB / 402 MB, free: 9.109 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.5644, allocations: 111.7 kB / 402.1 MB, free: 8.973 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004253/0.5649, allocations: 200.5 kB / 402.3 MB, free: 8.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.5649, allocations: 0 / 402.3 MB, free: 8.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001279/0.5662, allocations: 393.8 kB / 402.7 MB, free: 8.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001927/0.5664, allocations: 148.5 kB / 402.8 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.5665, allocations: 3.984 kB / 402.8 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.167e-05/0.5665, allocations: 4 kB / 402.8 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.5667, allocations: 8 kB / 402.8 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.217e-05/0.5668, allocations: 7.938 kB / 402.8 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000343/0.5671, allocations: 32.03 kB / 402.9 MB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.381e-05/0.5672, allocations: 16 kB / 402.9 MB, free: 8.078 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.0004047/0.5676, allocations: 266.2 kB / 403.1 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.5e-05/0.5678, allocations: 15.91 kB / 403.2 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.213e-05/0.5678, allocations: 16.61 kB / 403.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.974e-06/0.5679, allocations: 0 / 403.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.5679, allocations: 8 kB / 403.2 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.5679, allocations: 0 / 403.2 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.5694, allocations: 0.5602 MB / 403.7 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.5694, allocations: 0 / 403.7 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.5695, allocations: 11.92 kB / 403.7 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/0.5695, allocations: 0 / 403.7 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.617e-05/0.5696, allocations: 12 kB / 403.8 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-05/0.5696, allocations: 4 kB / 403.8 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.625e-06/0.5696, allocations: 3.953 kB / 403.8 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.5711, allocations: 0.5555 MB / 404.3 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.556e-05/0.5713, allocations: 88.97 kB / 404.4 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.962e-05/0.5714, allocations: 11.98 kB / 404.4 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.5718, allocations: 27.94 kB / 404.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.5719, allocations: 23.95 kB / 404.5 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.758e-05/0.572, allocations: 8 kB / 404.5 MB, free: 6.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001442/0.5722, allocations: 104.5 kB / 404.6 MB, free: 6.203 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.5722, allocations: 0 / 404.6 MB, free: 6.203 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000786/0.573, allocations: 60 kB / 404.6 MB, free: 6.145 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.002306/0.5753, allocations: 1.273 MB / 405.9 MB, free: 4.809 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.5766, allocations: 484.9 kB / 406.4 MB, free: 4.273 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.021e-05/0.5766, allocations: 4.375 kB / 406.4 MB, free: 4.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008214/0.5775, allocations: 401.5 kB / 406.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.5779, allocations: 16 kB / 406.8 MB, free: 3.812 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.5794, allocations: 297.2 kB / 407.1 MB, free: 3.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005065/0.5799, allocations: 0.716 MB / 407.8 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.455e-05/0.58, allocations: 8.438 kB / 407.8 MB, free: 2.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.5801, allocations: 27.42 kB / 407.8 MB, free: 2.703 MB / 330.7 MB Notification: Performance of SimCode: time 1.353e-06/0.5801, allocations: 0 / 407.8 MB, free: 2.703 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1395/0.7197, allocations: 3.039 MB / 410.9 MB, free: 15.72 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003038/0.7201, allocations: 149.6 kB / 411 MB, free: 15.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.5/3.22, allocations: 0 / 411 MB, free: 15.48 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat