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 2.182/2.182, allocations: 224.7 MB / 241.1 MB, free: 1.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.438e-05/2.437e-05, allocations: 0 / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 50.41 MB / 345 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003027/0.1115, allocations: 1.633 MB / 346.6 MB, free: 7.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.1127, allocations: 459 kB / 347 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1129, allocations: 8 kB / 347.1 MB, free: 6.859 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.904e-05/0.1129, allocations: 15.86 kB / 347.1 MB, free: 6.844 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.113, allocations: 23.94 kB / 347.1 MB, free: 6.82 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.1134, allocations: 47.89 kB / 347.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.1136, allocations: 59.86 kB / 347.2 MB, free: 6.715 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.1138, allocations: 39.81 kB / 347.2 MB, free: 6.676 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.462e-05/0.1139, allocations: 35.86 kB / 347.3 MB, free: 6.641 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.114, allocations: 47.83 kB / 347.3 MB, free: 6.594 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.533e-05/0.1141, allocations: 4 kB / 347.3 MB, free: 6.59 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.1141, allocations: 4 kB / 347.3 MB, free: 6.586 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.032e-05/0.1141, allocations: 15.92 kB / 347.3 MB, free: 6.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.907e-05/0.1142, allocations: 8 kB / 347.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.1144, allocations: 80.05 kB / 347.4 MB, free: 6.484 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1144, allocations: 0 / 347.4 MB, free: 6.484 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1144, allocations: 0 / 347.4 MB, free: 6.484 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1144, allocations: 0 / 347.4 MB, free: 6.484 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007475/0.1152, allocations: 411 kB / 347.8 MB, free: 6.035 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.1152, allocations: 11.97 kB / 347.8 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.336e-05/0.1153, allocations: 19.77 kB / 347.9 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.1156, allocations: 194.9 kB / 348.1 MB, free: 5.773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.1156, allocations: 8 kB / 348.1 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.859e-05/0.1157, allocations: 12 kB / 348.1 MB, free: 5.754 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007145/0.1164, allocations: 238.5 kB / 348.3 MB, free: 5.496 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.1165, allocations: 7.938 kB / 348.3 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.1165, allocations: 11.95 kB / 348.3 MB, free: 5.477 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1165, allocations: 7.984 kB / 348.3 MB, free: 5.469 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.117, allocations: 91.88 kB / 348.4 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008645/0.1178, allocations: 0.5882 MB / 349 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.1183, allocations: 152 kB / 349.2 MB, free: 4.543 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.1184, allocations: 8.109 kB / 349.2 MB, free: 4.535 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1184, allocations: 38.56 kB / 349.2 MB, free: 4.488 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 3.176e-06/0.1184, allocations: 0 / 349.2 MB, free: 4.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008241/0.1193, allocations: 189.5 kB / 349.4 MB, free: 4.297 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.65e-05/0.1194, allocations: 110.8 kB / 349.5 MB, free: 4.164 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.1195, allocations: 128.5 kB / 349.6 MB, free: 4.031 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.1196, allocations: 25.7 kB / 349.6 MB, free: 4 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.91e-05/0.1197, allocations: 174.5 kB / 349.8 MB, free: 3.828 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.267e-05/0.1197, allocations: 27.64 kB / 349.8 MB, free: 3.801 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-06/0.1197, allocations: 3.938 kB / 349.8 MB, free: 3.797 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1199, allocations: 322.8 kB / 350.2 MB, free: 3.473 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.1201, allocations: 47.97 kB / 350.2 MB, free: 3.426 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.1204, allocations: 131.5 kB / 350.3 MB, free: 3.254 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/0.1206, allocations: 63.91 kB / 350.4 MB, free: 3.191 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.1207, allocations: 4 kB / 350.4 MB, free: 3.188 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006334/0.1213, allocations: 189.6 kB / 350.6 MB, free: 2.996 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.1213, allocations: 12.03 kB / 350.6 MB, free: 2.984 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.1214, allocations: 4.375 kB / 350.6 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.1214, allocations: 4.234 kB / 350.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.1217, allocations: 43.97 kB / 350.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.1218, allocations: 11.89 kB / 350.7 MB, free: 2.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.1219, allocations: 31.77 kB / 350.7 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.122, allocations: 8 kB / 350.7 MB, free: 2.883 MB / 282.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.0001436/0.1221, allocations: 125.8 kB / 350.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002434/0.1224, allocations: 89.52 kB / 350.9 MB, free: 2.656 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.594e-05/0.1225, allocations: 16.72 kB / 350.9 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1225, allocations: 0 / 350.9 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.1225, allocations: 4 kB / 350.9 MB, free: 2.637 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.1225, allocations: 7.938 kB / 350.9 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003592/0.1229, allocations: 197.6 kB / 351.1 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1229, allocations: 0 / 351.1 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/0.1232, allocations: 35.97 kB / 351.2 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.697e-06/0.1233, allocations: 8 kB / 351.2 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.1233, allocations: 4 kB / 351.2 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.1233, allocations: 4 kB / 351.2 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/0.1233, allocations: 4 kB / 351.2 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008666/0.1242, allocations: 410.7 kB / 351.6 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.696e-05/0.1243, allocations: 85.05 kB / 351.7 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/0.1243, allocations: 4 kB / 351.7 MB, free: 1.793 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.1245, allocations: 16.02 kB / 351.7 MB, free: 1.777 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/0.1246, allocations: 11.98 kB / 351.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.1246, allocations: 0 / 351.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.644e-05/0.1247, allocations: 95.27 kB / 351.8 MB, free: 1.672 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1247, allocations: 0 / 351.8 MB, free: 1.672 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004263/0.1252, allocations: 27.94 kB / 351.8 MB, free: 1.645 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 (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.0001594/0.1253, allocations: 123.1 kB / 351.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005716/0.1259, allocations: 120.6 kB / 352.1 MB, free: 1.395 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.126, allocations: 0 / 352.1 MB, free: 1.395 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.1261, allocations: 35.98 kB / 352.1 MB, free: 1.359 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005278/0.1267, allocations: 56.31 kB / 352.2 MB, free: 1.305 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.1278, allocations: 487.3 kB / 352.6 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.1282, allocations: 0.7165 MB / 353.3 MB, free: 48 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.639e-05/0.1282, allocations: 15.44 kB / 353.4 MB, free: 32 kB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/0.1282, allocations: 0 / 353.4 MB, free: 32 kB / 282.7 MB Notification: Performance of Templates: time 0.004616/0.1329, allocations: 1.466 MB / 354.8 MB, free: 14.57 MB / 298.7 MB