Running command: translateModel(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") Notification: Performance of loadModel(Modelica_Synchronous): time 2.264/2.264, allocations: 218.4 MB / 234.2 MB, free: 4.629 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.106e-05, allocations: 7.984 kB / 287.6 MB, free: 15.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3391, allocations: 50.37 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.005015/0.3442, allocations: 2.648 MB / 340.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.3462, allocations: 0.6113 MB / 341.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003984/0.3467, allocations: 31.94 kB / 341.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.3468, allocations: 43.56 kB / 341.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002761/0.3471, allocations: 63.75 kB / 341.4 MB, free: 12.44 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000945/0.3481, allocations: 199.5 kB / 341.6 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007251/0.3488, allocations: 308.5 kB / 341.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005463/0.3494, allocations: 235.7 kB / 342.1 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/0.3497, allocations: 131.6 kB / 342.2 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003597/0.3501, allocations: 171.3 kB / 342.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.834e-05/0.3502, allocations: 16 kB / 342.4 MB, free: 11.39 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.496e-05/0.3502, allocations: 16 kB / 342.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.3504, allocations: 79.62 kB / 342.5 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.816e-05/0.3505, allocations: 28 kB / 342.5 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009754/0.3515, allocations: 0.6485 MB / 343.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3515, allocations: 4 kB / 343.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.095e-06/0.3515, allocations: 0 / 343.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.053e-05/0.3515, allocations: 0 / 343.2 MB, free: 10.62 MB / 282.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.002083/0.3536, allocations: 0.7486 MB / 343.9 MB, free: 9.809 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.3537, allocations: 8.031 kB / 343.9 MB, free: 9.801 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.3539, allocations: 63.25 kB / 344 MB, free: 9.738 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000768/0.3547, allocations: 413 kB / 344.4 MB, free: 9.297 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.3549, allocations: 104.7 kB / 344.5 MB, free: 9.184 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.355, allocations: 52 kB / 344.5 MB, free: 9.133 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002967/0.358, allocations: 0.9978 MB / 345.5 MB, free: 8.098 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.634e-05/0.3581, allocations: 0 / 345.5 MB, free: 8.098 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.3582, allocations: 28 kB / 345.6 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.3583, allocations: 12 kB / 345.6 MB, free: 8.059 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.3599, allocations: 419.6 kB / 346 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/0.364, allocations: 1.708 MB / 347.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002729/0.3667, allocations: 0.608 MB / 348.3 MB, free: 5.203 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.894e-05/0.3669, allocations: 16.88 kB / 348.3 MB, free: 5.188 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006845/0.3676, allocations: 242.6 kB / 348.6 MB, free: 4.926 MB / 282.7 MB Notification: Performance of pre-optimization done (n=68): time 4.158e-06/0.3676, allocations: 0 / 348.6 MB, free: 4.926 MB / 282.7 MB Notification: Performance of matching and sorting (n=68): time 0.002636/0.3703, allocations: 0.6976 MB / 349.3 MB, free: 4.223 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001831/0.3705, allocations: 215.7 kB / 349.5 MB, free: 3.969 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/0.3709, allocations: 254 kB / 349.7 MB, free: 3.715 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.388e-05/0.371, allocations: 33.7 kB / 349.7 MB, free: 3.676 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.3713, allocations: 263.4 kB / 350 MB, free: 3.418 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.3714, allocations: 134.3 kB / 350.1 MB, free: 3.285 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/0.3715, allocations: 16 kB / 350.2 MB, free: 3.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3717, allocations: 342.8 kB / 350.5 MB, free: 2.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/0.3723, allocations: 165.9 kB / 350.6 MB, free: 2.766 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008533/0.3732, allocations: 458.6 kB / 351.1 MB, free: 2.184 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00075/0.3739, allocations: 239.8 kB / 351.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.978e-06/0.374, allocations: 3.984 kB / 351.3 MB, free: 1.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001903/0.3759, allocations: 0.6374 MB / 352 MB, free: 1.301 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.376, allocations: 17.67 kB / 352 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.376, allocations: 8 kB / 352 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.948e-05/0.376, allocations: 16 kB / 352 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.3771, allocations: 148.3 kB / 352.2 MB, free: 1.117 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.982e-05/0.3771, allocations: 23.92 kB / 352.2 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005904/0.3777, allocations: 71.42 kB / 352.2 MB, free: 1.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.423e-05/0.3778, allocations: 32 kB / 352.3 MB, free: 0.9922 MB / 282.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.0004551/0.3783, allocations: 225.6 kB / 352.5 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008351/0.3791, allocations: 267.7 kB / 352.8 MB, free: 0.5 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.3803, allocations: 336.5 kB / 353.1 MB, free: 164 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.3803, allocations: 15.92 kB / 353.1 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.3803, allocations: 7.953 kB / 353.1 MB, free: 140 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.3804, allocations: 0 / 353.1 MB, free: 140 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/0.3826, allocations: 0.9782 MB / 354.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.3827, allocations: 0 / 354.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.3838, allocations: 119.8 kB / 354.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.309e-05/0.3839, allocations: 8 kB / 354.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.199e-05/0.3839, allocations: 23.77 kB / 354.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.036e-05/0.384, allocations: 4 kB / 354.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.384, allocations: 0 / 354.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002808/0.3868, allocations: 0.9608 MB / 355.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.387, allocations: 120.6 kB / 355.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.3872, allocations: 19.98 kB / 355.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000502/0.3877, allocations: 27.98 kB / 355.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.3878, allocations: 19.97 kB / 355.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.979e-05/0.3879, allocations: 27.98 kB / 355.4 MB, free: 13.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003335/0.3882, allocations: 190 kB / 355.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3882, allocations: 0 / 355.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007795/0.389, allocations: 127.6 kB / 355.7 MB, free: 13.4 MB / 298.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.0002254/0.3893, allocations: 135.1 kB / 355.9 MB, free: 13.26 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.3911, allocations: 0.4987 MB / 356.4 MB, free: 12.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.3911, allocations: 4.125 kB / 356.4 MB, free: 12.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005481/0.3917, allocations: 159.8 kB / 356.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009995/0.3927, allocations: 181.2 kB / 356.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/0.3958, allocations: 1.213 MB / 357.9 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006386/0.3965, allocations: 0.8717 MB / 358.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003552/0.3969, allocations: 47.41 kB / 358.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.273e-06/0.3969, allocations: 0 / 358.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of Templates: time 0.01565/0.4126, allocations: 5.972 MB / 364.8 MB, free: 4.258 MB / 298.7 MB