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_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadModel(Modelica_Synchronous): time 2.023/2.023, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.372e-05/3.39e-05, allocations: 4 kB / 284.3 MB, free: 8.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08613/0.08619, allocations: 50.36 MB / 334.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.391/0.4772, allocations: 82.2 MB / 416.9 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.4775, allocations: 72.89 kB / 416.9 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03893/0.5164, allocations: 6.402 MB / 423.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.423e-06/0.5165, allocations: 0 / 423.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.409e-05/0.5166, allocations: 4 kB / 423.3 MB, free: 6.625 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.002523/0.5191, allocations: 0.5653 MB / 423.9 MB, free: 6.035 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.254e-05/0.5192, allocations: 8.031 kB / 423.9 MB, free: 6.027 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.5195, allocations: 39.62 kB / 424 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009254/0.5204, allocations: 272.8 kB / 424.2 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005495/0.521, allocations: 142.9 kB / 424.4 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.5212, allocations: 27.19 kB / 424.4 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002315/0.5235, allocations: 491 kB / 424.9 MB, free: 5.164 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.54e-05/0.5236, allocations: 3.984 kB / 424.9 MB, free: 5.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.5238, allocations: 14.44 kB / 424.9 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.5238, allocations: 12 kB / 424.9 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/0.526, allocations: 408.9 kB / 425.3 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00412/0.5301, allocations: 1.006 MB / 426.3 MB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.5327, allocations: 414.5 kB / 426.7 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009654/0.5337, allocations: 203.5 kB / 426.9 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001119/0.5339, allocations: 23.3 kB / 426.9 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.813e-05/0.534, allocations: 37.56 kB / 427 MB, free: 3.426 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 7.3e-06/0.534, allocations: 0 / 427 MB, free: 3.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.02116/0.5552, allocations: 2.089 MB / 429.1 MB, free: 1.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002175/0.5555, allocations: 143.5 kB / 429.2 MB, free: 1.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005174/0.556, allocations: 175.2 kB / 429.4 MB, free: 1.598 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000226/0.5563, allocations: 36.64 kB / 429.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.5565, allocations: 204.9 kB / 429.6 MB, free: 1.371 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005255/0.5571, allocations: 198.3 kB / 429.8 MB, free: 1.203 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.5573, allocations: 13.44 kB / 429.8 MB, free: 1.199 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000309/0.5577, allocations: 336.6 kB / 430.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.5602, allocations: 482.3 kB / 430.6 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002755/0.563, allocations: 0.6357 MB / 431.2 MB, free: 188 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/0.5653, allocations: 431 kB / 431.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.228e-05/0.5653, allocations: 4 kB / 431.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.006981/0.5723, allocations: 1.083 MB / 432.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.5724, allocations: 8 kB / 432.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/0.5725, allocations: 16.05 kB / 432.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.292e-05/0.5726, allocations: 8 kB / 432.8 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003807/0.5764, allocations: 231 kB / 433 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.816e-05/0.5765, allocations: 11.95 kB / 433 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0024/0.5789, allocations: 126.3 kB / 433.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/0.5792, allocations: 27.45 kB / 433.2 MB, free: 14.89 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.0005068/0.5797, allocations: 149.8 kB / 433.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000788/0.5805, allocations: 153.8 kB / 433.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002458/0.5808, allocations: 60.58 kB / 433.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-05/0.5808, allocations: 8 kB / 433.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.5809, allocations: 192 / 433.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.436e-05/0.5809, allocations: 15.94 kB / 433.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009718/0.5906, allocations: 1.988 MB / 435.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-05/0.5907, allocations: 9 kB / 435.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002092/0.5929, allocations: 199 kB / 435.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-05/0.5929, allocations: 16 kB / 435.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/0.5931, allocations: 29.8 kB / 435.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.778e-05/0.5931, allocations: 19.94 kB / 435.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.441e-05/0.5932, allocations: 15.94 kB / 435.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004398/0.5976, allocations: 1.767 MB / 437.6 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004786/0.5981, allocations: 163.4 kB / 437.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.5983, allocations: 30.84 kB / 437.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/0.6, allocations: 102.8 kB / 437.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00047/0.6005, allocations: 105.3 kB / 438 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.6007, allocations: 35.62 kB / 438 MB, free: 10.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003064/0.601, allocations: 142.1 kB / 438.2 MB, free: 10.19 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.094e-06/0.601, allocations: 4 kB / 438.2 MB, free: 10.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009752/0.602, allocations: 129.3 kB / 438.3 MB, free: 10.08 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.0002381/0.6023, allocations: 142.2 kB / 438.4 MB, free: 9.945 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001955/0.6042, allocations: 0.846 MB / 439.3 MB, free: 9.395 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.179e-06/0.6043, allocations: 0 / 439.3 MB, free: 9.395 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000679/0.605, allocations: 220.4 kB / 439.5 MB, free: 9.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008298/0.6058, allocations: 116.6 kB / 439.6 MB, free: 9.066 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.6084, allocations: 0.9833 MB / 440.6 MB, free: 7.914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.609, allocations: 0.8171 MB / 441.4 MB, free: 7.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004598/0.6095, allocations: 47.36 kB / 441.4 MB, free: 7.023 MB / 362.7 MB Notification: Performance of SimCode: time 1.68e-06/0.6095, allocations: 4 kB / 441.4 MB, free: 7.02 MB / 362.7 MB Notification: Performance of Templates: time 0.01352/0.623, allocations: 6.854 MB / 448.3 MB, free: 152 kB / 362.7 MB "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,der(load.w),load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,der(speed.flange.phi),speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau