Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.921/1.921, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.311e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0964/0.09646, allocations: 48.71 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3892/0.4857, allocations: 74.54 MB / 396.4 MB, free: 15.3 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.486, allocations: 66.97 kB / 396.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008788/0.4948, allocations: 1.915 MB / 398.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.4948, allocations: 4 kB / 398.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.4949, allocations: 0 / 398.4 MB, free: 13.33 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.0007277/0.4956, allocations: 0.5261 MB / 398.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.4957, allocations: 8.031 kB / 398.9 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.091e-05/0.4957, allocations: 46.55 kB / 398.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.307e-05/0.4958, allocations: 15.91 kB / 399 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.496, allocations: 178.9 kB / 399.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.4961, allocations: 89.11 kB / 399.2 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.553e-05/0.4962, allocations: 12 kB / 399.2 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.4965, allocations: 132.2 kB / 399.4 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.4966, allocations: 0 / 399.4 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.4966, allocations: 4 kB / 399.4 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.4966, allocations: 4 kB / 399.4 MB, free: 12.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.4969, allocations: 83.89 kB / 399.5 MB, free: 12.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009488/0.4978, allocations: 0.5206 MB / 400 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.4982, allocations: 147.7 kB / 400.1 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.4984, allocations: 86.58 kB / 400.2 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.4984, allocations: 4.234 kB / 400.2 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005765/0.499, allocations: 467.4 kB / 400.7 MB, free: 10.69 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.365e-06/0.499, allocations: 0 / 400.7 MB, free: 10.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008696/0.4999, allocations: 376.3 kB / 401 MB, free: 10.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.5001, allocations: 247.3 kB / 401.3 MB, free: 9.996 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.5003, allocations: 128.8 kB / 401.4 MB, free: 9.863 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.5003, allocations: 33.7 kB / 401.4 MB, free: 9.824 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.5004, allocations: 163 kB / 401.6 MB, free: 9.664 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.512e-05/0.5005, allocations: 43.5 kB / 401.6 MB, free: 9.621 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.509e-05/0.5005, allocations: 0 / 401.6 MB, free: 9.621 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5007, allocations: 326.8 kB / 402 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.5009, allocations: 55.92 kB / 402 MB, free: 9.238 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.5011, allocations: 107.7 kB / 402.1 MB, free: 9.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.5014, allocations: 204.4 kB / 402.3 MB, free: 8.875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.5014, allocations: 0 / 402.3 MB, free: 8.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007357/0.5021, allocations: 385.8 kB / 402.7 MB, free: 8.461 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.5023, allocations: 152.5 kB / 402.8 MB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.5023, allocations: 4 kB / 402.8 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.5023, allocations: 4 kB / 402.8 MB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.5025, allocations: 11.98 kB / 402.9 MB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.5025, allocations: 7.938 kB / 402.9 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.5027, allocations: 24.14 kB / 402.9 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.5028, allocations: 8 kB / 402.9 MB, free: 8.223 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.0002805/0.5031, allocations: 269.9 kB / 403.2 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.948e-05/0.5031, allocations: 19.91 kB / 403.2 MB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.988e-05/0.5032, allocations: 8.625 kB / 403.2 MB, free: 7.902 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.5032, allocations: 4 kB / 403.2 MB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.5032, allocations: 0 / 403.2 MB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.5032, allocations: 3.938 kB / 403.2 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.5043, allocations: 0.5605 MB / 403.8 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.5043, allocations: 0 / 403.8 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.161e-05/0.5043, allocations: 11.88 kB / 403.8 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.5043, allocations: 7.984 kB / 403.8 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.677e-05/0.5044, allocations: 15.97 kB / 403.8 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.5044, allocations: 0 / 403.8 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.5044, allocations: 7.953 kB / 403.8 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00099/0.5054, allocations: 0.5476 MB / 404.3 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.826e-05/0.5055, allocations: 96.81 kB / 404.4 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-05/0.5056, allocations: 20 kB / 404.5 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.5058, allocations: 19.98 kB / 404.5 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.5059, allocations: 23.97 kB / 404.5 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.943e-05/0.506, allocations: 15.98 kB / 404.5 MB, free: 6.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.081e-05/0.5061, allocations: 100.5 kB / 404.6 MB, free: 6.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5061, allocations: 0 / 404.6 MB, free: 6.332 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005254/0.5066, allocations: 59.98 kB / 404.7 MB, free: 6.273 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.001482/0.5081, allocations: 1.273 MB / 405.9 MB, free: 4.938 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007643/0.5089, allocations: 485.3 kB / 406.4 MB, free: 4.402 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5089, allocations: 0 / 406.4 MB, free: 4.402 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005233/0.5095, allocations: 402 kB / 406.8 MB, free: 3.961 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.5097, allocations: 12 kB / 406.8 MB, free: 3.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.5108, allocations: 327 kB / 407.1 MB, free: 3.582 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.5112, allocations: 0.7121 MB / 407.9 MB, free: 2.844 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.611e-05/0.5113, allocations: 27.44 kB / 407.9 MB, free: 2.816 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5113, allocations: 0 / 407.9 MB, free: 2.816 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.425/2.936, allocations: 2.374 MB / 410.3 MB, free: 452 kB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat