Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") Notification: Performance of loadModel(Modelica_Synchronous): time 1.997/1.997, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.171e-05/3.205e-05, allocations: 4 kB / 284.3 MB, free: 8.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08918/0.08923, allocations: 50.36 MB / 334.7 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.361/0.4503, allocations: 82.42 MB / 417.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.4506, allocations: 74.33 kB / 417.2 MB, free: 11.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03158/0.4822, allocations: 7.094 MB / 424.3 MB, free: 5.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.156e-06/0.4822, allocations: 0 / 424.3 MB, free: 5.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.504e-05/0.4823, allocations: 8 kB / 424.3 MB, free: 5.832 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001277/0.4836, allocations: 0.6048 MB / 424.9 MB, free: 5.207 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.4836, allocations: 12.03 kB / 424.9 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.4838, allocations: 43.53 kB / 424.9 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005243/0.4843, allocations: 287.8 kB / 425.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/0.4846, allocations: 154.4 kB / 425.4 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.32e-05/0.4847, allocations: 29.88 kB / 425.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.4858, allocations: 0.4967 MB / 425.9 MB, free: 4.297 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.4859, allocations: 0 / 425.9 MB, free: 4.297 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.834e-05/0.4859, allocations: 15.56 kB / 425.9 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.486, allocations: 8 kB / 425.9 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009415/0.4869, allocations: 419.5 kB / 426.3 MB, free: 3.996 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.489, allocations: 1.041 MB / 427.4 MB, free: 3.066 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.4903, allocations: 408.8 kB / 427.8 MB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.4908, allocations: 206.3 kB / 428 MB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.3e-05/0.4909, allocations: 11.94 kB / 428 MB, free: 2.586 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/0.4909, allocations: 45.25 kB / 428 MB, free: 2.535 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.933e-06/0.4909, allocations: 0 / 428 MB, free: 2.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.009569/0.5005, allocations: 2.111 MB / 430.1 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.5007, allocations: 151.5 kB / 430.3 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003723/0.5011, allocations: 237.7 kB / 430.5 MB, free: 0.625 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.5012, allocations: 36.77 kB / 430.5 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.5013, allocations: 209.8 kB / 430.7 MB, free: 408 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.5016, allocations: 191.7 kB / 430.9 MB, free: 240 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-05/0.5017, allocations: 14.31 kB / 430.9 MB, free: 236 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.5019, allocations: 335.5 kB / 431.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001063/0.503, allocations: 481.8 kB / 431.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.5042, allocations: 0.6468 MB / 432.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009824/0.5052, allocations: 436.4 kB / 432.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.5052, allocations: 0 / 432.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002586/0.5078, allocations: 1.081 MB / 433.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.5079, allocations: 8 kB / 433.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.5079, allocations: 4 kB / 433.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.89e-05/0.508, allocations: 11.94 kB / 433.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/0.5097, allocations: 226.5 kB / 434.1 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.3e-05/0.5097, allocations: 15.92 kB / 434.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.5108, allocations: 125.6 kB / 434.3 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.511, allocations: 31.11 kB / 434.3 MB, free: 13.92 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.000315/0.5113, allocations: 155 kB / 434.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004649/0.5118, allocations: 155.6 kB / 434.6 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001923/0.512, allocations: 67.14 kB / 434.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.512, allocations: 8 kB / 434.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.594e-06/0.5121, allocations: 0 / 434.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.5121, allocations: 8.078 kB / 434.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005261/0.5174, allocations: 2.019 MB / 436.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-05/0.5174, allocations: 8 kB / 436.7 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.5185, allocations: 199.5 kB / 436.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.833e-05/0.5186, allocations: 16.19 kB / 436.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.996e-05/0.5187, allocations: 30.67 kB / 437 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.208e-05/0.5187, allocations: 23.88 kB / 437 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.46e-05/0.5188, allocations: 11.94 kB / 437 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002667/0.5214, allocations: 1.757 MB / 438.8 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003812/0.5219, allocations: 188.2 kB / 438.9 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.522, allocations: 23.06 kB / 439 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008523/0.5228, allocations: 103 kB / 439.1 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002734/0.5231, allocations: 109 kB / 439.2 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.066e-05/0.5232, allocations: 34.12 kB / 439.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002846/0.5235, allocations: 187.9 kB / 439.4 MB, free: 9.145 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.89e-07/0.5235, allocations: 0 / 439.4 MB, free: 9.145 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001025/0.5246, allocations: 128.4 kB / 439.5 MB, free: 9.039 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.0002402/0.5248, allocations: 137.1 kB / 439.6 MB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002041/0.5269, allocations: 0.843 MB / 440.5 MB, free: 8.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.643e-06/0.5269, allocations: 3.938 kB / 440.5 MB, free: 8.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007091/0.5277, allocations: 219.5 kB / 440.7 MB, free: 7.961 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009623/0.5286, allocations: 136.5 kB / 440.8 MB, free: 7.828 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.5315, allocations: 1.044 MB / 441.9 MB, free: 6.621 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006281/0.5321, allocations: 0.8366 MB / 442.7 MB, free: 5.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004996/0.5326, allocations: 47.42 kB / 442.8 MB, free: 5.711 MB / 362.7 MB Notification: Performance of SimCode: time 1.911e-06/0.5327, allocations: 4 kB / 442.8 MB, free: 5.707 MB / 362.7 MB Notification: Performance of Templates: time 0.01445/0.5471, allocations: 7.084 MB / 449.9 MB, free: 14.61 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.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,fastClock.factor,fastClock.resolution,fastClock.useSolver,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,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.useSolver,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