Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 224.7 MB / 241.1 MB, free: 15.96 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.719e-05/2.711e-05, allocations: 2.344 kB / 294.5 MB, free: 4.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 50.42 MB / 345 MB, free: 11.08 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003493/0.1078, allocations: 1.949 MB / 346.9 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.1098, allocations: 0.7329 MB / 347.6 MB, free: 8.375 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.11, allocations: 11.94 kB / 347.7 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002398/0.1103, allocations: 35.77 kB / 347.7 MB, free: 8.328 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002887/0.1106, allocations: 63.7 kB / 347.8 MB, free: 8.266 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007645/0.1114, allocations: 155.7 kB / 347.9 MB, free: 8.113 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003896/0.1118, allocations: 184 kB / 348.1 MB, free: 7.934 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.112, allocations: 61.23 kB / 348.1 MB, free: 7.875 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002594/0.1122, allocations: 115.7 kB / 348.3 MB, free: 7.762 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003037/0.1126, allocations: 151.5 kB / 348.4 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.859e-05/0.1126, allocations: 16 kB / 348.4 MB, free: 7.598 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.794e-05/0.1127, allocations: 16 kB / 348.4 MB, free: 7.582 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.1129, allocations: 79.72 kB / 348.5 MB, free: 7.504 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.673e-05/0.1129, allocations: 24 kB / 348.5 MB, free: 7.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003832/0.1133, allocations: 255.6 kB / 348.8 MB, free: 7.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1134, allocations: 0 / 348.8 MB, free: 7.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.1134, allocations: 0 / 348.8 MB, free: 7.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.1134, allocations: 0 / 348.8 MB, free: 7.23 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001781/0.1152, allocations: 0.6111 MB / 349.4 MB, free: 6.574 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.1153, allocations: 8.031 kB / 349.4 MB, free: 6.566 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.1154, allocations: 47.48 kB / 349.5 MB, free: 6.52 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005659/0.116, allocations: 290 kB / 349.7 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003157/0.1163, allocations: 145.7 kB / 349.9 MB, free: 6.035 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.178e-05/0.1164, allocations: 32 kB / 349.9 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.1185, allocations: 0.5826 MB / 350.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.1185, allocations: 0 / 350.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.569e-05/0.1186, allocations: 16 kB / 350.5 MB, free: 5.383 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.1186, allocations: 4 kB / 350.5 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002503/0.1211, allocations: 0.5269 MB / 351 MB, free: 4.852 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/0.1237, allocations: 1.034 MB / 352.1 MB, free: 3.738 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002907/0.1267, allocations: 0.5264 MB / 352.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.159e-05/0.1268, allocations: 4.188 kB / 352.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.1269, allocations: 42.69 kB / 352.6 MB, free: 3.121 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 3.556e-06/0.1269, allocations: 0 / 352.6 MB, free: 3.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.08107/0.208, allocations: 6.794 MB / 359.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.2081, allocations: 149 kB / 359.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004204/0.2086, allocations: 225.8 kB / 359.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.2087, allocations: 41.7 kB / 359.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.2089, allocations: 211.9 kB / 360.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003029/0.2092, allocations: 193.3 kB / 360.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.2093, allocations: 8 kB / 360.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.2095, allocations: 342.8 kB / 360.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003097/0.2126, allocations: 0.6461 MB / 361.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00324/0.2159, allocations: 0.8315 MB / 362.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002988/0.2189, allocations: 0.6021 MB / 362.7 MB, free: 8.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.2189, allocations: 0 / 362.7 MB, free: 8.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006683/0.2256, allocations: 1.46 MB / 364.1 MB, free: 7.492 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.2257, allocations: 8.375 kB / 364.1 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.2257, allocations: 4 kB / 364.1 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.269e-05/0.2258, allocations: 8 kB / 364.1 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/0.2284, allocations: 231.7 kB / 364.4 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-05/0.2284, allocations: 23.86 kB / 364.4 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/0.2302, allocations: 119.7 kB / 364.5 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.2304, allocations: 31.98 kB / 364.5 MB, free: 7.074 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0004826/0.2309, allocations: 185.6 kB / 364.7 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004981/0.2314, allocations: 165.1 kB / 364.9 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.2316, allocations: 67.61 kB / 365 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.692e-05/0.2317, allocations: 12 kB / 365 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.2317, allocations: 4 kB / 365 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.2317, allocations: 3.984 kB / 365 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008627/0.2403, allocations: 2.297 MB / 367.3 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.189e-05/0.2404, allocations: 16.2 kB / 367.3 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/0.242, allocations: 199.7 kB / 367.5 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.387e-05/0.242, allocations: 20 kB / 367.5 MB, free: 3.922 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-05/0.2421, allocations: 24 kB / 367.5 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-05/0.2421, allocations: 27.86 kB / 367.6 MB, free: 3.871 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.601e-05/0.2422, allocations: 15.94 kB / 367.6 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006375/0.2485, allocations: 2.177 MB / 369.7 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003892/0.249, allocations: 180.4 kB / 369.9 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.2491, allocations: 27.98 kB / 369.9 MB, free: 1.027 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.2502, allocations: 99.98 kB / 370 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003279/0.2505, allocations: 103.7 kB / 370.1 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.283e-05/0.2506, allocations: 39.92 kB / 370.2 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002827/0.2509, allocations: 182 kB / 370.4 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2509, allocations: 4 kB / 370.4 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009444/0.2519, allocations: 116 kB / 370.5 MB, free: 0.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0002408/0.2521, allocations: 143.2 kB / 370.6 MB, free: 356 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005479/0.2576, allocations: 1.195 MB / 371.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.265e-05/0.2577, allocations: 320 / 371.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/0.2597, allocations: 377.9 kB / 372.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.2609, allocations: 133.3 kB / 372.3 MB, free: 14.65 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00433/0.2652, allocations: 1.435 MB / 373.7 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.2658, allocations: 0.8444 MB / 374.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006443/0.2665, allocations: 39.42 kB / 374.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.2665, allocations: 4 kB / 374.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of Templates: time 0.01707/0.2836, allocations: 7.11 MB / 381.7 MB, free: 5.031 MB / 314.7 MB