Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadModel(Modelica): time 2.185/2.185, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.843e-05/2.841e-05, allocations: 3.984 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1271, allocations: 50.42 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003437/0.1306, allocations: 1.91 MB / 346.9 MB, free: 7 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1325, allocations: 0.7135 MB / 347.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.1328, allocations: 11.94 kB / 347.6 MB, free: 6.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.1331, allocations: 35.75 kB / 347.6 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.1333, allocations: 47.78 kB / 347.7 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006724/0.134, allocations: 143.7 kB / 347.8 MB, free: 6.047 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003329/0.1343, allocations: 168.1 kB / 348 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.1345, allocations: 57.38 kB / 348.1 MB, free: 5.828 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002708/0.1348, allocations: 119.7 kB / 348.2 MB, free: 5.711 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.1351, allocations: 139.6 kB / 348.3 MB, free: 5.574 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.034e-05/0.1352, allocations: 16 kB / 348.3 MB, free: 5.559 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.647e-05/0.1353, allocations: 19.94 kB / 348.3 MB, free: 5.539 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.1354, allocations: 75.72 kB / 348.4 MB, free: 5.465 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.165e-05/0.1355, allocations: 20 kB / 348.4 MB, free: 5.445 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.1358, allocations: 227.7 kB / 348.7 MB, free: 5.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1359, allocations: 0 / 348.7 MB, free: 5.223 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1359, allocations: 0 / 348.7 MB, free: 5.223 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1359, allocations: 0 / 348.7 MB, free: 5.223 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001668/0.1376, allocations: 0.5733 MB / 349.2 MB, free: 4.602 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.1376, allocations: 8.031 kB / 349.2 MB, free: 4.594 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.1378, allocations: 43.58 kB / 349.3 MB, free: 4.551 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004967/0.1383, allocations: 271.1 kB / 349.5 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003077/0.1386, allocations: 141.7 kB / 349.7 MB, free: 4.086 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.1387, allocations: 31.91 kB / 349.7 MB, free: 4.055 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.1407, allocations: 0.571 MB / 350.3 MB, free: 3.461 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.1408, allocations: 4 kB / 350.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.153e-05/0.1409, allocations: 12 kB / 350.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.1409, allocations: 4 kB / 350.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002681/0.1436, allocations: 0.5347 MB / 350.8 MB, free: 2.906 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002619/0.1463, allocations: 1.022 MB / 351.9 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002967/0.1493, allocations: 0.5148 MB / 352.4 MB, free: 1.258 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001064/0.1494, allocations: 16.11 kB / 352.4 MB, free: 1.242 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.199e-05/0.1495, allocations: 38.75 kB / 352.4 MB, free: 1.195 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 2.906e-06/0.1495, allocations: 0 / 352.4 MB, free: 1.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.08187/0.2314, allocations: 6.742 MB / 359.2 MB, free: 10.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/0.2316, allocations: 149 kB / 359.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.2319, allocations: 178.5 kB / 359.5 MB, free: 10.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001527/0.2321, allocations: 37.7 kB / 359.5 MB, free: 10.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.2323, allocations: 207.9 kB / 359.7 MB, free: 9.832 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003264/0.2326, allocations: 189.3 kB / 359.9 MB, free: 9.645 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.2327, allocations: 12.38 kB / 359.9 MB, free: 9.633 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.2329, allocations: 338.8 kB / 360.3 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003192/0.2361, allocations: 0.6539 MB / 360.9 MB, free: 8.637 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003376/0.2396, allocations: 0.8295 MB / 361.7 MB, free: 7.734 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003047/0.2427, allocations: 0.6098 MB / 362.4 MB, free: 7.125 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.2427, allocations: 0 / 362.4 MB, free: 7.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006957/0.2497, allocations: 1.468 MB / 363.8 MB, free: 5.652 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.984e-05/0.2498, allocations: 8 kB / 363.8 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.2498, allocations: 4 kB / 363.8 MB, free: 5.641 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.465e-05/0.2499, allocations: 8 kB / 363.8 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002649/0.2525, allocations: 227.7 kB / 364.1 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.287e-05/0.2526, allocations: 11.94 kB / 364.1 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001834/0.2545, allocations: 127.7 kB / 364.2 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.2547, allocations: 32 kB / 364.2 MB, free: 5.242 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.0004932/0.2552, allocations: 181.6 kB / 364.4 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000518/0.2557, allocations: 149.2 kB / 364.6 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002293/0.256, allocations: 67.3 kB / 364.6 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.256, allocations: 8 kB / 364.6 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.256, allocations: 0 / 364.6 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.256, allocations: 3.984 kB / 364.6 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009173/0.2652, allocations: 2.285 MB / 366.9 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.716e-05/0.2653, allocations: 15.95 kB / 366.9 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001698/0.267, allocations: 203.8 kB / 367.1 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-05/0.2671, allocations: 16 kB / 367.1 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.2672, allocations: 32 kB / 367.2 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.984e-05/0.2673, allocations: 19.92 kB / 367.2 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.586e-05/0.2673, allocations: 15.94 kB / 367.2 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007123/0.2744, allocations: 2.165 MB / 369.4 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004382/0.2749, allocations: 164.8 kB / 369.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.2751, allocations: 28 kB / 369.6 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.2762, allocations: 100.2 kB / 369.7 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003669/0.2766, allocations: 107.6 kB / 369.8 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.331e-05/0.2767, allocations: 31.94 kB / 369.8 MB, free: 15.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002444/0.277, allocations: 141.2 kB / 369.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.277, allocations: 0 / 369.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001056/0.2781, allocations: 124 kB / 370.1 MB, free: 14.77 MB / 314.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.0002903/0.2784, allocations: 138.9 kB / 370.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005784/0.2842, allocations: 1.187 MB / 371.4 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2e-05/0.2843, allocations: 4 kB / 371.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002139/0.2864, allocations: 378 kB / 371.8 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.2876, allocations: 122.9 kB / 371.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004533/0.2922, allocations: 1.364 MB / 373.2 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006747/0.2929, allocations: 0.8245 MB / 374.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006534/0.2936, allocations: 51.36 kB / 374.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of SimCode: time 1.363e-06/0.2936, allocations: 0 / 374.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of Templates: time 0.01857/0.3122, allocations: 6.916 MB / 381 MB, free: 3.598 MB / 314.7 MB