Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 225.8 MB / 239.4 MB, free: 1.25 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.284e-05, allocations: 8 kB / 292.7 MB, free: 11.49 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08863/0.08869, allocations: 50.41 MB / 343.1 MB, free: 9.086 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3888/0.4775, allocations: 80.65 MB / 423.7 MB, free: 8.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4778, allocations: 73.86 kB / 423.8 MB, free: 8.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02643/0.5042, allocations: 6.514 MB / 430.3 MB, free: 6.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.5043, allocations: 0 / 430.3 MB, free: 6.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.5043, allocations: 3.844 kB / 430.3 MB, free: 6.57 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001109/0.5054, allocations: 0.5679 MB / 430.9 MB, free: 6.102 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.5055, allocations: 11.5 kB / 430.9 MB, free: 6.102 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.5056, allocations: 31.09 kB / 430.9 MB, free: 6.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003745/0.506, allocations: 262.8 kB / 431.2 MB, free: 5.844 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.5063, allocations: 157.9 kB / 431.3 MB, free: 5.727 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.111e-05/0.5063, allocations: 28.72 kB / 431.3 MB, free: 5.727 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009719/0.5073, allocations: 489.8 kB / 431.8 MB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.4e-05/0.5074, allocations: 0 / 431.8 MB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.634e-05/0.5074, allocations: 14 kB / 431.8 MB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.5075, allocations: 7.75 kB / 431.8 MB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009331/0.5084, allocations: 406.5 kB / 432.2 MB, free: 5.516 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.5103, allocations: 1.026 MB / 433.3 MB, free: 4.797 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.5115, allocations: 408.8 kB / 433.7 MB, free: 4.664 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.5119, allocations: 206.7 kB / 433.9 MB, free: 4.629 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.844e-05/0.512, allocations: 7.828 kB / 433.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.512, allocations: 45.84 kB / 433.9 MB, free: 4.578 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 5.275e-06/0.512, allocations: 0 / 433.9 MB, free: 4.578 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.009236/0.5213, allocations: 2.072 MB / 436 MB, free: 4.078 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.973e-05/0.5214, allocations: 147.6 kB / 436.1 MB, free: 3.922 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.5217, allocations: 177.6 kB / 436.3 MB, free: 3.812 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.5218, allocations: 40.33 kB / 436.3 MB, free: 3.781 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.369e-05/0.5218, allocations: 139.3 kB / 436.5 MB, free: 3.66 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.5221, allocations: 193 kB / 436.7 MB, free: 3.527 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-05/0.5222, allocations: 14.72 kB / 436.7 MB, free: 3.527 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.879e-05/0.5223, allocations: 353.1 kB / 437 MB, free: 3.195 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009607/0.5232, allocations: 476.6 kB / 437.5 MB, free: 3.188 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.5243, allocations: 0.6414 MB / 438.1 MB, free: 2.965 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008927/0.5252, allocations: 429.2 kB / 438.6 MB, free: 2.914 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.469e-06/0.5252, allocations: 3.812 kB / 438.6 MB, free: 2.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002388/0.5276, allocations: 1.089 MB / 439.7 MB, free: 2.766 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.5277, allocations: 7.562 kB / 439.7 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.5277, allocations: 4.609 kB / 439.7 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.5277, allocations: 11.28 kB / 439.7 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.5295, allocations: 230.2 kB / 439.9 MB, free: 2.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.007e-05/0.5295, allocations: 15.61 kB / 439.9 MB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.5306, allocations: 128.7 kB / 440 MB, free: 2.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.5308, allocations: 30.42 kB / 440.1 MB, free: 2.648 MB / 330.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.0002829/0.5311, allocations: 159.1 kB / 440.2 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004171/0.5315, allocations: 152.6 kB / 440.4 MB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001658/0.5317, allocations: 60.86 kB / 440.4 MB, free: 2.445 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.5317, allocations: 7.719 kB / 440.4 MB, free: 2.445 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.165e-06/0.5317, allocations: 0 / 440.4 MB, free: 2.445 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.5317, allocations: 7.828 kB / 440.4 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004601/0.5363, allocations: 1.993 MB / 442.4 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/0.5364, allocations: 11.53 kB / 442.5 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.5375, allocations: 198.1 kB / 442.6 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-05/0.5375, allocations: 15.56 kB / 442.7 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.815e-05/0.5376, allocations: 32.58 kB / 442.7 MB, free: 1.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.836e-05/0.5376, allocations: 23.38 kB / 442.7 MB, free: 1.266 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/0.5376, allocations: 15.47 kB / 442.7 MB, free: 1.262 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/0.5398, allocations: 1.76 MB / 444.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.5401, allocations: 157.2 kB / 444.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.347e-05/0.5402, allocations: 34.23 kB / 444.7 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00081/0.5411, allocations: 97.56 kB / 444.8 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/0.5414, allocations: 112.2 kB / 444.9 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-05/0.5414, allocations: 30.09 kB / 444.9 MB, free: 15.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001904/0.5416, allocations: 144.4 kB / 445.1 MB, free: 15.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.95e-07/0.5417, allocations: 0 / 445.1 MB, free: 15.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009304/0.5426, allocations: 134.8 kB / 445.2 MB, free: 15.53 MB / 346.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.0002474/0.5429, allocations: 147.6 kB / 445.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.5447, allocations: 0.8352 MB / 446.2 MB, free: 15.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.722e-06/0.5447, allocations: 3.938 kB / 446.2 MB, free: 15.37 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000664/0.5454, allocations: 224.8 kB / 446.4 MB, free: 15.33 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008854/0.5463, allocations: 119.5 kB / 446.5 MB, free: 15.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.5489, allocations: 0.9577 MB / 447.5 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005881/0.5495, allocations: 0.8206 MB / 448.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008662/0.5504, allocations: 89.06 kB / 448.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004151/0.5508, allocations: 40.3 kB / 448.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of SimCode: time 1.979e-06/0.5509, allocations: 0 / 448.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of Templates: time 0.0177/0.5686, allocations: 7.255 MB / 455.7 MB, free: 9.738 MB / 346.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,super.factor,super.inferFactor,time