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_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadModel(Modelica_Synchronous): time 2.012/2.012, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.54e-05/3.557e-05, allocations: 4 kB / 284.3 MB, free: 8.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09084, allocations: 50.36 MB / 334.7 MB, free: 5.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3649/0.4558, allocations: 82.37 MB / 417.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.456, allocations: 74.58 kB / 417.1 MB, free: 11.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03089/0.4869, allocations: 7.101 MB / 424.2 MB, free: 5.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.901e-06/0.487, allocations: 0 / 424.2 MB, free: 5.898 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.808e-05/0.487, allocations: 8 kB / 424.2 MB, free: 5.891 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.001338/0.4884, allocations: 0.601 MB / 424.8 MB, free: 5.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.4884, allocations: 12.03 kB / 424.9 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.4886, allocations: 43.53 kB / 424.9 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005098/0.4891, allocations: 286.8 kB / 425.2 MB, free: 4.914 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/0.4894, allocations: 151.6 kB / 425.3 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.796e-05/0.4895, allocations: 29.44 kB / 425.4 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.4906, allocations: 0.5035 MB / 425.9 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.4907, allocations: 0 / 425.9 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/0.4907, allocations: 12.69 kB / 425.9 MB, free: 4.352 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.4907, allocations: 8 kB / 425.9 MB, free: 4.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009522/0.4917, allocations: 415 kB / 426.3 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002156/0.4939, allocations: 1.039 MB / 427.3 MB, free: 3.133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.4951, allocations: 415.5 kB / 427.7 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.4956, allocations: 204.3 kB / 427.9 MB, free: 2.66 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.231e-05/0.4957, allocations: 11.94 kB / 427.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/0.4957, allocations: 45.12 kB / 428 MB, free: 2.598 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 4.157e-06/0.4958, allocations: 0 / 428 MB, free: 2.598 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.009386/0.5052, allocations: 2.109 MB / 430.1 MB, free: 1.059 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.5053, allocations: 152 kB / 430.2 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000408/0.5058, allocations: 238.1 kB / 430.5 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.5059, allocations: 35.64 kB / 430.5 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.506, allocations: 146.9 kB / 430.7 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002639/0.5063, allocations: 189.6 kB / 430.8 MB, free: 372 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.214e-05/0.5064, allocations: 14.88 kB / 430.9 MB, free: 368 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.5066, allocations: 345.9 kB / 431.2 MB, free: 28 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.5077, allocations: 485.7 kB / 431.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.5089, allocations: 0.6396 MB / 432.3 MB, free: 15.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009985/0.51, allocations: 431.6 kB / 432.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.403e-06/0.51, allocations: 0 / 432.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002651/0.5126, allocations: 1.092 MB / 433.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.5127, allocations: 12.08 kB / 433.8 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.5127, allocations: 7.938 kB / 433.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/0.5128, allocations: 15.94 kB / 433.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.5146, allocations: 232 kB / 434.1 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.539e-05/0.5146, allocations: 12 kB / 434.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.5158, allocations: 119 kB / 434.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.5159, allocations: 30.56 kB / 434.2 MB, free: 14.03 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.0003191/0.5162, allocations: 154.9 kB / 434.4 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004679/0.5167, allocations: 162.3 kB / 434.5 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001883/0.5169, allocations: 68.27 kB / 434.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.5169, allocations: 8 kB / 434.6 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.517, allocations: 4 kB / 434.6 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.517, allocations: 3.984 kB / 434.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005374/0.5224, allocations: 2.011 MB / 436.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/0.5224, allocations: 12 kB / 436.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.5235, allocations: 205 kB / 436.9 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.872e-05/0.5236, allocations: 12 kB / 436.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.182e-05/0.5237, allocations: 26 kB / 436.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.51e-05/0.5237, allocations: 23.92 kB / 436.9 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.769e-05/0.5237, allocations: 15.94 kB / 436.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002703/0.5265, allocations: 1.753 MB / 438.7 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000377/0.5269, allocations: 192.5 kB / 438.9 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.527, allocations: 27.98 kB / 438.9 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008326/0.5279, allocations: 92.11 kB / 439 MB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002825/0.5282, allocations: 111.6 kB / 439.1 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.711e-05/0.5283, allocations: 35.94 kB / 439.1 MB, free: 9.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000278/0.5286, allocations: 183.1 kB / 439.3 MB, free: 9.094 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.5286, allocations: 0 / 439.3 MB, free: 9.094 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009819/0.5296, allocations: 128 kB / 439.4 MB, free: 8.969 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.5298, allocations: 138.9 kB / 439.6 MB, free: 8.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.5319, allocations: 0.8469 MB / 440.4 MB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/0.532, allocations: 4 kB / 440.4 MB, free: 7.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006986/0.5327, allocations: 219.4 kB / 440.6 MB, free: 7.758 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009651/0.5337, allocations: 132.5 kB / 440.8 MB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.5365, allocations: 1.011 MB / 441.8 MB, free: 6.461 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006343/0.5371, allocations: 0.8366 MB / 442.6 MB, free: 5.598 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008723/0.538, allocations: 96.14 kB / 442.7 MB, free: 5.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004064/0.5385, allocations: 35.44 kB / 442.7 MB, free: 5.465 MB / 362.7 MB Notification: Performance of SimCode: time 1.98e-06/0.5385, allocations: 0 / 442.7 MB, free: 5.465 MB / 362.7 MB Notification: Performance of Templates: time 0.01896/0.5574, allocations: 7.524 MB / 450.3 MB, free: 13.94 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,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,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,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time