Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadModel(Modelica_Synchronous): time 1.991/1.991, allocations: 218.4 MB / 231.1 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.434e-05/3.457e-05, allocations: 0 / 284.3 MB, free: 8.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/0.08931, allocations: 50.37 MB / 334.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.364/0.4534, allocations: 82.14 MB / 416.8 MB, free: 12.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.4537, allocations: 71.91 kB / 416.9 MB, free: 12.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02866/0.4824, allocations: 6.399 MB / 423.3 MB, free: 6.703 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4824, allocations: 0 / 423.3 MB, free: 6.703 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.334e-05/0.4825, allocations: 4 kB / 423.3 MB, free: 6.699 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001313/0.4838, allocations: 0.5622 MB / 423.9 MB, free: 6.113 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4838, allocations: 8.031 kB / 423.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.484, allocations: 43.62 kB / 423.9 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004892/0.4845, allocations: 267.3 kB / 424.2 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002753/0.4848, allocations: 149 kB / 424.3 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.1e-05/0.4849, allocations: 26.62 kB / 424.4 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.486, allocations: 494.9 kB / 424.8 MB, free: 5.234 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.4861, allocations: 4 kB / 424.8 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.523e-05/0.4861, allocations: 10.44 kB / 424.9 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.4861, allocations: 12 kB / 424.9 MB, free: 5.219 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009555/0.4871, allocations: 413.8 kB / 425.3 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.4893, allocations: 0.9994 MB / 426.3 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.4906, allocations: 409.6 kB / 426.7 MB, free: 3.707 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004546/0.4911, allocations: 212.7 kB / 426.9 MB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.305e-05/0.4912, allocations: 19.86 kB / 426.9 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.4912, allocations: 38.31 kB / 426.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 4.327e-06/0.4912, allocations: 0 / 426.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.00971/0.5009, allocations: 2.092 MB / 429 MB, free: 1.988 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.5011, allocations: 148.9 kB / 429.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002897/0.5014, allocations: 174.3 kB / 429.3 MB, free: 1.664 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.5016, allocations: 35.64 kB / 429.4 MB, free: 1.633 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.5017, allocations: 140 kB / 429.5 MB, free: 1.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.502, allocations: 196.3 kB / 429.7 MB, free: 1.336 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.3e-05/0.5021, allocations: 19.56 kB / 429.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.5023, allocations: 339.8 kB / 430.1 MB, free: 1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.5034, allocations: 479.6 kB / 430.5 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/0.5053, allocations: 0.6407 MB / 431.2 MB, free: 316 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.5064, allocations: 428.7 kB / 431.6 MB, free: 72 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/0.5065, allocations: 7.938 kB / 431.6 MB, free: 64 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002808/0.5093, allocations: 1.084 MB / 432.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.5094, allocations: 8 kB / 432.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.5094, allocations: 12.06 kB / 432.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.973e-05/0.5094, allocations: 8.094 kB / 432.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002259/0.5117, allocations: 234.6 kB / 432.9 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.155e-05/0.5118, allocations: 15.94 kB / 432.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.5131, allocations: 126.2 kB / 433.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.5132, allocations: 27.61 kB / 433.1 MB, free: 15.01 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.0003326/0.5136, allocations: 157.3 kB / 433.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004747/0.5141, allocations: 143.2 kB / 433.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001654/0.5142, allocations: 57.19 kB / 433.4 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.5143, allocations: 11.94 kB / 433.5 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.172e-06/0.5143, allocations: 0 / 433.5 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.5143, allocations: 15.94 kB / 433.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005455/0.5198, allocations: 1.985 MB / 435.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.333e-05/0.5199, allocations: 9 kB / 435.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.521, allocations: 203.1 kB / 435.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.968e-05/0.5211, allocations: 16 kB / 435.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-05/0.5212, allocations: 26.69 kB / 435.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.852e-05/0.5212, allocations: 27.92 kB / 435.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.548e-05/0.5213, allocations: 15.88 kB / 435.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002817/0.5241, allocations: 1.753 MB / 437.5 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000379/0.5245, allocations: 170.1 kB / 437.7 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.5246, allocations: 26.06 kB / 437.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008688/0.5255, allocations: 99.03 kB / 437.8 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002871/0.5258, allocations: 105.7 kB / 437.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.308e-05/0.5259, allocations: 35.86 kB / 437.9 MB, free: 10.44 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002097/0.5261, allocations: 141.2 kB / 438.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.5261, allocations: 4 kB / 438.1 MB, free: 10.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001043/0.5272, allocations: 132 kB / 438.2 MB, free: 10.18 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.0002712/0.5275, allocations: 135.6 kB / 438.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.5297, allocations: 0.8482 MB / 439.2 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/0.5297, allocations: 0 / 439.2 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007416/0.5305, allocations: 224.4 kB / 439.4 MB, free: 8.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009274/0.5314, allocations: 112.6 kB / 439.5 MB, free: 8.863 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.5343, allocations: 0.9543 MB / 440.5 MB, free: 7.746 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006318/0.5349, allocations: 0.8171 MB / 441.3 MB, free: 6.902 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008805/0.5358, allocations: 91.36 kB / 441.4 MB, free: 6.812 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004056/0.5363, allocations: 39.44 kB / 441.4 MB, free: 6.773 MB / 362.7 MB Notification: Performance of SimCode: time 2.196e-06/0.5363, allocations: 0 / 441.4 MB, free: 6.773 MB / 362.7 MB Notification: Performance of Templates: time 0.01883/0.5551, allocations: 7.271 MB / 448.7 MB, free: 15.5 MB / 378.7 MB "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,gain.k,gain.y,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.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time