Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadModel(Modelica_Synchronous): time 2.266/2.266, allocations: 218.4 MB / 234.2 MB, free: 348 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.278e-05, allocations: 3.859 kB / 287.6 MB, free: 8.477 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 50.38 MB / 338 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.005136/0.1109, allocations: 1.946 MB / 339.9 MB, free: 8.609 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002874/0.1139, allocations: 0.7767 MB / 340.7 MB, free: 7.824 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000362/0.1143, allocations: 11.94 kB / 340.7 MB, free: 7.812 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003067/0.1146, allocations: 39.64 kB / 340.7 MB, free: 7.773 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003913/0.115, allocations: 59.81 kB / 340.8 MB, free: 7.715 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.1162, allocations: 151.7 kB / 340.9 MB, free: 7.566 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006593/0.1169, allocations: 184 kB / 341.1 MB, free: 7.387 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.1172, allocations: 57.38 kB / 341.2 MB, free: 7.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004252/0.1176, allocations: 123.7 kB / 341.3 MB, free: 7.207 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004328/0.1181, allocations: 143.5 kB / 341.4 MB, free: 7.066 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.243e-05/0.1182, allocations: 16 kB / 341.5 MB, free: 7.051 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.894e-05/0.1183, allocations: 12 kB / 341.5 MB, free: 7.039 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.1185, allocations: 83.72 kB / 341.6 MB, free: 6.957 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.1187, allocations: 24 kB / 341.6 MB, free: 6.934 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005698/0.1192, allocations: 251.6 kB / 341.8 MB, free: 6.688 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1193, allocations: 0 / 341.8 MB, free: 6.688 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1193, allocations: 0 / 341.8 MB, free: 6.688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.1193, allocations: 0 / 341.8 MB, free: 6.688 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.002432/0.1218, allocations: 0.6044 MB / 342.4 MB, free: 6.035 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.1219, allocations: 8.031 kB / 342.4 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.1221, allocations: 43.53 kB / 342.5 MB, free: 5.984 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007706/0.1229, allocations: 290 kB / 342.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004774/0.1234, allocations: 149.7 kB / 342.9 MB, free: 5.492 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.1235, allocations: 31.94 kB / 342.9 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003062/0.1266, allocations: 0.5776 MB / 343.5 MB, free: 4.855 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/0.1267, allocations: 11.94 kB / 343.5 MB, free: 4.844 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.1268, allocations: 8 kB / 343.5 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.1268, allocations: 8 kB / 343.5 MB, free: 4.828 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004063/0.1309, allocations: 0.5347 MB / 344.1 MB, free: 4.293 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003767/0.1347, allocations: 1.045 MB / 345.1 MB, free: 3.172 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00449/0.1393, allocations: 0.5147 MB / 345.6 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.1395, allocations: 8.188 kB / 345.6 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.479e-05/0.1396, allocations: 38.91 kB / 345.7 MB, free: 2.566 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 5.671e-06/0.1396, allocations: 0 / 345.7 MB, free: 2.566 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.123/0.2626, allocations: 6.793 MB / 352.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.2628, allocations: 149 kB / 352.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004014/0.2632, allocations: 229.7 kB / 352.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001442/0.2633, allocations: 37.7 kB / 352.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.2635, allocations: 215.9 kB / 353.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.2638, allocations: 189.3 kB / 353.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.2639, allocations: 16 kB / 353.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2641, allocations: 338.8 kB / 353.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003113/0.2672, allocations: 0.65 MB / 354.3 MB, free: 9.902 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003277/0.2705, allocations: 0.8237 MB / 355.1 MB, free: 9.004 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002999/0.2736, allocations: 0.6098 MB / 355.7 MB, free: 8.398 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.2736, allocations: 0 / 355.7 MB, free: 8.398 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006779/0.2804, allocations: 1.449 MB / 357.2 MB, free: 6.941 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.2805, allocations: 8 kB / 357.2 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.2805, allocations: 8 kB / 357.2 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.17e-05/0.2806, allocations: 15.98 kB / 357.2 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002627/0.2832, allocations: 231.6 kB / 357.4 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.71e-05/0.2833, allocations: 12 kB / 357.4 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.2851, allocations: 123.7 kB / 357.5 MB, free: 6.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.2853, allocations: 28.38 kB / 357.6 MB, free: 6.523 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.000497/0.2858, allocations: 193.6 kB / 357.8 MB, free: 6.324 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005248/0.2864, allocations: 157.1 kB / 357.9 MB, free: 6.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002326/0.2866, allocations: 67.84 kB / 358 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.2867, allocations: 11.95 kB / 358 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.2867, allocations: 3.984 kB / 358 MB, free: 6.082 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.2867, allocations: 7.984 kB / 358 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008971/0.2957, allocations: 2.297 MB / 360.3 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.51e-05/0.2958, allocations: 12.06 kB / 360.3 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/0.2974, allocations: 199.7 kB / 360.5 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-05/0.2974, allocations: 20 kB / 360.5 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.2976, allocations: 28 kB / 360.6 MB, free: 3.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.924e-05/0.2976, allocations: 31.81 kB / 360.6 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-05/0.2976, allocations: 11.94 kB / 360.6 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006543/0.3042, allocations: 2.177 MB / 362.8 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004269/0.3047, allocations: 176.5 kB / 362.9 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.3048, allocations: 27.98 kB / 363 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.3059, allocations: 99.98 kB / 363.1 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/0.3062, allocations: 99.66 kB / 363.2 MB, free: 292 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.679e-05/0.3063, allocations: 36 kB / 363.2 MB, free: 256 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000288/0.3066, allocations: 185.9 kB / 363.4 MB, free: 68 kB / 298.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3066, allocations: 0 / 363.4 MB, free: 68 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009964/0.3076, allocations: 124 kB / 363.5 MB, free: 15.94 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.0002226/0.3078, allocations: 134.9 kB / 363.6 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00552/0.3134, allocations: 1.183 MB / 364.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.56e-05/0.3134, allocations: 4.375 kB / 364.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.3155, allocations: 382 kB / 365.2 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.3166, allocations: 163.7 kB / 365.4 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004565/0.3212, allocations: 1.431 MB / 366.8 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/0.3219, allocations: 0.8405 MB / 367.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006304/0.3226, allocations: 39.44 kB / 367.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.413e-06/0.3226, allocations: 0 / 367.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of Templates: time 0.01752/0.3401, allocations: 7.097 MB / 374.8 MB, free: 4.477 MB / 314.7 MB