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 1.965/1.965, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.164e-05/4.207e-05, allocations: 4 kB / 273.1 MB, free: 164 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 48.7 MB / 321.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4269/0.5441, allocations: 74.53 MB / 396.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.5444, allocations: 67.91 kB / 396.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009323/0.5537, allocations: 1.916 MB / 398.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5538, allocations: 3.938 kB / 398.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.5538, 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.000758/0.5546, allocations: 0.5261 MB / 398.9 MB, free: 12.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/0.5546, allocations: 12.03 kB / 398.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.915e-05/0.5547, allocations: 46.55 kB / 398.9 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.71e-05/0.5548, allocations: 15.91 kB / 399 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.555, allocations: 174.9 kB / 399.1 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.5551, allocations: 93.11 kB / 399.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.185e-05/0.5552, allocations: 12 kB / 399.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003765/0.5556, allocations: 132.2 kB / 399.4 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.5556, allocations: 0 / 399.4 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.5556, allocations: 8 kB / 399.4 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.5556, allocations: 3.984 kB / 399.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.5559, allocations: 71.92 kB / 399.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.5569, allocations: 0.5284 MB / 400 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.5573, allocations: 147.7 kB / 400.1 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.5575, allocations: 90.8 kB / 400.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.5576, allocations: 11.98 kB / 400.2 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000588/0.5582, allocations: 451.3 kB / 400.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.995e-06/0.5582, allocations: 0 / 400.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009161/0.5591, allocations: 388.4 kB / 401 MB, free: 10.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.5593, allocations: 251.3 kB / 401.3 MB, free: 9.789 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.5596, allocations: 128.8 kB / 401.4 MB, free: 9.656 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.681e-05/0.5596, allocations: 33.7 kB / 401.4 MB, free: 9.617 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.5598, allocations: 96.56 kB / 401.5 MB, free: 9.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.04e-05/0.5599, allocations: 39.5 kB / 401.6 MB, free: 9.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.02e-05/0.5599, allocations: 8 kB / 401.6 MB, free: 9.473 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5601, allocations: 326.8 kB / 401.9 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.5603, allocations: 48 kB / 401.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.5605, allocations: 111.7 kB / 402.1 MB, free: 8.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.5608, allocations: 204.4 kB / 402.3 MB, free: 8.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.5608, allocations: 3.938 kB / 402.3 MB, free: 8.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007544/0.5615, allocations: 393.8 kB / 402.6 MB, free: 8.305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.5617, allocations: 152.5 kB / 402.8 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.5617, allocations: 4 kB / 402.8 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.5617, allocations: 0 / 402.8 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.5619, allocations: 11.94 kB / 402.8 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.5619, allocations: 11.94 kB / 402.8 MB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.5622, allocations: 24.09 kB / 402.8 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.5622, allocations: 12 kB / 402.9 MB, free: 8.062 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.000259/0.5625, allocations: 261.9 kB / 403.1 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/0.5626, allocations: 23.89 kB / 403.1 MB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/0.5626, allocations: 8.625 kB / 403.1 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.5627, allocations: 4 kB / 403.1 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.5627, allocations: 4 kB / 403.2 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.5627, allocations: 3.953 kB / 403.2 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009721/0.5637, allocations: 0.5603 MB / 403.7 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.5637, allocations: 0 / 403.7 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.444e-05/0.5637, allocations: 7.938 kB / 403.7 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.023e-05/0.5638, allocations: 4 kB / 403.7 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.5638, allocations: 12 kB / 403.7 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.5638, allocations: 3.953 kB / 403.7 MB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5638, allocations: 0 / 403.7 MB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009884/0.5648, allocations: 0.5635 MB / 404.3 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.475e-05/0.5649, allocations: 88.97 kB / 404.4 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.531e-05/0.565, allocations: 16 kB / 404.4 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.5653, allocations: 23.98 kB / 404.4 MB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.5654, allocations: 15.98 kB / 404.4 MB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.535e-05/0.5655, allocations: 8 kB / 404.5 MB, free: 6.293 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001018/0.5656, allocations: 104.5 kB / 404.6 MB, free: 6.191 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5656, allocations: 0 / 404.6 MB, free: 6.191 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004829/0.5661, allocations: 60 kB / 404.6 MB, free: 6.133 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.001596/0.5677, allocations: 1.285 MB / 405.9 MB, free: 4.785 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007888/0.5685, allocations: 493.6 kB / 406.4 MB, free: 4.242 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.5685, allocations: 0 / 406.4 MB, free: 4.242 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005211/0.5691, allocations: 405.8 kB / 406.8 MB, free: 3.797 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.5693, allocations: 12 kB / 406.8 MB, free: 3.785 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.5704, allocations: 301.2 kB / 407.1 MB, free: 3.449 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.5708, allocations: 0.7123 MB / 407.8 MB, free: 2.711 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.933e-05/0.5709, allocations: 4.438 kB / 407.8 MB, free: 2.707 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.851e-05/0.571, allocations: 31.42 kB / 407.8 MB, free: 2.676 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.571, allocations: 0 / 407.8 MB, free: 2.676 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02938/0.6004, allocations: 3.048 MB / 410.9 MB, free: 15.68 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003517/0.6008, allocations: 136.2 kB / 411 MB, free: 15.46 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/3.124, allocations: 3.938 kB / 411 MB, free: 15.45 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