Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadModel(Modelica): time 1.863/1.863, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.113e-05/3.129e-05, allocations: 6.031 kB / 292.1 MB, free: 8.871 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.0911, allocations: 50.42 MB / 342.5 MB, free: 6.422 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3566/0.4478, allocations: 78.83 MB / 421.4 MB, free: 15.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.4481, allocations: 74.45 kB / 421.5 MB, free: 15.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009073/0.4571, allocations: 2.294 MB / 423.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4572, allocations: 0 / 423.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.4572, allocations: 4 kB / 423.7 MB, free: 13.3 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.0005836/0.4578, allocations: 399.9 kB / 424.1 MB, free: 12.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.4579, allocations: 8.031 kB / 424.1 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.554e-05/0.4579, allocations: 19.84 kB / 424.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.4582, allocations: 197.6 kB / 424.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.4582, allocations: 11.5 kB / 424.4 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.692e-05/0.4583, allocations: 15.05 kB / 424.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004883/0.4588, allocations: 211.4 kB / 424.6 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.4588, allocations: 3.938 kB / 424.6 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.4589, allocations: 11.14 kB / 424.6 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.324e-06/0.4589, allocations: 0 / 424.6 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001672/0.459, allocations: 56.36 kB / 424.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008166/0.4599, allocations: 0.5932 MB / 425.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002608/0.4602, allocations: 135 kB / 425.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.4603, allocations: 55.52 kB / 425.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.4604, allocations: 4 kB / 425.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.4604, allocations: 45.62 kB / 425.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 4.91e-06/0.4604, allocations: 3.984 kB / 425.5 MB, free: 11.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.00034/0.4608, allocations: 108.6 kB / 425.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.101e-05/0.4609, allocations: 110 kB / 425.7 MB, free: 11.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.461, allocations: 116.3 kB / 425.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.461, allocations: 32.98 kB / 425.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.4612, allocations: 193.2 kB / 426 MB, free: 10.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.4612, allocations: 22.86 kB / 426.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-06/0.4612, allocations: 3.125 kB / 426.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.4614, allocations: 317.7 kB / 426.4 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.509e-05/0.4615, allocations: 23.62 kB / 426.4 MB, free: 10.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.4616, allocations: 121.1 kB / 426.5 MB, free: 10.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.856e-05/0.4617, allocations: 39.67 kB / 426.6 MB, free: 10.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.452e-06/0.4618, allocations: 0 / 426.6 MB, free: 10.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003306/0.4621, allocations: 152.6 kB / 426.7 MB, free: 10.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.4621, allocations: 8 kB / 426.7 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.4622, allocations: 4 kB / 426.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.4622, allocations: 4 kB / 426.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.4624, allocations: 47.91 kB / 426.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.4625, allocations: 8.391 kB / 426.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.4627, allocations: 31.14 kB / 426.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.4627, allocations: 8 kB / 426.8 MB, free: 10.16 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.0001019/0.4628, allocations: 115.5 kB / 426.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.463, allocations: 75.84 kB / 427 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.887e-05/0.4631, allocations: 18.25 kB / 427 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.808e-06/0.4631, allocations: 4 kB / 427 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.145e-06/0.4631, allocations: 0 / 427 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.826e-06/0.4631, allocations: 11.94 kB / 427 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003702/0.4635, allocations: 206.8 kB / 427.2 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.4635, allocations: 3.984 kB / 427.2 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.4638, allocations: 35.98 kB / 427.3 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.419e-06/0.4638, allocations: 0 / 427.3 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.4638, allocations: 3 kB / 427.3 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.556e-06/0.4639, allocations: 4 kB / 427.3 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.301e-06/0.4639, allocations: 0 / 427.3 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004733/0.4644, allocations: 365.3 kB / 427.6 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.301e-05/0.4644, allocations: 84.92 kB / 427.7 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.4645, allocations: 4 kB / 427.7 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.4647, allocations: 19.25 kB / 427.7 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.4648, allocations: 4.062 kB / 427.7 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.4648, allocations: 8.031 kB / 427.8 MB, free: 9.195 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.093e-05/0.4649, allocations: 114.3 kB / 427.9 MB, free: 9.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.58e-07/0.4649, allocations: 0 / 427.9 MB, free: 9.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000455/0.4654, allocations: 27 kB / 427.9 MB, free: 9.07 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.000156/0.4655, allocations: 107.2 kB / 428 MB, free: 8.957 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002312/0.4658, allocations: 86.3 kB / 428.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.4658, allocations: 0 / 428.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.085e-05/0.4659, allocations: 15.38 kB / 428.1 MB, free: 8.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.4663, allocations: 53.27 kB / 428.1 MB, free: 8.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007349/0.4671, allocations: 319.5 kB / 428.5 MB, free: 8.52 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.4675, allocations: 0.7125 MB / 429.2 MB, free: 7.781 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.4675, allocations: 15.44 kB / 429.2 MB, free: 7.766 MB / 346.7 MB Notification: Performance of SimCode: time 1.477e-06/0.4675, allocations: 4 kB / 429.2 MB, free: 7.762 MB / 346.7 MB Notification: Performance of Templates: time 0.003672/0.4712, allocations: 1.454 MB / 430.6 MB, free: 6.32 MB / 346.7 MB