Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadModel(Modelica): time 1.88/1.88, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.94e-05/2.952e-05, allocations: 6.031 kB / 292.1 MB, free: 8.871 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.0897, allocations: 50.42 MB / 342.5 MB, free: 6.434 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3622/0.4519, allocations: 79.08 MB / 421.6 MB, free: 15.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.4522, allocations: 77.08 kB / 421.7 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01084/0.4631, allocations: 2.697 MB / 424.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.3e-06/0.4631, allocations: 4 kB / 424.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.696e-05/0.4632, allocations: 8.188 kB / 424.4 MB, free: 12.69 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.0006629/0.4638, allocations: 415.7 kB / 424.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.4639, allocations: 8.031 kB / 424.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.464, allocations: 15.81 kB / 424.8 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.4643, allocations: 216.9 kB / 425 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.4643, allocations: 18.19 kB / 425.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.4644, allocations: 11.12 kB / 425.1 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/0.4649, allocations: 235.7 kB / 425.3 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.4649, allocations: 4 kB / 425.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.465, allocations: 6.703 kB / 425.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.465, allocations: 4 kB / 425.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.4652, allocations: 56.31 kB / 425.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008691/0.466, allocations: 0.6014 MB / 426 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003423/0.4664, allocations: 129 kB / 426.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.4666, allocations: 59.52 kB / 426.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.4666, allocations: 8 kB / 426.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.4666, allocations: 38.77 kB / 426.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.314e-06/0.4667, allocations: 4 kB / 426.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003582/0.467, allocations: 114.7 kB / 426.3 MB, free: 10.74 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/0.4671, allocations: 110.2 kB / 426.4 MB, free: 10.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.4673, allocations: 145.7 kB / 426.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.4674, allocations: 28.64 kB / 426.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.4675, allocations: 176.9 kB / 426.8 MB, free: 10.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.4676, allocations: 29.97 kB / 426.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.4676, allocations: 7.938 kB / 426.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4677, allocations: 322.3 kB / 427.1 MB, free: 9.926 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.982e-05/0.4678, allocations: 23.19 kB / 427.1 MB, free: 9.906 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.468, allocations: 124.8 kB / 427.3 MB, free: 9.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.4681, allocations: 49.86 kB / 427.3 MB, free: 9.711 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.77e-06/0.4681, allocations: 0 / 427.3 MB, free: 9.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003464/0.4685, allocations: 150.3 kB / 427.5 MB, free: 9.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.4685, allocations: 12.41 kB / 427.5 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.4685, allocations: 4 kB / 427.5 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.4686, allocations: 8 kB / 427.5 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.4688, allocations: 47.91 kB / 427.5 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.4689, allocations: 8 kB / 427.5 MB, free: 9.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.4691, allocations: 23.08 kB / 427.6 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.4691, allocations: 19 kB / 427.6 MB, free: 9.465 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.0001124/0.4692, allocations: 119.2 kB / 427.7 MB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.4695, allocations: 91.31 kB / 427.8 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.851e-05/0.4696, allocations: 19.06 kB / 427.8 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.116e-06/0.4696, allocations: 0 / 427.8 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.937e-06/0.4696, allocations: 3.984 kB / 427.8 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.958e-06/0.4696, allocations: 4 kB / 427.8 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003944/0.47, allocations: 213.9 kB / 428 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.231e-06/0.47, allocations: 0 / 428 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000262/0.4703, allocations: 39.91 kB / 428.1 MB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.168e-06/0.4703, allocations: 4 kB / 428.1 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.4704, allocations: 7.688 kB / 428.1 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.985e-06/0.4704, allocations: 4 kB / 428.1 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.394e-06/0.4704, allocations: 3.984 kB / 428.1 MB, free: 8.953 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004988/0.4709, allocations: 367.2 kB / 428.4 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.471, allocations: 108.5 kB / 428.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/0.4711, allocations: 3.375 kB / 428.6 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.4713, allocations: 11.98 kB / 428.6 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/0.4714, allocations: 8.078 kB / 428.6 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.4714, allocations: 11.27 kB / 428.6 MB, free: 8.457 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001273/0.4715, allocations: 118.4 kB / 428.7 MB, free: 8.352 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.57e-07/0.4715, allocations: 0 / 428.7 MB, free: 8.352 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004832/0.472, allocations: 27 kB / 428.7 MB, free: 8.328 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.0001581/0.4722, allocations: 110.2 kB / 428.8 MB, free: 8.215 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002585/0.4725, allocations: 90.36 kB / 428.9 MB, free: 8.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.098e-06/0.4725, allocations: 96 / 428.9 MB, free: 8.145 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.17e-05/0.4726, allocations: 19.5 kB / 428.9 MB, free: 8.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.473, allocations: 59.02 kB / 429 MB, free: 8.086 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007941/0.4739, allocations: 343.2 kB / 429.3 MB, free: 7.742 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.4743, allocations: 0.7322 MB / 430.1 MB, free: 6.984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.27e-05/0.4744, allocations: 15.44 kB / 430.1 MB, free: 6.969 MB / 346.7 MB Notification: Performance of SimCode: time 1.646e-06/0.4744, allocations: 0 / 430.1 MB, free: 6.969 MB / 346.7 MB Notification: Performance of Templates: time 0.003949/0.4783, allocations: 1.576 MB / 431.7 MB, free: 5.41 MB / 346.7 MB