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.955/1.955, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.716e-05/3.731e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 48.69 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3953/0.4967, allocations: 74.54 MB / 396.4 MB, free: 15.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.497, allocations: 59.98 kB / 396.4 MB, free: 15.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008924/0.5059, allocations: 1.913 MB / 398.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.506, allocations: 0 / 398.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.506, allocations: 0 / 398.3 MB, free: 13.45 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.0007088/0.5067, allocations: 0.5261 MB / 398.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.5068, allocations: 12.03 kB / 398.9 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.558e-05/0.5069, allocations: 46.55 kB / 398.9 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.297e-05/0.507, allocations: 19.91 kB / 398.9 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.5071, allocations: 178.9 kB / 399.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.5073, allocations: 89.11 kB / 399.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.294e-05/0.5073, allocations: 16 kB / 399.2 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003583/0.5077, allocations: 136.2 kB / 399.3 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.5077, allocations: 0 / 399.3 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.658e-05/0.5078, allocations: 4 kB / 399.3 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.5078, allocations: 0 / 399.3 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002312/0.508, allocations: 75.92 kB / 399.4 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009341/0.509, allocations: 0.5245 MB / 399.9 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.5093, allocations: 151.7 kB / 400.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.5095, allocations: 90.8 kB / 400.2 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.5096, allocations: 7.984 kB / 400.2 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000544/0.5101, allocations: 458.7 kB / 400.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.635e-06/0.5101, allocations: 0 / 400.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009076/0.5111, allocations: 384.4 kB / 401 MB, free: 10.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001554/0.5112, allocations: 247.3 kB / 401.3 MB, free: 10.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.5114, allocations: 128.8 kB / 401.4 MB, free: 9.965 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.595e-05/0.5115, allocations: 41.62 kB / 401.4 MB, free: 9.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.529e-05/0.5116, allocations: 163 kB / 401.6 MB, free: 9.758 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.413e-05/0.5116, allocations: 43.5 kB / 401.6 MB, free: 9.715 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/0.5117, allocations: 4 kB / 401.6 MB, free: 9.711 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.5118, allocations: 318.8 kB / 401.9 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.512, allocations: 51.98 kB / 402 MB, free: 9.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.5122, allocations: 107.7 kB / 402.1 MB, free: 9.207 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.5125, allocations: 204.3 kB / 402.3 MB, free: 8.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.5125, allocations: 0 / 402.3 MB, free: 8.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007254/0.5132, allocations: 397.8 kB / 402.7 MB, free: 8.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.5134, allocations: 148.5 kB / 402.8 MB, free: 8.375 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.5134, allocations: 0 / 402.8 MB, free: 8.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.5134, allocations: 4 kB / 402.8 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.5135, allocations: 15.92 kB / 402.8 MB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.5136, allocations: 7.953 kB / 402.9 MB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.5138, allocations: 28.17 kB / 402.9 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.5139, allocations: 12 kB / 402.9 MB, free: 8.309 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.0002618/0.5141, allocations: 265.9 kB / 403.2 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.906e-05/0.5142, allocations: 15.91 kB / 403.2 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.348e-05/0.5143, allocations: 12.62 kB / 403.2 MB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.5143, allocations: 0 / 403.2 MB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.986e-06/0.5143, allocations: 7.984 kB / 403.2 MB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.5143, allocations: 3.953 kB / 403.2 MB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009529/0.5153, allocations: 0.5564 MB / 403.7 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.5153, allocations: 4 kB / 403.8 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.778e-05/0.5153, allocations: 3.938 kB / 403.8 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.856e-06/0.5153, allocations: 3.984 kB / 403.8 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.5154, allocations: 16 kB / 403.8 MB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.5154, allocations: 3.953 kB / 403.8 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5154, allocations: 0 / 403.8 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009602/0.5164, allocations: 0.5525 MB / 404.3 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.417e-05/0.5165, allocations: 92.88 kB / 404.4 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.5165, allocations: 16 kB / 404.4 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.5168, allocations: 20.08 kB / 404.5 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.2e-05/0.5169, allocations: 23.91 kB / 404.5 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.769e-05/0.517, allocations: 12 kB / 404.5 MB, free: 6.535 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.882e-05/0.5171, allocations: 100.5 kB / 404.6 MB, free: 6.438 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5171, allocations: 0 / 404.6 MB, free: 6.438 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004737/0.5176, allocations: 60 kB / 404.6 MB, free: 6.379 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.001517/0.5191, allocations: 1.277 MB / 405.9 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007573/0.5199, allocations: 493.3 kB / 406.4 MB, free: 4.496 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5199, allocations: 384 / 406.4 MB, free: 4.496 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004958/0.5204, allocations: 405.8 kB / 406.8 MB, free: 4.051 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.5207, allocations: 16 kB / 406.8 MB, free: 4.035 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.5217, allocations: 323 kB / 407.1 MB, free: 3.672 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.5221, allocations: 0.7121 MB / 407.8 MB, free: 2.934 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.157e-05/0.5222, allocations: 31.42 kB / 407.9 MB, free: 2.902 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5222, allocations: 4 kB / 407.9 MB, free: 2.898 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.345/2.867, allocations: 2.362 MB / 410.2 MB, free: 0.5352 MB / 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