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.371/2.371, allocations: 235 MB / 247.2 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.211e-05, allocations: 0 / 305 MB, free: 5.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.3928, allocations: 54.85 MB / 359.8 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.5428, allocations: 80.91 MB / 440.8 MB, free: 40 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.5431, allocations: 65.16 kB / 440.8 MB, free: 15.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00902/0.5522, allocations: 1.917 MB / 442.7 MB, free: 14.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5522, allocations: 0 / 442.7 MB, free: 14.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.5522, allocations: 0 / 442.7 MB, free: 14.08 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.0007064/0.5529, allocations: 0.5305 MB / 443.3 MB, free: 13.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.553, allocations: 12.03 kB / 443.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.222e-05/0.5531, allocations: 42.55 kB / 443.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.909e-05/0.5532, allocations: 21.23 kB / 443.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.5533, allocations: 170.9 kB / 443.5 MB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.5534, allocations: 93.11 kB / 443.6 MB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/0.5535, allocations: 15.98 kB / 443.6 MB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.5539, allocations: 137.3 kB / 443.8 MB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.5539, allocations: 0 / 443.8 MB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.5539, allocations: 4 kB / 443.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.5539, allocations: 5.266 kB / 443.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002315/0.5542, allocations: 71.92 kB / 443.8 MB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009421/0.5551, allocations: 0.5284 MB / 444.4 MB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.5555, allocations: 147.7 kB / 444.5 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.5557, allocations: 94.8 kB / 444.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.5557, allocations: 4 kB / 444.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000527/0.5563, allocations: 455.3 kB / 445 MB, free: 11.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.415e-06/0.5563, allocations: 4 kB / 445.1 MB, free: 11.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008584/0.5572, allocations: 378 kB / 445.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/0.5573, allocations: 247.5 kB / 445.7 MB, free: 10.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.5575, allocations: 132.2 kB / 445.8 MB, free: 10.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.343e-05/0.5576, allocations: 33.7 kB / 445.8 MB, free: 10.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.874e-05/0.5576, allocations: 96.56 kB / 445.9 MB, free: 10.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.26e-05/0.5577, allocations: 43.5 kB / 446 MB, free: 10.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.789e-05/0.5577, allocations: 4 kB / 446 MB, free: 10.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5579, allocations: 330.8 kB / 446.3 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.5581, allocations: 53.31 kB / 446.3 MB, free: 10.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.5583, allocations: 108.4 kB / 446.4 MB, free: 9.914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.5585, allocations: 205.3 kB / 446.6 MB, free: 9.684 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.5586, allocations: 0 / 446.6 MB, free: 9.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007373/0.5593, allocations: 392.4 kB / 447 MB, free: 9.266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.5594, allocations: 152.5 kB / 447.2 MB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.5595, allocations: 8.188 kB / 447.2 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.5595, allocations: 0 / 447.2 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.5596, allocations: 16.67 kB / 447.2 MB, free: 9.062 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.5596, allocations: 4 kB / 447.2 MB, free: 9.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.5598, allocations: 16 kB / 447.2 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.501e-05/0.5599, allocations: 15.98 kB / 447.2 MB, free: 9.027 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.0002624/0.5602, allocations: 265.9 kB / 447.5 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.059e-05/0.5603, allocations: 27.77 kB / 447.5 MB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.479e-05/0.5603, allocations: 8.859 kB / 447.5 MB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.5603, allocations: 4 kB / 447.5 MB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.5603, allocations: 5.109 kB / 447.5 MB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.5604, allocations: 0 / 447.5 MB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009289/0.5613, allocations: 0.5642 MB / 448.1 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.5613, allocations: 0 / 448.1 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.802e-05/0.5613, allocations: 0 / 448.1 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.5614, allocations: 8 kB / 448.1 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.99e-05/0.5614, allocations: 19.92 kB / 448.1 MB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.239e-06/0.5614, allocations: 5.344 kB / 448.1 MB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5614, allocations: 0.75 kB / 448.1 MB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009237/0.5624, allocations: 0.559 MB / 448.7 MB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.643e-05/0.5624, allocations: 85.02 kB / 448.8 MB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.692e-05/0.5625, allocations: 16 kB / 448.8 MB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.5628, allocations: 23.98 kB / 448.8 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.5629, allocations: 19.92 kB / 448.8 MB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.563, allocations: 15.98 kB / 448.9 MB, free: 7.234 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001152/0.5631, allocations: 99.27 kB / 449 MB, free: 7.137 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5631, allocations: 0 / 449 MB, free: 7.137 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004737/0.5636, allocations: 64 kB / 449 MB, free: 7.074 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.00146/0.5651, allocations: 1.281 MB / 450.3 MB, free: 5.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007464/0.5658, allocations: 484.9 kB / 450.8 MB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5659, allocations: 0 / 450.8 MB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005008/0.5664, allocations: 405.6 kB / 451.2 MB, free: 4.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.5666, allocations: 17.58 kB / 451.2 MB, free: 4.734 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.5677, allocations: 299.1 kB / 451.5 MB, free: 4.398 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.568, allocations: 0.7082 MB / 452.2 MB, free: 3.664 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.104e-05/0.5681, allocations: 4.438 kB / 452.2 MB, free: 3.656 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.386e-05/0.5681, allocations: 31.42 kB / 452.2 MB, free: 3.629 MB / 378.7 MB Notification: Performance of SimCode: time 1.312e-06/0.5681, allocations: 0 / 452.2 MB, free: 3.629 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.5967, allocations: 3.064 MB / 455.3 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003694/0.5972, allocations: 140.1 kB / 455.4 MB, free: 424 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.273/2.87, allocations: 7.938 kB / 455.4 MB, free: 416 kB / 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