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_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadModel(Modelica_Synchronous): time 1.924/1.924, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.4e-05, allocations: 3.984 kB / 284.3 MB, free: 8.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.08438, allocations: 50.36 MB / 334.7 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3494/0.4339, allocations: 82.34 MB / 417 MB, free: 11.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.4341, allocations: 74.69 kB / 417.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03066/0.4648, allocations: 7.019 MB / 424.1 MB, free: 5.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.968e-06/0.4649, allocations: 0 / 424.1 MB, free: 5.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4649, allocations: 8 kB / 424.1 MB, free: 5.918 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.001276/0.4662, allocations: 0.5808 MB / 424.7 MB, free: 5.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.4662, allocations: 11.97 kB / 424.7 MB, free: 5.305 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4664, allocations: 39.62 kB / 424.7 MB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000527/0.4669, allocations: 271.6 kB / 425 MB, free: 4.977 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002674/0.4672, allocations: 144.2 kB / 425.1 MB, free: 4.832 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.793e-05/0.4673, allocations: 34.47 kB / 425.2 MB, free: 4.809 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.4684, allocations: 0.4889 MB / 425.7 MB, free: 4.434 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.4685, allocations: 4 kB / 425.7 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.596e-05/0.4685, allocations: 14.12 kB / 425.7 MB, free: 4.426 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.4686, allocations: 8 kB / 425.7 MB, free: 4.418 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009775/0.4696, allocations: 413 kB / 426.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.4717, allocations: 1.021 MB / 427.1 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.473, allocations: 407.9 kB / 427.5 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004536/0.4735, allocations: 205.5 kB / 427.7 MB, free: 2.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-05/0.4736, allocations: 19.31 kB / 427.7 MB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.4736, allocations: 37.12 kB / 427.8 MB, free: 2.688 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 4.35e-06/0.4736, allocations: 0 / 427.8 MB, free: 2.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.009555/0.4832, allocations: 2.073 MB / 429.8 MB, free: 1.191 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.4834, allocations: 151.8 kB / 430 MB, free: 1.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002836/0.4837, allocations: 181.2 kB / 430.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001103/0.4838, allocations: 40.95 kB / 430.2 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.4839, allocations: 207.7 kB / 430.4 MB, free: 0.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002607/0.4842, allocations: 190 kB / 430.6 MB, free: 476 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.321e-05/0.4843, allocations: 14 kB / 430.6 MB, free: 472 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.4845, allocations: 336.9 kB / 430.9 MB, free: 140 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.4856, allocations: 481.5 kB / 431.4 MB, free: 15.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.4869, allocations: 0.6379 MB / 432 MB, free: 15.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009977/0.4879, allocations: 431.7 kB / 432.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.558e-06/0.4879, allocations: 8 kB / 432.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002644/0.4906, allocations: 1.078 MB / 433.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.4906, allocations: 8.094 kB / 433.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.4907, allocations: 12.02 kB / 433.6 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.075e-05/0.4907, allocations: 11.98 kB / 433.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/0.4924, allocations: 230.9 kB / 433.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/0.4925, allocations: 11.98 kB / 433.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.4936, allocations: 130.9 kB / 433.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.4938, allocations: 23.62 kB / 434 MB, free: 14.15 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.0003211/0.4941, allocations: 154 kB / 434.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004704/0.4946, allocations: 160.9 kB / 434.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.4948, allocations: 62.95 kB / 434.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.4948, allocations: 12 kB / 434.4 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.425e-06/0.4949, allocations: 0 / 434.4 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.4949, allocations: 7.984 kB / 434.4 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005267/0.5002, allocations: 1.987 MB / 436.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.18e-05/0.5002, allocations: 8.219 kB / 436.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.5013, allocations: 202.4 kB / 436.6 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-05/0.5014, allocations: 20 kB / 436.6 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.633e-05/0.5014, allocations: 27.55 kB / 436.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.312e-05/0.5015, allocations: 19.94 kB / 436.6 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.419e-05/0.5015, allocations: 11.94 kB / 436.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.5041, allocations: 1.759 MB / 438.4 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.5045, allocations: 169.4 kB / 438.6 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.702e-05/0.5046, allocations: 27.11 kB / 438.6 MB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008444/0.5054, allocations: 101.4 kB / 438.7 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002665/0.5057, allocations: 106.7 kB / 438.8 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.739e-05/0.5058, allocations: 38.12 kB / 438.8 MB, free: 9.566 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001902/0.506, allocations: 150 kB / 439 MB, free: 9.441 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.57e-07/0.506, allocations: 0 / 439 MB, free: 9.441 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009124/0.507, allocations: 129.2 kB / 439.1 MB, free: 9.332 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.0002266/0.5072, allocations: 140.7 kB / 439.2 MB, free: 9.199 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.5092, allocations: 0.8454 MB / 440.1 MB, free: 8.594 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.023e-06/0.5092, allocations: 0.5625 kB / 440.1 MB, free: 8.594 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006952/0.5099, allocations: 222 kB / 440.3 MB, free: 8.379 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008256/0.5107, allocations: 120 kB / 440.4 MB, free: 8.262 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/0.5134, allocations: 0.9893 MB / 441.4 MB, free: 7.105 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005989/0.514, allocations: 0.8284 MB / 442.2 MB, free: 6.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004815/0.5145, allocations: 43.44 kB / 442.3 MB, free: 6.207 MB / 362.7 MB Notification: Performance of SimCode: time 1.758e-06/0.5145, allocations: 0 / 442.3 MB, free: 6.207 MB / 362.7 MB Notification: Performance of Templates: time 0.01369/0.5282, allocations: 6.895 MB / 449.2 MB, free: 15.3 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,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,subSample1.factor,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau