Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.89e-05/2.908e-05, allocations: 7.797 kB / 292.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08626/0.08631, allocations: 50.4 MB / 343.1 MB, free: 5.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4032/0.4896, allocations: 81.06 MB / 424.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.4899, allocations: 74.77 kB / 424.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03039/0.5203, allocations: 7.199 MB / 431.4 MB, free: 7.043 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.119e-06/0.5203, allocations: 0 / 431.4 MB, free: 7.043 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.364e-05/0.5203, allocations: 12 kB / 431.4 MB, free: 7.031 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001691/0.522, allocations: 0.5792 MB / 432 MB, free: 6.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.5221, allocations: 12.03 kB / 432 MB, free: 6.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.5223, allocations: 35.62 kB / 432 MB, free: 6.383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004798/0.5228, allocations: 263.5 kB / 432.3 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002652/0.5231, allocations: 145.9 kB / 432.4 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.868e-05/0.5232, allocations: 30.06 kB / 432.5 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.5243, allocations: 0.4969 MB / 433 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.5243, allocations: 3.906 kB / 433 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.5244, allocations: 14.31 kB / 433 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.5244, allocations: 4 kB / 433 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009472/0.5254, allocations: 407.6 kB / 433.4 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.5275, allocations: 1.026 MB / 434.4 MB, free: 4.336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.5287, allocations: 404.6 kB / 434.8 MB, free: 4.012 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004419/0.5291, allocations: 206.1 kB / 435 MB, free: 3.871 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.864e-05/0.5292, allocations: 11.42 kB / 435 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.5293, allocations: 49.98 kB / 435.1 MB, free: 3.809 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 4.174e-06/0.5293, allocations: 0 / 435.1 MB, free: 3.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01166/0.5409, allocations: 2.08 MB / 437.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000175/0.5412, allocations: 144.9 kB / 437.3 MB, free: 2.141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003979/0.5416, allocations: 184.5 kB / 437.5 MB, free: 1.977 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001776/0.5418, allocations: 36.64 kB / 437.5 MB, free: 1.945 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.542, allocations: 143.7 kB / 437.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003947/0.5424, allocations: 203.4 kB / 437.8 MB, free: 1.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.5425, allocations: 11.38 kB / 437.9 MB, free: 1.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002353/0.5428, allocations: 339.9 kB / 438.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00185/0.5447, allocations: 481.3 kB / 438.7 MB, free: 1.082 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002039/0.5467, allocations: 0.6454 MB / 439.3 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001726/0.5485, allocations: 437.7 kB / 439.7 MB, free: 384 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.5485, allocations: 4 kB / 439.7 MB, free: 380 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.004744/0.5533, allocations: 1.089 MB / 440.8 MB, free: 15.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.56e-05/0.5534, allocations: 8 kB / 440.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.081e-05/0.5535, allocations: 8 kB / 440.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.144e-05/0.5535, allocations: 11.94 kB / 440.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00326/0.5568, allocations: 231.6 kB / 441.1 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.91e-05/0.5569, allocations: 12 kB / 441.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002171/0.5591, allocations: 126.2 kB / 441.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002202/0.5593, allocations: 23.94 kB / 441.2 MB, free: 15.32 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.000511/0.5599, allocations: 154.2 kB / 441.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007951/0.5607, allocations: 149.9 kB / 441.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002592/0.561, allocations: 61.27 kB / 441.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.448e-05/0.561, allocations: 8 kB / 441.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.5611, allocations: 0 / 441.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.778e-05/0.5611, allocations: 7.984 kB / 441.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00953/0.5707, allocations: 1.991 MB / 443.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.415e-05/0.5708, allocations: 8 kB / 443.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/0.5728, allocations: 205.7 kB / 443.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.731e-05/0.5729, allocations: 16 kB / 443.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001289/0.573, allocations: 25.12 kB / 443.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.955e-05/0.5731, allocations: 19.94 kB / 443.9 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.479e-05/0.5732, allocations: 11.94 kB / 443.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004384/0.5776, allocations: 1.764 MB / 445.6 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005061/0.5781, allocations: 167.8 kB / 445.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.5783, allocations: 30.12 kB / 445.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/0.58, allocations: 98.78 kB / 445.9 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004474/0.5804, allocations: 103.9 kB / 446 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.5806, allocations: 33.62 kB / 446.1 MB, free: 10.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003118/0.5809, allocations: 146.5 kB / 446.2 MB, free: 10.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.428e-06/0.581, allocations: 0 / 446.2 MB, free: 10.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001754/0.5827, allocations: 128.8 kB / 446.3 MB, free: 10.53 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.0003569/0.5831, allocations: 147.7 kB / 446.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003576/0.5867, allocations: 0.848 MB / 447.3 MB, free: 9.566 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/0.5868, allocations: 0 / 447.3 MB, free: 9.566 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001224/0.588, allocations: 223 kB / 447.5 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.5896, allocations: 124.6 kB / 447.7 MB, free: 9.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004404/0.594, allocations: 0.9524 MB / 448.6 MB, free: 8.117 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008159/0.5949, allocations: 0.8245 MB / 449.4 MB, free: 7.266 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001608/0.5965, allocations: 91.36 kB / 449.5 MB, free: 7.172 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006817/0.5972, allocations: 35.44 kB / 449.6 MB, free: 7.137 MB / 362.7 MB Notification: Performance of SimCode: time 2.617e-06/0.5972, allocations: 0 / 449.6 MB, free: 7.137 MB / 362.7 MB Notification: Performance of Templates: time 0.02077/0.618, allocations: 7.315 MB / 456.9 MB, free: 15.83 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,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,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,subSample1.factor,super.factor,super.inferFactor,time