Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.101/2.101, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.648e-05/3.666e-05, allocations: 0 / 284.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 50.36 MB / 334.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5028/0.6111, allocations: 84.74 MB / 419.5 MB, free: 9.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.6115, allocations: 68.16 kB / 419.6 MB, free: 9.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03774/0.6492, allocations: 8.555 MB / 428.1 MB, free: 2.285 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.6493, allocations: 0 / 428.1 MB, free: 2.285 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.079e-05/0.6493, allocations: 12 kB / 428.1 MB, free: 2.273 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.002213/0.6515, allocations: 0.7522 MB / 428.9 MB, free: 1.504 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.6516, allocations: 16.03 kB / 428.9 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002255/0.6519, allocations: 98.25 kB / 429 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000196/0.6521, allocations: 63.25 kB / 429.1 MB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000914/0.653, allocations: 414.2 kB / 429.5 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.6532, allocations: 102.6 kB / 429.6 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.6533, allocations: 61.59 kB / 429.6 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/0.6557, allocations: 0.9408 MB / 430.6 MB, free: 156 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.312e-05/0.6558, allocations: 7.906 kB / 430.6 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-05/0.6559, allocations: 27.62 kB / 430.6 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.562e-05/0.656, allocations: 15.98 kB / 430.6 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.6571, allocations: 354.3 kB / 431 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00417/0.6613, allocations: 1.724 MB / 432.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.6636, allocations: 0.5685 MB / 433.3 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007721/0.6644, allocations: 263.5 kB / 433.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.322e-05/0.6646, allocations: 18.97 kB / 433.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005036/0.6651, allocations: 207.9 kB / 433.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 4.389e-06/0.6651, allocations: 4 kB / 433.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.001445/0.6665, allocations: 476.7 kB / 434.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001868/0.6668, allocations: 209.8 kB / 434.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004319/0.6672, allocations: 246.8 kB / 434.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.171e-05/0.6673, allocations: 36.27 kB / 434.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.6675, allocations: 278 kB / 435 MB, free: 12.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.6677, allocations: 138.6 kB / 435.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.742e-05/0.6678, allocations: 14.25 kB / 435.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.6679, allocations: 332.8 kB / 435.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004122/0.6684, allocations: 143.6 kB / 435.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006712/0.669, allocations: 422.1 kB / 436 MB, free: 11.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000579/0.6696, allocations: 229.7 kB / 436.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-06/0.6697, allocations: 0 / 436.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001488/0.6712, allocations: 0.5632 MB / 436.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.6712, allocations: 12 kB / 436.8 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.6712, allocations: 8 kB / 436.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.297e-05/0.6713, allocations: 15.98 kB / 436.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.6724, allocations: 150.2 kB / 437 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.631e-05/0.6724, allocations: 19.92 kB / 437 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006091/0.673, allocations: 73.33 kB / 437 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.485e-05/0.6731, allocations: 31.75 kB / 437.1 MB, free: 10.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 20 (rotationalClock.rotationalClock.changed.y,rotationalClock.rotationalClock.changed.u,$CLKPRE.rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction,engine.crankshaftPositionEvent.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.direction,rotationalClock.rotationalClock.less.y,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * 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.0003362/0.6735, allocations: 165 kB / 437.2 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007406/0.6742, allocations: 261.4 kB / 437.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009117/0.6752, allocations: 315.4 kB / 437.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.6752, allocations: 7.953 kB / 437.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.6752, allocations: 4 kB / 437.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/0.6752, allocations: 3.984 kB / 437.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002015/0.6773, allocations: 0.9415 MB / 438.8 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.6773, allocations: 4 kB / 438.8 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.6785, allocations: 115.5 kB / 438.9 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.709e-05/0.6785, allocations: 7.953 kB / 438.9 MB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.819e-05/0.6786, allocations: 18.61 kB / 438.9 MB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.197e-05/0.6786, allocations: 11.94 kB / 438.9 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.6786, allocations: 0 / 438.9 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.6807, allocations: 0.8681 MB / 439.8 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.6809, allocations: 128.2 kB / 439.9 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.681, allocations: 18 kB / 439.9 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005743/0.6816, allocations: 33.42 kB / 440 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.6817, allocations: 23.7 kB / 440 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.288e-05/0.6818, allocations: 23.8 kB / 440 MB, free: 8.402 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003121/0.6821, allocations: 194.3 kB / 440.2 MB, free: 8.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6822, allocations: 0 / 440.2 MB, free: 8.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008703/0.683, allocations: 129.1 kB / 440.3 MB, free: 8.145 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (engine.throttleBody.m_ai,engine.intakeManifold.P_m,engine.cylinderAirCharge.m_a_total,engine.inertia1.w,derivative.u) * Number of discrete variables: 18 (engine.crankshaftPositionEvent.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.y,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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.002614/0.6857, allocations: 1.679 MB / 442 MB, free: 6.676 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.6871, allocations: 444.5 kB / 442.4 MB, free: 6.367 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.6871, allocations: 384 / 442.4 MB, free: 6.367 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003489/0.6875, allocations: 131.3 kB / 442.6 MB, free: 6.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008879/0.6884, allocations: 171.8 kB / 442.7 MB, free: 6.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.6914, allocations: 0.9059 MB / 443.6 MB, free: 5.309 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006178/0.6921, allocations: 0.8714 MB / 444.5 MB, free: 4.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005196/0.6926, allocations: 175.4 kB / 444.7 MB, free: 4.238 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.6926, allocations: 0 / 444.7 MB, free: 4.238 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.575/3.268, allocations: 8.077 MB / 452.8 MB, free: 12.17 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl_res.mat does not exist to compare? outputFormat=mat