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.028/2.028, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.782e-05/2.796e-05, allocations: 0 / 284.3 MB, free: 8.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0845/0.08455, allocations: 50.36 MB / 334.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3521/0.4367, allocations: 80.34 MB / 415 MB, free: 13.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.4369, allocations: 70.59 kB / 415.1 MB, free: 13.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01058/0.4475, allocations: 2.627 MB / 417.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.281e-06/0.4476, allocations: 0 / 417.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.4476, allocations: 0 / 417.7 MB, free: 11.7 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006288/0.4482, allocations: 419.7 kB / 418.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.4483, allocations: 11.97 kB / 418.1 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.312e-05/0.4484, allocations: 23.72 kB / 418.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.4487, allocations: 209.4 kB / 418.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.4487, allocations: 10.77 kB / 418.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.022e-05/0.4488, allocations: 14.56 kB / 418.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.4493, allocations: 241.6 kB / 418.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.4493, allocations: 3.938 kB / 418.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.4494, allocations: 11.23 kB / 418.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.4494, allocations: 8 kB / 418.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.4496, allocations: 56.61 kB / 418.7 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008315/0.4504, allocations: 0.6034 MB / 419.3 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/0.4508, allocations: 127 kB / 419.4 MB, free: 9.934 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.4509, allocations: 65.91 kB / 419.5 MB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.451, allocations: 0 / 419.5 MB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.451, allocations: 45.58 kB / 419.5 MB, free: 9.824 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.36e-06/0.451, allocations: 0 / 419.5 MB, free: 9.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003529/0.4514, allocations: 112.6 kB / 419.6 MB, free: 9.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.482e-05/0.4515, allocations: 109.6 kB / 419.7 MB, free: 9.598 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.4517, allocations: 149.1 kB / 419.9 MB, free: 9.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.4517, allocations: 25.7 kB / 419.9 MB, free: 9.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.987e-05/0.4518, allocations: 184.7 kB / 420.1 MB, free: 9.258 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.4519, allocations: 30.81 kB / 420.1 MB, free: 9.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.52e-06/0.4519, allocations: 6.938 kB / 420.1 MB, free: 9.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.4521, allocations: 314.2 kB / 420.4 MB, free: 8.914 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.946e-05/0.4521, allocations: 22.62 kB / 420.5 MB, free: 8.895 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.4523, allocations: 130 kB / 420.6 MB, free: 8.734 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.4524, allocations: 37.73 kB / 420.6 MB, free: 8.707 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.868e-06/0.4524, allocations: 7.938 kB / 420.6 MB, free: 8.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003429/0.4528, allocations: 156.4 kB / 420.8 MB, free: 8.562 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.4528, allocations: 8 kB / 420.8 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.4529, allocations: 7.953 kB / 420.8 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.4529, allocations: 4 kB / 420.8 MB, free: 8.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002508/0.4531, allocations: 56.38 kB / 420.9 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.4532, allocations: 4.094 kB / 420.9 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.4534, allocations: 31.2 kB / 420.9 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.4534, allocations: 11.5 kB / 420.9 MB, free: 8.449 MB / 346.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.0001023/0.4535, allocations: 112.4 kB / 421 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.4537, allocations: 85.84 kB / 421.1 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.931e-05/0.4538, allocations: 22.8 kB / 421.1 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.148e-06/0.4538, allocations: 7.953 kB / 421.1 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.66e-06/0.4539, allocations: 4 kB / 421.1 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.462e-06/0.4539, allocations: 0 / 421.1 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003789/0.4543, allocations: 217.2 kB / 421.3 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.951e-06/0.4543, allocations: 0 / 421.3 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.4546, allocations: 36.08 kB / 421.4 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-05/0.4546, allocations: 3.984 kB / 421.4 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.4546, allocations: 2.688 kB / 421.4 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.215e-06/0.4546, allocations: 4 kB / 421.4 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.177e-06/0.4547, allocations: 7.953 kB / 421.4 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00049/0.4552, allocations: 367 kB / 421.8 MB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.4553, allocations: 100.4 kB / 421.9 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.4553, allocations: 7.609 kB / 421.9 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.4556, allocations: 14.44 kB / 421.9 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.4556, allocations: 7.984 kB / 421.9 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.4557, allocations: 4 kB / 421.9 MB, free: 7.453 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001245/0.4558, allocations: 116.2 kB / 422 MB, free: 7.352 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.103e-06/0.4558, allocations: 0 / 422 MB, free: 7.352 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005042/0.4563, allocations: 31.53 kB / 422 MB, free: 7.324 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 (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.00015/0.4565, allocations: 106.5 kB / 422.1 MB, free: 7.215 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000253/0.4567, allocations: 88.8 kB / 422.2 MB, free: 7.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.083e-06/0.4568, allocations: 0 / 422.2 MB, free: 7.145 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.902e-05/0.4568, allocations: 19.06 kB / 422.2 MB, free: 7.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.4573, allocations: 51.95 kB / 422.3 MB, free: 7.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007967/0.4581, allocations: 352.7 kB / 422.6 MB, free: 6.734 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.4586, allocations: 0.7431 MB / 423.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.077e-05/0.4586, allocations: 11.44 kB / 423.4 MB, free: 5.957 MB / 346.7 MB Notification: Performance of SimCode: time 1.492e-06/0.4586, allocations: 0 / 423.4 MB, free: 5.957 MB / 346.7 MB Notification: Performance of Templates: time 0.003977/0.4626, allocations: 1.565 MB / 425 MB, free: 4.41 MB / 346.7 MB