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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.89e-05/2.903e-05, allocations: 4 kB / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09252/0.09257, allocations: 50.41 MB / 343.1 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.5185, allocations: 81.18 MB / 424.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.5188, allocations: 70.59 kB / 424.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0605/0.5793, allocations: 7.267 MB / 431.6 MB, free: 6.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.159e-06/0.5794, allocations: 0 / 431.6 MB, free: 6.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.558e-05/0.5795, allocations: 4 kB / 431.6 MB, free: 6.812 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.002748/0.5822, allocations: 0.6063 MB / 432.2 MB, free: 6.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.972e-05/0.5824, allocations: 12.02 kB / 432.2 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002373/0.5826, allocations: 39.62 kB / 432.2 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.5837, allocations: 293.5 kB / 432.5 MB, free: 5.828 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005468/0.5843, allocations: 152.2 kB / 432.7 MB, free: 5.676 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.5845, allocations: 29.23 kB / 432.7 MB, free: 5.656 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002452/0.587, allocations: 0.4976 MB / 433.2 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.53e-05/0.587, allocations: 3.906 kB / 433.2 MB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.76e-05/0.5871, allocations: 13.31 kB / 433.2 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.5872, allocations: 4 kB / 433.2 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002138/0.5894, allocations: 406 kB / 433.6 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004337/0.5937, allocations: 1.04 MB / 434.7 MB, free: 4.055 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00261/0.5964, allocations: 416.8 kB / 435.1 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.5975, allocations: 208.9 kB / 435.3 MB, free: 3.574 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.5976, allocations: 15.44 kB / 435.3 MB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.797e-05/0.5977, allocations: 41.8 kB / 435.3 MB, free: 3.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 8.213e-06/0.5978, allocations: 0 / 435.3 MB, free: 3.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01423/0.612, allocations: 2.123 MB / 437.4 MB, free: 1.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.6122, allocations: 151.4 kB / 437.6 MB, free: 1.793 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003689/0.6126, allocations: 232.6 kB / 437.8 MB, free: 1.605 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.6127, allocations: 39.89 kB / 437.9 MB, free: 1.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.6128, allocations: 143 kB / 438 MB, free: 1.441 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002664/0.6131, allocations: 202.5 kB / 438.2 MB, free: 1.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.6132, allocations: 11.12 kB / 438.2 MB, free: 1.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.6134, allocations: 348.7 kB / 438.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.6145, allocations: 478.2 kB / 439 MB, free: 0.707 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.6157, allocations: 0.6417 MB / 439.7 MB, free: 248 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.6167, allocations: 436.6 kB / 440.1 MB, free: 0 / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.6168, allocations: 8.078 kB / 440.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002648/0.6194, allocations: 1.093 MB / 441.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.6195, allocations: 4 kB / 441.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.6195, allocations: 8.719 kB / 441.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.957e-05/0.6196, allocations: 8 kB / 441.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/0.6214, allocations: 231.3 kB / 441.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.736e-05/0.6214, allocations: 19.92 kB / 441.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.6226, allocations: 125 kB / 441.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.6228, allocations: 27.36 kB / 441.6 MB, free: 14.93 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.0003201/0.6231, allocations: 146.7 kB / 441.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004703/0.6236, allocations: 152.6 kB / 441.9 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001863/0.6238, allocations: 73.73 kB / 442 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.6238, allocations: 11.94 kB / 442 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.6238, allocations: 0 / 442 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.6239, allocations: 3.984 kB / 442 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00537/0.6292, allocations: 2.007 MB / 444 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.352e-05/0.6293, allocations: 12 kB / 444 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.6304, allocations: 200.1 kB / 444.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.631e-05/0.6305, allocations: 16 kB / 444.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.792e-05/0.6305, allocations: 30.11 kB / 444.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-05/0.6306, allocations: 15.94 kB / 444.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.535e-05/0.6306, allocations: 15.94 kB / 444.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.6333, allocations: 1.767 MB / 446 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003838/0.6337, allocations: 178.9 kB / 446.2 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.6339, allocations: 31.61 kB / 446.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009044/0.6348, allocations: 102.2 kB / 446.3 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/0.6351, allocations: 103.5 kB / 446.4 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.677e-05/0.6352, allocations: 27.06 kB / 446.5 MB, free: 10.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002761/0.6354, allocations: 194.8 kB / 446.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.01e-07/0.6355, allocations: 0 / 446.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009698/0.6364, allocations: 132.5 kB / 446.8 MB, free: 10.06 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.0002426/0.6367, allocations: 142.3 kB / 446.9 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002161/0.6389, allocations: 0.843 MB / 447.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.346e-06/0.6389, allocations: 0 / 447.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007216/0.6397, allocations: 231.2 kB / 448 MB, free: 8.859 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009452/0.6406, allocations: 128.9 kB / 448.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.6434, allocations: 1.004 MB / 449.1 MB, free: 7.566 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006519/0.6441, allocations: 0.8405 MB / 450 MB, free: 6.699 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009103/0.645, allocations: 92.14 kB / 450.1 MB, free: 6.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.6455, allocations: 43.42 kB / 450.1 MB, free: 6.562 MB / 362.7 MB Notification: Performance of SimCode: time 1.918e-06/0.6455, allocations: 0 / 450.1 MB, free: 6.562 MB / 362.7 MB Notification: Performance of Templates: time 0.01866/0.6641, allocations: 7.515 MB / 457.6 MB, free: 15.05 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