Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.007e-05/3.02e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002928/0.111, allocations: 1.692 MB / 346.7 MB, free: 7.242 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1121, allocations: 455.1 kB / 347.1 MB, free: 6.793 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.1123, allocations: 11.94 kB / 347.1 MB, free: 6.781 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.938e-05/0.1123, allocations: 7.922 kB / 347.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.1124, allocations: 23.88 kB / 347.1 MB, free: 6.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.1128, allocations: 39.95 kB / 347.2 MB, free: 6.711 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001791/0.113, allocations: 71.84 kB / 347.3 MB, free: 6.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.1131, allocations: 31.83 kB / 347.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.67e-05/0.1132, allocations: 43.84 kB / 347.3 MB, free: 6.566 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.1133, allocations: 43.78 kB / 347.4 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.783e-05/0.1134, allocations: 4 kB / 347.4 MB, free: 6.52 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.1134, allocations: 4 kB / 347.4 MB, free: 6.516 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.876e-05/0.1134, allocations: 15.94 kB / 347.4 MB, free: 6.5 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.641e-05/0.1135, allocations: 8 kB / 347.4 MB, free: 6.492 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.1136, allocations: 87.97 kB / 347.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1136, allocations: 0 / 347.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1137, allocations: 0 / 347.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.1137, allocations: 4 kB / 347.5 MB, free: 6.402 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006996/0.1144, allocations: 415 kB / 347.9 MB, free: 5.949 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.1144, allocations: 8.031 kB / 347.9 MB, free: 5.941 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.1145, allocations: 23.77 kB / 347.9 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.1148, allocations: 210.7 kB / 348.1 MB, free: 5.672 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.1148, allocations: 12 kB / 348.2 MB, free: 5.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.1149, allocations: 12 kB / 348.2 MB, free: 5.648 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006574/0.1155, allocations: 222.6 kB / 348.4 MB, free: 5.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.1156, allocations: 0 / 348.4 MB, free: 5.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.1156, allocations: 11.95 kB / 348.4 MB, free: 5.395 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.1156, allocations: 4 kB / 348.4 MB, free: 5.391 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004367/0.1161, allocations: 95.88 kB / 348.5 MB, free: 5.297 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000867/0.117, allocations: 0.592 MB / 349.1 MB, free: 4.633 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005004/0.1175, allocations: 151.9 kB / 349.2 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.1175, allocations: 4 kB / 349.2 MB, free: 4.453 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.1176, allocations: 46.77 kB / 349.3 MB, free: 4.398 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.615e-06/0.1176, allocations: 0 / 349.3 MB, free: 4.398 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008063/0.1184, allocations: 193.5 kB / 349.5 MB, free: 4.203 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/0.1185, allocations: 110.8 kB / 349.6 MB, free: 4.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.1187, allocations: 124.2 kB / 349.7 MB, free: 3.941 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.1187, allocations: 29.7 kB / 349.7 MB, free: 3.906 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1188, allocations: 182.3 kB / 349.9 MB, free: 3.727 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.509e-05/0.1188, allocations: 23.73 kB / 349.9 MB, free: 3.703 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.16e-05/0.1189, allocations: 11.88 kB / 349.9 MB, free: 3.691 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.119, allocations: 330.8 kB / 350.3 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.1192, allocations: 40.34 kB / 350.3 MB, free: 3.32 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.1195, allocations: 149.4 kB / 350.4 MB, free: 3.129 MB / 282.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/0.12, allocations: 145.2 kB / 350.6 MB, free: 2.969 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-06/0.12, allocations: 4 kB / 350.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006348/0.1206, allocations: 201.2 kB / 350.8 MB, free: 2.762 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.1207, allocations: 8 kB / 350.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.1207, allocations: 4 kB / 350.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.1207, allocations: 4 kB / 350.8 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.121, allocations: 47.91 kB / 350.9 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.1211, allocations: 8.438 kB / 350.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/0.1213, allocations: 27.83 kB / 350.9 MB, free: 2.664 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.1213, allocations: 12 kB / 350.9 MB, free: 2.652 MB / 282.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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.0001566/0.1215, allocations: 125.7 kB / 351 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.1217, allocations: 93.44 kB / 351.1 MB, free: 2.422 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.975e-05/0.1218, allocations: 20.7 kB / 351.1 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1218, allocations: 0 / 351.1 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1218, allocations: 0 / 351.1 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.1218, allocations: 8 kB / 351.1 MB, free: 2.395 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003553/0.1222, allocations: 209.5 kB / 351.3 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1222, allocations: 0 / 351.3 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003999/0.1226, allocations: 51.89 kB / 351.4 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.1226, allocations: 0 / 351.4 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.1227, allocations: 8 kB / 351.4 MB, free: 2.082 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1227, allocations: 0 / 351.4 MB, free: 2.082 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.1227, allocations: 4 kB / 351.4 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009029/0.1236, allocations: 422.7 kB / 351.8 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.1237, allocations: 85.05 kB / 351.9 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.1237, allocations: 8 kB / 351.9 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.124, allocations: 11.98 kB / 351.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.911e-05/0.124, allocations: 11.89 kB / 351.9 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.1241, allocations: 8 kB / 351.9 MB, free: 1.492 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.076e-05/0.1242, allocations: 103.3 kB / 352 MB, free: 1.391 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1242, allocations: 4.094 kB / 352 MB, free: 1.387 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004298/0.1246, allocations: 35.88 kB / 352.1 MB, free: 1.352 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.0001372/0.1248, allocations: 105.8 kB / 352.2 MB, free: 1.238 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005924/0.1254, allocations: 132.3 kB / 352.3 MB, free: 1.109 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1254, allocations: 0 / 352.3 MB, free: 1.109 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.1256, allocations: 35.91 kB / 352.4 MB, free: 1.074 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.1261, allocations: 60.44 kB / 352.4 MB, free: 1.016 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.1274, allocations: 0.5133 MB / 352.9 MB, free: 472 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.1278, allocations: 0.7206 MB / 353.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.411e-05/0.1279, allocations: 15.44 kB / 353.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of SimCode: time 1.262e-06/0.1279, allocations: 0 / 353.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of Templates: time 0.004535/0.1324, allocations: 1.563 MB / 355.2 MB, free: 14.14 MB / 298.7 MB