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.217/2.217, allocations: 209.4 MB / 216.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.473e-05/2.499e-05, allocations: 4 kB / 267.6 MB, free: 4.953 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1538, allocations: 48.7 MB / 316.3 MB, free: 4.16 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4451/0.599, allocations: 74.1 MB / 390.4 MB, free: 2.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.5992, allocations: 63.27 kB / 390.5 MB, free: 2.238 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008503/0.6078, allocations: 1.905 MB / 392.4 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6078, allocations: 0 / 392.4 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.6078, allocations: 4 kB / 392.4 MB, free: 0.5547 MB / 314.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.0006771/0.6085, allocations: 0.5278 MB / 392.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.6086, allocations: 8.031 kB / 392.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.497e-05/0.6086, allocations: 19.03 kB / 392.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.6088, allocations: 178.8 kB / 393.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.6089, allocations: 85.11 kB / 393.2 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.609, allocations: 12 kB / 393.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002152/0.6092, allocations: 62.78 kB / 393.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.6095, allocations: 119.8 kB / 393.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.6095, allocations: 4 kB / 393.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.6096, allocations: 4 kB / 393.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.6096, allocations: 4.875 kB / 393.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008437/0.6104, allocations: 0.5019 MB / 393.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000257/0.6107, allocations: 137.7 kB / 394 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/0.6109, allocations: 89.06 kB / 394.1 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.6109, allocations: 4 kB / 394.1 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004869/0.6114, allocations: 449.6 kB / 394.6 MB, free: 14.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.194e-06/0.6114, allocations: 0 / 394.6 MB, free: 14.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006786/0.6121, allocations: 246.5 kB / 394.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001478/0.6123, allocations: 250.6 kB / 395.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.6124, allocations: 124.5 kB / 395.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.6125, allocations: 32.39 kB / 395.2 MB, free: 13.6 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.838e-05/0.6126, allocations: 97.88 kB / 395.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.641e-05/0.6126, allocations: 38.08 kB / 395.3 MB, free: 13.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.742e-05/0.6127, allocations: 4 kB / 395.3 MB, free: 13.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.6128, allocations: 333.7 kB / 395.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.613, allocations: 40.88 kB / 395.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.6131, allocations: 103.8 kB / 395.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001835/0.6133, allocations: 55.91 kB / 395.9 MB, free: 12.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.6134, allocations: 8 kB / 395.9 MB, free: 12.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005665/0.6139, allocations: 226.5 kB / 396.1 MB, free: 12.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.6141, allocations: 148.1 kB / 396.2 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.6141, allocations: 4 kB / 396.2 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.061e-05/0.6141, allocations: 7.984 kB / 396.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.722e-05/0.6143, allocations: 11.31 kB / 396.3 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.6143, allocations: 4 kB / 396.3 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.6145, allocations: 24.08 kB / 396.3 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-05/0.6145, allocations: 12 kB / 396.3 MB, free: 12.55 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.0002355/0.6148, allocations: 263.7 kB / 396.6 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006792/0.6155, allocations: 277.4 kB / 396.8 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.31e-05/0.6155, allocations: 23.8 kB / 396.9 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.6156, allocations: 12.38 kB / 396.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.6156, allocations: 0 / 396.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6156, allocations: 11.94 kB / 396.9 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.6156, allocations: 0 / 396.9 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00075/0.6164, allocations: 477.1 kB / 397.3 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.6164, allocations: 4 kB / 397.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.442e-05/0.6164, allocations: 0 / 397.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.6164, allocations: 4 kB / 397.4 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/0.6165, allocations: 11.69 kB / 397.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.6165, allocations: 0 / 397.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.6165, allocations: 0 / 397.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007475/0.6173, allocations: 421 kB / 397.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.6173, allocations: 88.92 kB / 397.9 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.706e-05/0.6174, allocations: 19.94 kB / 397.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.6177, allocations: 16 kB / 397.9 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.377e-05/0.6178, allocations: 22.16 kB / 397.9 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.6178, allocations: 12 kB / 397.9 MB, free: 11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.015e-05/0.6179, allocations: 97.83 kB / 398 MB, free: 10.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6179, allocations: 0 / 398 MB, free: 10.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005064/0.6184, allocations: 52 kB / 398.1 MB, free: 10.86 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.001255/0.6197, allocations: 1.125 MB / 399.2 MB, free: 9.762 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006521/0.6204, allocations: 467.1 kB / 399.7 MB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6204, allocations: 4.062 kB / 399.7 MB, free: 9.316 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004634/0.6209, allocations: 399.3 kB / 400.1 MB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002421/0.6211, allocations: 8 kB / 400.1 MB, free: 8.953 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009289/0.6221, allocations: 271.7 kB / 400.3 MB, free: 8.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.6224, allocations: 0.7114 MB / 401 MB, free: 7.945 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.464e-05/0.6225, allocations: 8.438 kB / 401 MB, free: 7.938 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.744e-05/0.6226, allocations: 28.73 kB / 401.1 MB, free: 7.922 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.6226, allocations: 0 / 401.1 MB, free: 7.922 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04278/0.6654, allocations: 2.759 MB / 403.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003037/0.6657, allocations: 118 kB / 403.9 MB, free: 4.977 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/2.991, allocations: 0 / 403.9 MB, free: 4.977 MB / 330.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