Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadModel(Modelica): time 2.189/2.189, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.491e-05/2.483e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 50.41 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002943/0.1151, allocations: 1.743 MB / 346.7 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.1165, allocations: 0.5694 MB / 347.3 MB, free: 6.617 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.1166, allocations: 7.938 kB / 347.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.1169, allocations: 31.83 kB / 347.3 MB, free: 6.578 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.117, allocations: 47.78 kB / 347.4 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003615/0.1174, allocations: 91.89 kB / 347.5 MB, free: 6.441 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002873/0.1177, allocations: 147.7 kB / 347.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1179, allocations: 43.81 kB / 347.6 MB, free: 6.254 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.1181, allocations: 107.7 kB / 347.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002737/0.1184, allocations: 127.6 kB / 347.9 MB, free: 6.023 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.348e-05/0.1185, allocations: 20 kB / 347.9 MB, free: 6.004 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.977e-05/0.1185, allocations: 12 kB / 347.9 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.1187, allocations: 67.78 kB / 348 MB, free: 5.926 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.512e-05/0.1187, allocations: 20 kB / 348 MB, free: 5.906 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002901/0.119, allocations: 187.8 kB / 348.2 MB, free: 5.723 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.119, allocations: 0 / 348.2 MB, free: 5.723 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1191, allocations: 0 / 348.2 MB, free: 5.723 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1191, allocations: 0 / 348.2 MB, free: 5.723 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001462/0.1205, allocations: 0.5417 MB / 348.7 MB, free: 5.133 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.1206, allocations: 8.031 kB / 348.7 MB, free: 5.125 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.1207, allocations: 35.67 kB / 348.8 MB, free: 5.09 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003827/0.1211, allocations: 247.1 kB / 349 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002912/0.1214, allocations: 145.6 kB / 349.1 MB, free: 4.648 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.187e-05/0.1215, allocations: 27.91 kB / 349.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.1229, allocations: 375.6 kB / 349.5 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.123, allocations: 0 / 349.5 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.808e-05/0.123, allocations: 12 kB / 349.5 MB, free: 4.234 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.1231, allocations: 7.953 kB / 349.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002399/0.1255, allocations: 0.5096 MB / 350.1 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002623/0.1281, allocations: 1.031 MB / 351.1 MB, free: 2.617 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002054/0.1302, allocations: 355.1 kB / 351.4 MB, free: 2.262 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.091e-05/0.1303, allocations: 4.234 kB / 351.4 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.1303, allocations: 34.8 kB / 351.5 MB, free: 2.215 MB / 282.7 MB Notification: Performance of pre-optimization done (n=28): time 2.184e-06/0.1303, allocations: 0 / 351.5 MB, free: 2.215 MB / 282.7 MB Notification: Performance of matching and sorting (n=52): time 0.05415/0.1845, allocations: 6.672 MB / 358.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.1846, allocations: 59.84 kB / 358.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003498/0.1849, allocations: 185.9 kB / 358.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.146e-05/0.185, allocations: 33.7 kB / 358.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.1852, allocations: 215.1 kB / 358.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.1854, allocations: 177.5 kB / 358.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.949e-05/0.1855, allocations: 8 kB / 358.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1857, allocations: 334.8 kB / 359.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/0.1882, allocations: 0.493 MB / 359.6 MB, free: 9.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002584/0.1908, allocations: 0.549 MB / 360.2 MB, free: 9.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002372/0.1932, allocations: 438 kB / 360.6 MB, free: 8.941 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1932, allocations: 0 / 360.6 MB, free: 8.941 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005281/0.1985, allocations: 1.061 MB / 361.7 MB, free: 7.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.1986, allocations: 11.94 kB / 361.7 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1986, allocations: 0 / 361.7 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.1986, allocations: 4 kB / 361.7 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001885/0.2005, allocations: 191.7 kB / 361.9 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.2005, allocations: 7.984 kB / 361.9 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.2019, allocations: 107.9 kB / 362 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.865e-05/0.202, allocations: 16 kB / 362 MB, free: 7.539 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (65): * Single equations (assignments): 65 * 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.0003151/0.2023, allocations: 153.8 kB / 362.2 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.2024, allocations: 27.7 kB / 362.2 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.2026, allocations: 47.31 kB / 362.2 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.2026, allocations: 12 kB / 362.2 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.2026, allocations: 7.891 kB / 362.2 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.2027, allocations: 3.984 kB / 362.2 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007695/0.2104, allocations: 1.994 MB / 364.2 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-05/0.2104, allocations: 8 kB / 364.3 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/0.2121, allocations: 164 kB / 364.4 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.743e-05/0.2122, allocations: 12 kB / 364.4 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.252e-05/0.2123, allocations: 16 kB / 364.4 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.609e-05/0.2123, allocations: 19.92 kB / 364.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-05/0.2123, allocations: 11.94 kB / 364.5 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0071/0.2194, allocations: 1.741 MB / 366.2 MB, free: 2.816 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003735/0.2199, allocations: 144.8 kB / 366.4 MB, free: 2.656 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.22, allocations: 16 kB / 366.4 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/0.2214, allocations: 95.91 kB / 366.5 MB, free: 2.547 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004079/0.2218, allocations: 91.67 kB / 366.6 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.634e-05/0.2219, allocations: 24 kB / 366.6 MB, free: 2.434 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003653/0.2223, allocations: 147.2 kB / 366.7 MB, free: 2.289 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2224, allocations: 0 / 366.7 MB, free: 2.289 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001155/0.2235, allocations: 92 kB / 366.8 MB, free: 2.199 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * 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 (52): * Single equations (assignments): 52 * 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.0002839/0.2238, allocations: 134.3 kB / 366.9 MB, free: 2.059 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006226/0.2301, allocations: 0.9273 MB / 367.9 MB, free: 1.133 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.904e-06/0.2301, allocations: 0 / 367.9 MB, free: 1.133 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002429/0.2326, allocations: 357.8 kB / 368.2 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008322/0.2334, allocations: 50.72 kB / 368.3 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004794/0.2382, allocations: 1.197 MB / 369.5 MB, free: 15.4 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006281/0.2389, allocations: 0.7921 MB / 370.3 MB, free: 14.58 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006377/0.2396, allocations: 31.44 kB / 370.3 MB, free: 14.55 MB / 314.7 MB Notification: Performance of SimCode: time 1.373e-06/0.2396, allocations: 3.938 kB / 370.3 MB, free: 14.55 MB / 314.7 MB Notification: Performance of Templates: time 0.01776/0.2573, allocations: 5.37 MB / 375.7 MB, free: 9.184 MB / 314.7 MB