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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadModel(Modelica): time 2.221/2.221, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.093e-05/3.099e-05, allocations: 4 kB / 292.1 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09534/0.09539, allocations: 50.4 MB / 342.5 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3692/0.4646, allocations: 81.06 MB / 423.6 MB, free: 13.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.4649, allocations: 68.97 kB / 423.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03212/0.497, allocations: 7.201 MB / 430.9 MB, free: 7.035 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.297e-06/0.4971, allocations: 0 / 430.9 MB, free: 7.035 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.258e-05/0.4971, allocations: 8 kB / 430.9 MB, free: 7.027 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.001282/0.4984, allocations: 0.5754 MB / 431.5 MB, free: 6.426 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.4984, allocations: 8.031 kB / 431.5 MB, free: 6.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.4986, allocations: 35.62 kB / 431.5 MB, free: 6.383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004544/0.499, allocations: 265.5 kB / 431.8 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002686/0.4993, allocations: 146.3 kB / 431.9 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.059e-05/0.4994, allocations: 29.81 kB / 431.9 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.5005, allocations: 0.4957 MB / 432.4 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.5006, allocations: 7.844 kB / 432.4 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.814e-05/0.5006, allocations: 15.12 kB / 432.4 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.5007, allocations: 8 kB / 432.5 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009295/0.5016, allocations: 403.4 kB / 432.9 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.5036, allocations: 1.02 MB / 433.9 MB, free: 4.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.5049, allocations: 421 kB / 434.3 MB, free: 4.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000423/0.5053, allocations: 207.9 kB / 434.5 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/0.5054, allocations: 4 kB / 434.5 MB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.5054, allocations: 54.09 kB / 434.5 MB, free: 3.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.645e-06/0.5054, allocations: 0 / 434.5 MB, free: 3.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.009334/0.5148, allocations: 2.076 MB / 436.6 MB, free: 2.309 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.5149, allocations: 148.5 kB / 436.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/0.5152, allocations: 180.8 kB / 436.9 MB, free: 1.977 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.5153, allocations: 36.64 kB / 437 MB, free: 1.941 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.5155, allocations: 142.5 kB / 437.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.5157, allocations: 197.3 kB / 437.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.483e-05/0.5158, allocations: 15.69 kB / 437.3 MB, free: 1.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.516, allocations: 344.1 kB / 437.7 MB, free: 1.309 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.5171, allocations: 483.6 kB / 438.1 MB, free: 1.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.5183, allocations: 0.6416 MB / 438.8 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009576/0.5193, allocations: 436.6 kB / 439.2 MB, free: 384 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.952e-06/0.5193, allocations: 0 / 439.2 MB, free: 384 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002894/0.5222, allocations: 1.086 MB / 440.3 MB, free: 15.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.5223, allocations: 8 kB / 440.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.5223, allocations: 7.938 kB / 440.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.908e-05/0.5223, allocations: 12 kB / 440.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/0.5241, allocations: 227.6 kB / 440.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.658e-05/0.5241, allocations: 15.92 kB / 440.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.5253, allocations: 121.9 kB / 440.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.5255, allocations: 31.42 kB / 440.7 MB, free: 15.33 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.0003218/0.5258, allocations: 157.1 kB / 440.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004561/0.5263, allocations: 148.5 kB / 441 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001712/0.5264, allocations: 64.14 kB / 441.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.5265, allocations: 8 kB / 441.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.378e-06/0.5265, allocations: 0 / 441.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.5265, allocations: 3.984 kB / 441.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005312/0.5318, allocations: 1.991 MB / 443.1 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/0.5319, allocations: 12 kB / 443.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.533, allocations: 202.5 kB / 443.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.26e-05/0.5331, allocations: 20 kB / 443.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.363e-05/0.5332, allocations: 29.98 kB / 443.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.291e-05/0.5332, allocations: 16.12 kB / 443.3 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.575e-05/0.5332, allocations: 15.94 kB / 443.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.5359, allocations: 1.763 MB / 445.1 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/0.5362, allocations: 164 kB / 445.3 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.5364, allocations: 27.14 kB / 445.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008631/0.5372, allocations: 97.61 kB / 445.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/0.5375, allocations: 113.3 kB / 445.5 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.347e-05/0.5376, allocations: 31.5 kB / 445.5 MB, free: 10.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002058/0.5378, allocations: 151.1 kB / 445.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.94e-07/0.5379, allocations: 0 / 445.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000935/0.5388, allocations: 124.6 kB / 445.8 MB, free: 10.52 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.0002524/0.5391, allocations: 150.4 kB / 446 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.5412, allocations: 0.8353 MB / 446.8 MB, free: 9.535 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/0.5412, allocations: 4 kB / 446.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007145/0.542, allocations: 223.5 kB / 447 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009021/0.5429, allocations: 120 kB / 447.1 MB, free: 9.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.5456, allocations: 0.9641 MB / 448.1 MB, free: 8.078 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006593/0.5463, allocations: 0.8206 MB / 448.9 MB, free: 7.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008921/0.5472, allocations: 91.36 kB / 449 MB, free: 7.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/0.5476, allocations: 39.44 kB / 449 MB, free: 7.098 MB / 362.7 MB Notification: Performance of SimCode: time 1.763e-06/0.5476, allocations: 0 / 449 MB, free: 7.098 MB / 362.7 MB Notification: Performance of Templates: time 0.01903/0.5666, allocations: 7.314 MB / 456.4 MB, free: 15.79 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