Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.698e-05/3.717e-05, allocations: 0 / 292.1 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.09497, allocations: 50.41 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.5008, allocations: 81.17 MB / 423.7 MB, free: 13.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.501, allocations: 69.28 kB / 423.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03124/0.5323, allocations: 7.266 MB / 431.1 MB, free: 6.867 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.582e-06/0.5323, allocations: 4 kB / 431.1 MB, free: 6.863 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.5324, allocations: 8 kB / 431.1 MB, free: 6.855 MB / 346.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.001283/0.5337, allocations: 0.6008 MB / 431.7 MB, free: 6.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.5337, allocations: 8.031 kB / 431.7 MB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.5339, allocations: 43.62 kB / 431.7 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004976/0.5344, allocations: 297.9 kB / 432 MB, free: 5.871 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002643/0.5346, allocations: 143.5 kB / 432.2 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.485e-05/0.5347, allocations: 28.5 kB / 432.2 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.5359, allocations: 0.4988 MB / 432.7 MB, free: 5.324 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.5359, allocations: 7.906 kB / 432.7 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.514e-05/0.536, allocations: 10 kB / 432.7 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.536, allocations: 12 kB / 432.7 MB, free: 5.305 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009413/0.537, allocations: 405.5 kB / 433.1 MB, free: 5.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002136/0.5391, allocations: 1.035 MB / 434.1 MB, free: 4.109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.5404, allocations: 415.5 kB / 434.5 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004872/0.5409, allocations: 208.9 kB / 434.7 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.036e-05/0.541, allocations: 8.141 kB / 434.8 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.026e-05/0.541, allocations: 45.17 kB / 434.8 MB, free: 3.574 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 4.662e-06/0.541, allocations: 0 / 434.8 MB, free: 3.574 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.009574/0.5506, allocations: 2.122 MB / 436.9 MB, free: 2.023 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.5508, allocations: 155.4 kB / 437.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003645/0.5512, allocations: 227.5 kB / 437.3 MB, free: 1.664 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/0.5513, allocations: 38.45 kB / 437.3 MB, free: 1.629 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.5514, allocations: 150.3 kB / 437.5 MB, free: 1.496 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002613/0.5517, allocations: 197.5 kB / 437.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.5518, allocations: 14 kB / 437.7 MB, free: 1.324 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.552, allocations: 344.9 kB / 438 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.5531, allocations: 478.2 kB / 438.5 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.5544, allocations: 0.6428 MB / 439.1 MB, free: 308 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009885/0.5554, allocations: 437.8 kB / 439.6 MB, free: 60 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.892e-06/0.5554, allocations: 0 / 439.6 MB, free: 60 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002672/0.5581, allocations: 1.091 MB / 440.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.5581, allocations: 12.09 kB / 440.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.5582, allocations: 7.984 kB / 440.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.061e-05/0.5582, allocations: 12 kB / 440.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.5599, allocations: 229.8 kB / 440.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.862e-05/0.5599, allocations: 19.92 kB / 440.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.5611, allocations: 121.7 kB / 441 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.5612, allocations: 30.11 kB / 441.1 MB, free: 14.99 MB / 362.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003174/0.5615, allocations: 148.6 kB / 441.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004638/0.562, allocations: 149.6 kB / 441.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000178/0.5622, allocations: 68.33 kB / 441.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.5622, allocations: 8 kB / 441.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.5623, allocations: 8 kB / 441.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.5623, allocations: 3.984 kB / 441.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005246/0.5675, allocations: 2.011 MB / 443.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-05/0.5676, allocations: 12 kB / 443.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.5687, allocations: 202.2 kB / 443.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.911e-05/0.5687, allocations: 19.98 kB / 443.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.135e-05/0.5688, allocations: 22.94 kB / 443.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.166e-05/0.5689, allocations: 23.94 kB / 443.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-05/0.5689, allocations: 15.94 kB / 443.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00269/0.5716, allocations: 1.763 MB / 445.5 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003655/0.572, allocations: 179 kB / 445.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.5721, allocations: 31.19 kB / 445.7 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008897/0.573, allocations: 100.9 kB / 445.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.5733, allocations: 104.8 kB / 445.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.872e-05/0.5734, allocations: 28 kB / 446 MB, free: 10.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003189/0.5738, allocations: 195 kB / 446.1 MB, free: 10.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.73e-07/0.5738, allocations: 4 kB / 446.1 MB, free: 10.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009851/0.5748, allocations: 124 kB / 446.3 MB, free: 10.05 MB / 362.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0002464/0.575, allocations: 138.9 kB / 446.4 MB, free: 9.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002102/0.5772, allocations: 0.8481 MB / 447.2 MB, free: 9.059 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/0.5772, allocations: 4 kB / 447.3 MB, free: 9.055 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007175/0.5779, allocations: 224 kB / 447.5 MB, free: 8.836 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009418/0.5789, allocations: 131.3 kB / 447.6 MB, free: 8.711 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002739/0.5816, allocations: 0.9977 MB / 448.6 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006538/0.5823, allocations: 0.8405 MB / 449.4 MB, free: 6.691 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008747/0.5832, allocations: 100.1 kB / 449.5 MB, free: 6.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004015/0.5836, allocations: 43.42 kB / 449.6 MB, free: 6.547 MB / 362.7 MB Notification: Performance of SimCode: time 2.19e-06/0.5837, allocations: 4 kB / 449.6 MB, free: 6.543 MB / 362.7 MB Notification: Performance of Templates: time 0.01927/0.6029, allocations: 7.51 MB / 457.1 MB, free: 15.04 MB / 378.7 MB "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,gain.k,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,super.factor,super.inferFactor,time