Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 224.8 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.18e-05/3.174e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.112, allocations: 50.41 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002942/0.115, allocations: 1.641 MB / 346.6 MB, free: 7.297 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1163, allocations: 482.9 kB / 347.1 MB, free: 6.82 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.1164, allocations: 4 kB / 347.1 MB, free: 6.816 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.724e-05/0.1165, allocations: 15.86 kB / 347.1 MB, free: 6.801 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001873/0.1167, allocations: 23.94 kB / 347.1 MB, free: 6.777 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003026/0.117, allocations: 39.89 kB / 347.2 MB, free: 6.738 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.1172, allocations: 71.78 kB / 347.2 MB, free: 6.668 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.1173, allocations: 35.84 kB / 347.3 MB, free: 6.633 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.944e-05/0.1175, allocations: 35.91 kB / 347.3 MB, free: 6.598 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.819e-05/0.1176, allocations: 39.83 kB / 347.3 MB, free: 6.559 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.885e-05/0.1176, allocations: 7.938 kB / 347.4 MB, free: 6.551 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.1176, allocations: 4 kB / 347.4 MB, free: 6.547 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.994e-05/0.1177, allocations: 15.92 kB / 347.4 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.229e-05/0.1177, allocations: 8 kB / 347.4 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.1179, allocations: 88.03 kB / 347.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1179, allocations: 0 / 347.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1179, allocations: 0 / 347.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.1179, allocations: 4 kB / 347.5 MB, free: 6.434 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007239/0.1187, allocations: 403.1 kB / 347.9 MB, free: 5.992 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.1187, allocations: 8.031 kB / 347.9 MB, free: 5.984 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/0.1188, allocations: 19.77 kB / 347.9 MB, free: 5.965 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.1191, allocations: 194.9 kB / 348.1 MB, free: 5.734 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.1191, allocations: 8 kB / 348.1 MB, free: 5.727 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/0.1192, allocations: 12 kB / 348.1 MB, free: 5.715 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007213/0.1199, allocations: 263 kB / 348.4 MB, free: 5.434 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.1199, allocations: 7.938 kB / 348.4 MB, free: 5.426 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.12, allocations: 11.94 kB / 348.4 MB, free: 5.414 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-06/0.12, allocations: 4 kB / 348.4 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004685/0.1205, allocations: 103.8 kB / 348.5 MB, free: 5.309 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008428/0.1213, allocations: 0.5843 MB / 349.1 MB, free: 4.652 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005171/0.1219, allocations: 151.9 kB / 349.2 MB, free: 4.477 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.1219, allocations: 4 kB / 349.2 MB, free: 4.473 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.122, allocations: 38.5 kB / 349.3 MB, free: 4.426 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.755e-06/0.122, allocations: 3.938 kB / 349.3 MB, free: 4.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008206/0.1228, allocations: 197.5 kB / 349.5 MB, free: 4.223 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.1229, allocations: 118.8 kB / 349.6 MB, free: 4.082 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.123, allocations: 113.3 kB / 349.7 MB, free: 3.961 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.1231, allocations: 29.7 kB / 349.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.914e-05/0.1232, allocations: 178.4 kB / 349.9 MB, free: 3.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.1232, allocations: 32 kB / 349.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.1233, allocations: 8 kB / 349.9 MB, free: 3.711 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1234, allocations: 314.8 kB / 350.2 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.1236, allocations: 44.34 kB / 350.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.1239, allocations: 146.4 kB / 350.4 MB, free: 3.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.1241, allocations: 59.92 kB / 350.5 MB, free: 3.102 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1242, allocations: 0 / 350.5 MB, free: 3.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006427/0.1248, allocations: 201.6 kB / 350.7 MB, free: 2.898 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.1249, allocations: 12 kB / 350.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.1249, allocations: 4 kB / 350.7 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.1249, allocations: 4 kB / 350.7 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.1252, allocations: 55.91 kB / 350.7 MB, free: 2.824 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.1252, allocations: 4 kB / 350.7 MB, free: 2.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.1254, allocations: 23.83 kB / 350.8 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.1255, allocations: 12 kB / 350.8 MB, free: 2.785 MB / 282.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.0001455/0.1256, allocations: 129.7 kB / 350.9 MB, free: 2.648 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.1259, allocations: 89.53 kB / 351 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.578e-05/0.126, allocations: 12.72 kB / 351 MB, free: 2.543 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.126, allocations: 4 kB / 351 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.126, allocations: 0 / 351 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.126, allocations: 3.984 kB / 351 MB, free: 2.535 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003561/0.1264, allocations: 213.4 kB / 351.2 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.1264, allocations: 0 / 351.2 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003392/0.1268, allocations: 39.98 kB / 351.3 MB, free: 2.238 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.1268, allocations: 4.234 kB / 351.3 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.1268, allocations: 0 / 351.3 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.24e-05/0.1268, allocations: 7.984 kB / 351.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.1268, allocations: 3.938 kB / 351.3 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008887/0.1277, allocations: 419.4 kB / 351.7 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.1278, allocations: 85.05 kB / 351.8 MB, free: 1.68 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.1279, allocations: 15.98 kB / 351.8 MB, free: 1.664 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.1281, allocations: 8 kB / 351.8 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.892e-05/0.1282, allocations: 11.98 kB / 351.8 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.1282, allocations: 4 kB / 351.8 MB, free: 1.641 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001179/0.1283, allocations: 103.3 kB / 351.9 MB, free: 1.539 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1283, allocations: 0 / 351.9 MB, free: 1.539 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004379/0.1288, allocations: 35.84 kB / 351.9 MB, free: 1.504 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.0001547/0.1289, allocations: 107.2 kB / 352.1 MB, free: 1.387 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005473/0.1295, allocations: 136.6 kB / 352.2 MB, free: 1.254 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.1295, allocations: 4.062 kB / 352.2 MB, free: 1.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.1297, allocations: 27.98 kB / 352.2 MB, free: 1.223 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.1302, allocations: 54.77 kB / 352.3 MB, free: 1.172 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.1313, allocations: 0.4904 MB / 352.8 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.1317, allocations: 0.7166 MB / 353.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.672e-05/0.1318, allocations: 19.44 kB / 353.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of SimCode: time 9.91e-07/0.1318, allocations: 0 / 353.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of Templates: time 0.004436/0.1362, allocations: 1.477 MB / 355 MB, free: 14.41 MB / 298.7 MB