Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadModel(Modelica_Synchronous): time 1.984/1.984, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.845e-05/3.869e-05, allocations: 0 / 284.3 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.09153, allocations: 50.37 MB / 334.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3693/0.4609, allocations: 82.28 MB / 417 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001914/0.4611, allocations: 69.09 kB / 417 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03025/0.4914, allocations: 7.027 MB / 424.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.59e-06/0.4914, allocations: 0 / 424.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.05e-05/0.4914, allocations: 4 kB / 424.1 MB, free: 6.074 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.001243/0.4927, allocations: 0.5784 MB / 424.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.4928, allocations: 15.97 kB / 424.7 MB, free: 5.457 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.4929, allocations: 39.62 kB / 424.7 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004473/0.4933, allocations: 260.3 kB / 425 MB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002631/0.4936, allocations: 150 kB / 425.1 MB, free: 4.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.4937, allocations: 30.28 kB / 425.1 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.4949, allocations: 0.4977 MB / 425.6 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.4949, allocations: 4 kB / 425.6 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.495, allocations: 9.438 kB / 425.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.495, allocations: 12 kB / 425.7 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009441/0.4959, allocations: 409.9 kB / 426.1 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002056/0.498, allocations: 1.014 MB / 427.1 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.4993, allocations: 421.5 kB / 427.5 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/0.4997, allocations: 208.3 kB / 427.7 MB, free: 2.895 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.776e-05/0.4998, allocations: 7.953 kB / 427.7 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.4998, allocations: 45.75 kB / 427.7 MB, free: 2.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.564e-06/0.4998, allocations: 0 / 427.7 MB, free: 2.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.009306/0.5092, allocations: 2.078 MB / 429.8 MB, free: 1.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.5093, allocations: 152.8 kB / 430 MB, free: 1.164 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002602/0.5096, allocations: 182 kB / 430.1 MB, free: 1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.5097, allocations: 40.52 kB / 430.2 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.5098, allocations: 141.3 kB / 430.3 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.5101, allocations: 187.5 kB / 430.5 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.5102, allocations: 15.75 kB / 430.5 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.5105, allocations: 344.7 kB / 430.9 MB, free: 348 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.5115, allocations: 478.6 kB / 431.3 MB, free: 112 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.5128, allocations: 0.644 MB / 432 MB, free: 15.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009962/0.5138, allocations: 431.4 kB / 432.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.065e-06/0.5138, allocations: 0 / 432.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002612/0.5164, allocations: 1.089 MB / 433.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.5165, allocations: 12.12 kB / 433.5 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.5165, allocations: 4 kB / 433.5 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.5165, allocations: 12 kB / 433.5 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.5183, allocations: 226.8 kB / 433.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.318e-05/0.5184, allocations: 11.98 kB / 433.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.5195, allocations: 127.1 kB / 433.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000127/0.5197, allocations: 31.61 kB / 433.9 MB, free: 14.36 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.0003225/0.52, allocations: 152.5 kB / 434 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004527/0.5205, allocations: 154.4 kB / 434.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.5206, allocations: 63.91 kB / 434.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.5207, allocations: 11.98 kB / 434.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.5207, allocations: 4 kB / 434.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.184e-06/0.5207, allocations: 0 / 434.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005286/0.526, allocations: 1.996 MB / 436.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.172e-05/0.5261, allocations: 15.98 kB / 436.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.5272, allocations: 198.8 kB / 436.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.693e-05/0.5272, allocations: 16 kB / 436.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.213e-05/0.5273, allocations: 31.75 kB / 436.5 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.3e-05/0.5273, allocations: 19.92 kB / 436.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.992e-05/0.5274, allocations: 15.94 kB / 436.6 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/0.5301, allocations: 1.748 MB / 438.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003025/0.5304, allocations: 168.6 kB / 438.5 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.909e-05/0.5305, allocations: 27.98 kB / 438.5 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008383/0.5314, allocations: 99.98 kB / 438.6 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.5317, allocations: 107.7 kB / 438.7 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.708e-05/0.5317, allocations: 32 kB / 438.7 MB, free: 9.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002059/0.532, allocations: 145.2 kB / 438.9 MB, free: 9.508 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.46e-07/0.532, allocations: 4 kB / 438.9 MB, free: 9.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009703/0.533, allocations: 132 kB / 439 MB, free: 9.375 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.0002371/0.5332, allocations: 142.9 kB / 439.2 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002047/0.5353, allocations: 0.8441 MB / 440 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.5353, allocations: 0 / 440 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006774/0.536, allocations: 220.1 kB / 440.2 MB, free: 8.168 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008136/0.5368, allocations: 126.4 kB / 440.3 MB, free: 8.047 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.5394, allocations: 0.9568 MB / 441.3 MB, free: 6.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006186/0.54, allocations: 0.8284 MB / 442.1 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008326/0.5409, allocations: 87.38 kB / 442.2 MB, free: 5.988 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004002/0.5413, allocations: 39.42 kB / 442.2 MB, free: 5.949 MB / 362.7 MB Notification: Performance of SimCode: time 1.703e-06/0.5413, allocations: 0 / 442.2 MB, free: 5.949 MB / 362.7 MB Notification: Performance of Templates: time 0.01879/0.5601, allocations: 7.318 MB / 449.6 MB, free: 14.62 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,subSample1.factor,super.factor,super.inferFactor,time