Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadModel(Modelica_Synchronous): time 2.396/2.396, allocations: 218.4 MB / 234.2 MB, free: 5.582 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.831e-05/3.832e-05, allocations: 8 kB / 287.6 MB, free: 56 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3403, allocations: 50.35 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003116/0.3435, allocations: 1.665 MB / 339.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.345, allocations: 0.5661 MB / 340.2 MB, free: 13.6 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.3452, allocations: 4 kB / 340.2 MB, free: 13.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.505e-05/0.3452, allocations: 15.86 kB / 340.2 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.3455, allocations: 27.88 kB / 340.2 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003635/0.3458, allocations: 55.88 kB / 340.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.346, allocations: 67.86 kB / 340.4 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.3462, allocations: 38.03 kB / 340.4 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.848e-05/0.3463, allocations: 35.86 kB / 340.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.3464, allocations: 43.83 kB / 340.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.973e-05/0.3464, allocations: 4 kB / 340.5 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.3465, allocations: 4 kB / 340.5 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.638e-05/0.3465, allocations: 23.92 kB / 340.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.484e-05/0.3466, allocations: 15.88 kB / 340.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.3467, allocations: 89.62 kB / 340.6 MB, free: 13.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.3468, allocations: 4 kB / 340.6 MB, free: 13.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3468, allocations: 0 / 340.6 MB, free: 13.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.3468, allocations: 0 / 340.6 MB, free: 13.18 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007627/0.3476, allocations: 422.9 kB / 341 MB, free: 12.72 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3476, allocations: 12.03 kB / 341 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.583e-05/0.3477, allocations: 19.72 kB / 341 MB, free: 12.69 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.348, allocations: 222.6 kB / 341.3 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.3481, allocations: 8 kB / 341.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.3481, allocations: 15.98 kB / 341.3 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007371/0.3489, allocations: 255 kB / 341.5 MB, free: 12.13 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.3489, allocations: 4 kB / 341.5 MB, free: 12.13 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.3489, allocations: 7.984 kB / 341.6 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.349, allocations: 4 kB / 341.6 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.3494, allocations: 99.88 kB / 341.7 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008685/0.3503, allocations: 0.5959 MB / 342.2 MB, free: 11.35 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.3509, allocations: 151.9 kB / 342.4 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.3509, allocations: 3.938 kB / 342.4 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.351, allocations: 42.56 kB / 342.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.645e-06/0.351, allocations: 0 / 342.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008479/0.3518, allocations: 197.6 kB / 342.6 MB, free: 10.92 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.352, allocations: 110.8 kB / 342.7 MB, free: 10.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.3522, allocations: 142 kB / 342.9 MB, free: 10.64 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.3522, allocations: 33.64 kB / 342.9 MB, free: 10.6 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.3523, allocations: 178.9 kB / 343.1 MB, free: 10.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.3524, allocations: 31.64 kB / 343.1 MB, free: 10.39 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.07e-05/0.3524, allocations: 8.031 kB / 343.1 MB, free: 10.39 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3525, allocations: 314.8 kB / 343.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.3528, allocations: 40.72 kB / 343.5 MB, free: 10.03 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.3531, allocations: 142.4 kB / 343.6 MB, free: 9.844 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.3533, allocations: 68.11 kB / 343.7 MB, free: 9.777 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3533, allocations: 0 / 343.7 MB, free: 9.777 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006838/0.354, allocations: 209.2 kB / 343.9 MB, free: 9.566 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.3541, allocations: 10.03 kB / 343.9 MB, free: 9.559 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.3541, allocations: 4 kB / 343.9 MB, free: 9.555 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.3541, allocations: 4 kB / 343.9 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/0.3544, allocations: 55.91 kB / 344 MB, free: 9.496 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/0.3545, allocations: 4 kB / 344 MB, free: 9.492 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.3547, allocations: 28.17 kB / 344 MB, free: 9.465 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.517e-05/0.3547, allocations: 12 kB / 344 MB, free: 9.453 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001565/0.3549, allocations: 129.7 kB / 344.1 MB, free: 9.316 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.3551, allocations: 93.48 kB / 344.2 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.559e-05/0.3552, allocations: 20.7 kB / 344.2 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3552, allocations: 0 / 344.2 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3552, allocations: 0 / 344.2 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3553, allocations: 4 kB / 344.2 MB, free: 9.191 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/0.3556, allocations: 213.5 kB / 344.5 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3557, allocations: 3.984 kB / 344.5 MB, free: 8.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000458/0.3561, allocations: 43.92 kB / 344.5 MB, free: 8.887 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.3561, allocations: 0 / 344.5 MB, free: 8.887 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.3562, allocations: 3.953 kB / 344.5 MB, free: 8.883 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.3562, allocations: 4 kB / 344.5 MB, free: 8.879 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3562, allocations: 0 / 344.5 MB, free: 8.879 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009072/0.3571, allocations: 430.7 kB / 344.9 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.3572, allocations: 101 kB / 345 MB, free: 8.309 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.3573, allocations: 8 kB / 345 MB, free: 8.301 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.3575, allocations: 8 kB / 345 MB, free: 8.293 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.3576, allocations: 7.984 kB / 345 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.3576, allocations: 4 kB / 345.1 MB, free: 8.281 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001266/0.3577, allocations: 127.3 kB / 345.2 MB, free: 8.156 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3577, allocations: 64 / 345.2 MB, free: 8.156 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004302/0.3582, allocations: 35.84 kB / 345.2 MB, free: 8.121 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.000131/0.3583, allocations: 95.25 kB / 345.3 MB, free: 8.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000535/0.3589, allocations: 132.6 kB / 345.4 MB, free: 7.891 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.3589, allocations: 0 / 345.4 MB, free: 7.891 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.3591, allocations: 36.02 kB / 345.5 MB, free: 7.855 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.3596, allocations: 71.27 kB / 345.5 MB, free: 7.789 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.3608, allocations: 0.5153 MB / 346.1 MB, free: 7.234 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.3612, allocations: 0.7323 MB / 346.8 MB, free: 6.477 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.128e-05/0.3612, allocations: 11.44 kB / 346.8 MB, free: 6.465 MB / 282.7 MB Notification: Performance of SimCode: time 8.21e-07/0.3612, allocations: 0 / 346.8 MB, free: 6.465 MB / 282.7 MB Notification: Performance of Templates: time 0.004682/0.3659, allocations: 1.572 MB / 348.4 MB, free: 4.895 MB / 282.7 MB