Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadModel(Modelica_Synchronous): time 1.927/1.927, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.423e-05, allocations: 4 kB / 284.3 MB, free: 8.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08745/0.08751, allocations: 50.36 MB / 334.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.447, allocations: 80.14 MB / 414.8 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.4472, allocations: 69.41 kB / 414.9 MB, free: 14.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008904/0.4562, allocations: 2.262 MB / 417.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.319e-06/0.4562, allocations: 0 / 417.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.4562, allocations: 4 kB / 417.1 MB, free: 12.12 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006011/0.4568, allocations: 398 kB / 417.5 MB, free: 11.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.4569, allocations: 8.031 kB / 417.5 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.181e-05/0.457, allocations: 19.8 kB / 417.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.4572, allocations: 199.9 kB / 417.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.4573, allocations: 15.45 kB / 417.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.4573, allocations: 15.92 kB / 417.8 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.4578, allocations: 217.8 kB / 418 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.4579, allocations: 0 / 418 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.4579, allocations: 7.562 kB / 418 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.4579, allocations: 0 / 418 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001719/0.4581, allocations: 60.61 kB / 418.1 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008373/0.459, allocations: 0.5826 MB / 418.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.4593, allocations: 142.7 kB / 418.8 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.4594, allocations: 64.88 kB / 418.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/0.4595, allocations: 7.984 kB / 418.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.4595, allocations: 41.39 kB / 418.9 MB, free: 10.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 5.919e-06/0.4595, allocations: 0 / 418.9 MB, free: 10.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003576/0.4599, allocations: 116.7 kB / 419 MB, free: 10.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.557e-05/0.46, allocations: 116.8 kB / 419.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.4602, allocations: 119.8 kB / 419.2 MB, free: 9.949 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.4602, allocations: 28.77 kB / 419.3 MB, free: 9.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.4603, allocations: 181.2 kB / 419.4 MB, free: 9.746 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.656e-05/0.4604, allocations: 27.02 kB / 419.5 MB, free: 9.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.76e-06/0.4604, allocations: 3.25 kB / 419.5 MB, free: 9.723 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4606, allocations: 314.3 kB / 419.8 MB, free: 9.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.277e-05/0.4606, allocations: 22.06 kB / 419.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.4608, allocations: 120.4 kB / 419.9 MB, free: 9.246 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001067/0.4609, allocations: 42.58 kB / 420 MB, free: 9.211 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.633e-06/0.4609, allocations: 0 / 420 MB, free: 9.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003463/0.4613, allocations: 154.3 kB / 420.1 MB, free: 9.074 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.4613, allocations: 8 kB / 420.1 MB, free: 9.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.4614, allocations: 4 kB / 420.1 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.4614, allocations: 4 kB / 420.1 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.4617, allocations: 51.28 kB / 420.2 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.4617, allocations: 4.438 kB / 420.2 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.4619, allocations: 27.83 kB / 420.2 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.4619, allocations: 11.44 kB / 420.2 MB, free: 8.973 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001228/0.462, allocations: 112.4 kB / 420.3 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.4623, allocations: 87.92 kB / 420.4 MB, free: 8.781 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.717e-05/0.4623, allocations: 12 kB / 420.4 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.767e-06/0.4623, allocations: 4 kB / 420.4 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.647e-06/0.4624, allocations: 0 / 420.4 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.049e-06/0.4624, allocations: 7.984 kB / 420.4 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003651/0.4627, allocations: 197.4 kB / 420.6 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.852e-06/0.4628, allocations: 7.984 kB / 420.6 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.4631, allocations: 31.98 kB / 420.7 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.4631, allocations: 4.141 kB / 420.7 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.4631, allocations: 7.625 kB / 420.7 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.683e-06/0.4631, allocations: 7.938 kB / 420.7 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.392e-06/0.4631, allocations: 0 / 420.7 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000483/0.4636, allocations: 363.6 kB / 421 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.004e-05/0.4637, allocations: 85.02 kB / 421.1 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.4638, allocations: 3.562 kB / 421.1 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.464, allocations: 15.92 kB / 421.1 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.464, allocations: 7.5 kB / 421.2 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.4641, allocations: 4 kB / 421.2 MB, free: 8.012 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.276e-05/0.4642, allocations: 102.1 kB / 421.3 MB, free: 7.918 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.45e-07/0.4642, allocations: 3.938 kB / 421.3 MB, free: 7.914 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004575/0.4647, allocations: 27.38 kB / 421.3 MB, free: 7.891 MB / 346.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 (14): * Single equations (assignments): 14 * 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.0001519/0.4648, allocations: 98.75 kB / 421.4 MB, free: 7.789 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002523/0.4651, allocations: 89.36 kB / 421.5 MB, free: 7.719 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.989e-06/0.4651, allocations: 0 / 421.5 MB, free: 7.719 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.854e-05/0.4652, allocations: 19.5 kB / 421.5 MB, free: 7.703 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004354/0.4656, allocations: 41.97 kB / 421.5 MB, free: 7.672 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007484/0.4664, allocations: 325.6 kB / 421.9 MB, free: 7.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.4668, allocations: 0.7126 MB / 422.6 MB, free: 6.602 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.276e-05/0.4669, allocations: 18.5 kB / 422.6 MB, free: 6.586 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4669, allocations: 4 kB / 422.6 MB, free: 6.582 MB / 346.7 MB Notification: Performance of Templates: time 0.00378/0.4707, allocations: 1.45 MB / 424 MB, free: 5.148 MB / 346.7 MB