Running command: translateModel(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") Notification: Performance of loadModel(Modelica_LinearSystems2): time 2.463/2.463, allocations: 251.5 MB / 266 MB, free: 0.6836 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.1124/0.1124, allocations: 12.59 MB / 336.6 MB, free: 14.74 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.089e-05/4.089e-05, allocations: 7.984 kB / 399.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3983/0.3983, allocations: 59.42 MB / 459.2 MB, free: 28.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.004105/0.4025, allocations: 2.656 MB / 461.8 MB, free: 25.96 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.4043, allocations: 0.6191 MB / 462.5 MB, free: 25.34 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004614/0.4049, allocations: 31.94 kB / 462.5 MB, free: 25.31 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.405, allocations: 39.56 kB / 462.5 MB, free: 25.27 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.4053, allocations: 59.75 kB / 462.6 MB, free: 25.21 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000916/0.4063, allocations: 195.6 kB / 462.8 MB, free: 25.02 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006059/0.4069, allocations: 308.7 kB / 463.1 MB, free: 24.72 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004356/0.4073, allocations: 231.7 kB / 463.3 MB, free: 24.5 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.4075, allocations: 131.6 kB / 463.4 MB, free: 24.37 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002908/0.4078, allocations: 171.3 kB / 463.6 MB, free: 24.2 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.922e-05/0.4079, allocations: 12 kB / 463.6 MB, free: 24.19 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.027e-05/0.408, allocations: 20 kB / 463.6 MB, free: 24.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.624e-05/0.4081, allocations: 79.62 kB / 463.7 MB, free: 24.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.747e-05/0.4082, allocations: 28 kB / 463.7 MB, free: 24.06 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007289/0.4089, allocations: 0.6494 MB / 464.4 MB, free: 23.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4089, allocations: 0 / 464.4 MB, free: 23.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.409, allocations: 0 / 464.4 MB, free: 23.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.975e-05/0.409, allocations: 4 kB / 464.4 MB, free: 23.41 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.002084/0.4111, allocations: 0.7486 MB / 465.1 MB, free: 22.6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.4112, allocations: 12.03 kB / 465.1 MB, free: 22.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.4115, allocations: 67.2 kB / 465.2 MB, free: 22.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008979/0.4124, allocations: 401 kB / 465.6 MB, free: 22.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.4126, allocations: 100.7 kB / 465.7 MB, free: 21.97 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.4128, allocations: 60 kB / 465.8 MB, free: 21.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003093/0.4159, allocations: 1.006 MB / 466.8 MB, free: 20.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.352e-05/0.4161, allocations: 4 kB / 466.8 MB, free: 20.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000169/0.4163, allocations: 31.89 kB / 466.8 MB, free: 20.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/0.4163, allocations: 12 kB / 466.8 MB, free: 20.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.418, allocations: 415.7 kB / 467.2 MB, free: 20.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003874/0.4219, allocations: 1.705 MB / 468.9 MB, free: 18.63 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002444/0.4244, allocations: 0.6222 MB / 469.5 MB, free: 17.97 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.415e-05/0.4245, allocations: 8 kB / 469.6 MB, free: 17.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005675/0.4251, allocations: 250.5 kB / 469.8 MB, free: 17.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=68): time 3.186e-06/0.4251, allocations: 0 / 469.8 MB, free: 17.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=68): time 0.002262/0.4274, allocations: 0.6888 MB / 470.5 MB, free: 17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.4275, allocations: 209.9 kB / 470.7 MB, free: 16.76 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.4279, allocations: 246 kB / 470.9 MB, free: 16.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.47e-05/0.428, allocations: 45.83 kB / 471 MB, free: 16.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.4281, allocations: 216.9 kB / 471.2 MB, free: 16.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.4282, allocations: 138.3 kB / 471.3 MB, free: 16.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.4283, allocations: 8 kB / 471.3 MB, free: 16.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.649e-05/0.4284, allocations: 358.8 kB / 471.7 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005248/0.4289, allocations: 165.9 kB / 471.8 MB, free: 15.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000687/0.4296, allocations: 462.8 kB / 472.3 MB, free: 14.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006374/0.4303, allocations: 228.7 kB / 472.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4303, allocations: 4 kB / 472.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001603/0.4319, allocations: 0.656 MB / 473.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.432, allocations: 8.781 kB / 473.2 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.432, allocations: 11.94 kB / 473.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.352e-05/0.432, allocations: 20 kB / 473.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009251/0.433, allocations: 147.7 kB / 473.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/0.433, allocations: 19.94 kB / 473.4 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.4336, allocations: 71.47 kB / 473.5 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.298e-05/0.4336, allocations: 39.97 kB / 473.5 MB, free: 13.79 MB / 346.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.0003682/0.434, allocations: 221.5 kB / 473.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006994/0.4347, allocations: 269.7 kB / 474 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009619/0.4357, allocations: 341.6 kB / 474.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.4357, allocations: 8 kB / 474.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4357, allocations: 4 kB / 474.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.4358, allocations: 3.984 kB / 474.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001782/0.4375, allocations: 0.9818 MB / 475.3 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.4376, allocations: 4 kB / 475.3 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.4386, allocations: 123.8 kB / 475.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.4386, allocations: 4 kB / 475.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.323e-05/0.4387, allocations: 15.98 kB / 475.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.604e-06/0.4387, allocations: 4 kB / 475.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4387, allocations: 4 kB / 475.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.4411, allocations: 0.9493 MB / 476.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.752e-05/0.4412, allocations: 128.6 kB / 476.5 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.4413, allocations: 16 kB / 476.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004734/0.4418, allocations: 35.94 kB / 476.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.4419, allocations: 27.95 kB / 476.6 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-05/0.442, allocations: 19.98 kB / 476.6 MB, free: 10.51 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002431/0.4422, allocations: 186 kB / 476.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4422, allocations: 0 / 476.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007072/0.443, allocations: 119.7 kB / 476.9 MB, free: 10.21 MB / 346.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.0001749/0.4432, allocations: 139.2 kB / 477.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00147/0.4446, allocations: 0.4969 MB / 477.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4447, allocations: 0 / 477.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.4451, allocations: 156.7 kB / 477.7 MB, free: 9.422 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000903/0.446, allocations: 187.3 kB / 477.9 MB, free: 9.238 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.4486, allocations: 1.172 MB / 479.1 MB, free: 8.027 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.449, allocations: 0.8755 MB / 479.9 MB, free: 7.125 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004633/0.4495, allocations: 55.39 kB / 480 MB, free: 7.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.4497, allocations: 43.42 kB / 480 MB, free: 7.027 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.4497, allocations: 0 / 480 MB, free: 7.027 MB / 346.7 MB Notification: Performance of Templates: time 0.01481/0.4646, allocations: 4.111 MB / 484.2 MB, free: 2.93 MB / 346.7 MB