Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.849/1.849, allocations: 194.9 MB / 210.6 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.674e-05/2.675e-05, allocations: 0 / 258.8 MB, free: 8.07 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2968, allocations: 44.51 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004012/0.3008, allocations: 2.386 MB / 305.7 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.3031, allocations: 0.8149 MB / 306.5 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003243/0.3035, allocations: 18.72 kB / 306.5 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002479/0.3038, allocations: 41.45 kB / 306.6 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000472/0.3043, allocations: 121.6 kB / 306.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006009/0.3049, allocations: 163.6 kB / 306.8 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005208/0.3054, allocations: 244 kB / 307.1 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.3057, allocations: 86.67 kB / 307.2 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.3059, allocations: 123.6 kB / 307.3 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.3062, allocations: 143.4 kB / 307.4 MB, free: 9.477 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.852e-05/0.3063, allocations: 20 kB / 307.4 MB, free: 9.457 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.3063, allocations: 12 kB / 307.5 MB, free: 9.445 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.506e-05/0.3065, allocations: 55.77 kB / 307.5 MB, free: 9.391 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.788e-05/0.3066, allocations: 28 kB / 307.5 MB, free: 9.363 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000448/0.307, allocations: 313.5 kB / 307.8 MB, free: 9.059 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.307, allocations: 3.938 kB / 307.9 MB, free: 9.055 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.307, allocations: 4 kB / 307.9 MB, free: 9.051 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.3071, allocations: 0 / 307.9 MB, free: 9.051 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001645/0.3087, allocations: 0.6395 MB / 308.5 MB, free: 8.359 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3088, allocations: 8.031 kB / 308.5 MB, free: 8.352 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.3089, allocations: 47.47 kB / 308.5 MB, free: 8.305 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005593/0.3095, allocations: 322.1 kB / 308.9 MB, free: 7.949 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.204e-05/0.3095, allocations: 24.66 kB / 308.9 MB, free: 7.926 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.3097, allocations: 39.98 kB / 308.9 MB, free: 7.887 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.311, allocations: 405.8 kB / 309.3 MB, free: 7.477 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.311, allocations: 8 kB / 309.3 MB, free: 7.469 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.824e-05/0.3111, allocations: 11.94 kB / 309.3 MB, free: 7.457 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.3111, allocations: 8 kB / 309.4 MB, free: 7.449 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.3129, allocations: 402.3 kB / 309.7 MB, free: 7.051 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002854/0.3158, allocations: 1.185 MB / 310.9 MB, free: 5.789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.3172, allocations: 339.9 kB / 311.3 MB, free: 5.449 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.3173, allocations: 4 kB / 311.3 MB, free: 5.445 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.3174, allocations: 34.56 kB / 311.3 MB, free: 5.402 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 3.046e-06/0.3174, allocations: 0 / 311.3 MB, free: 5.402 MB / 250.7 MB Notification: Performance of matching and sorting (n=31): time 0.005555/0.3229, allocations: 1.475 MB / 312.8 MB, free: 3.836 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.3231, allocations: 81.11 kB / 312.9 MB, free: 3.738 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004509/0.3235, allocations: 275.7 kB / 313.1 MB, free: 3.469 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.405e-05/0.3236, allocations: 33.7 kB / 313.2 MB, free: 3.43 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.3238, allocations: 216 kB / 313.4 MB, free: 3.215 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.3239, allocations: 114.4 kB / 313.5 MB, free: 3.102 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.324, allocations: 12 kB / 313.5 MB, free: 3.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.3241, allocations: 342.8 kB / 313.8 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008359/0.325, allocations: 180.6 kB / 314 MB, free: 2.566 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008904/0.3259, allocations: 242.2 kB / 314.2 MB, free: 2.312 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008411/0.3267, allocations: 192.2 kB / 314.4 MB, free: 2.125 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.3267, allocations: 4 kB / 314.4 MB, free: 2.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001912/0.3287, allocations: 492.9 kB / 314.9 MB, free: 1.633 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002048/0.3289, allocations: 449 kB / 315.3 MB, free: 1.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.3289, allocations: 0 / 315.3 MB, free: 1.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.3289, allocations: 4 kB / 315.4 MB, free: 1.156 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/0.3308, allocations: 255.7 kB / 315.6 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.3319, allocations: 0.6913 MB / 316.3 MB, free: 196 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006069/0.3325, allocations: 48.08 kB / 316.3 MB, free: 148 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.297e-05/0.3325, allocations: 16 kB / 316.4 MB, free: 132 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.3326, allocations: 4 kB / 316.4 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001666/0.3342, allocations: 408 kB / 316.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3343, allocations: 0 / 316.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.3343, allocations: 4 kB / 316.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009209/0.3352, allocations: 123.8 kB / 316.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.3353, allocations: 4 kB / 316.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005164/0.3358, allocations: 47.89 kB / 316.9 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-05/0.3358, allocations: 15.95 kB / 316.9 MB, free: 15.53 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002716/0.3361, allocations: 160.9 kB / 317.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.913e-05/0.3362, allocations: 39.53 kB / 317.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.3363, allocations: 39.95 kB / 317.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3364, allocations: 4 kB / 317.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3364, allocations: 0 / 317.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.3364, allocations: 7.984 kB / 317.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00266/0.3391, allocations: 0.9263 MB / 318.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.381e-06/0.3391, allocations: 0 / 318.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008552/0.34, allocations: 104 kB / 318.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-05/0.34, allocations: 4 kB / 318.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.34, allocations: 7.953 kB / 318.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.3401, allocations: 4 kB / 318.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3401, allocations: 3.938 kB / 318.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.3427, allocations: 0.7708 MB / 319 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002346/0.343, allocations: 132.7 kB / 319.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.639e-05/0.3431, allocations: 11.94 kB / 319.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005429/0.3437, allocations: 43.97 kB / 319.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.3438, allocations: 35.84 kB / 319.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.3438, allocations: 4 kB / 319.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003402/0.3442, allocations: 223 kB / 319.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3442, allocations: 0 / 319.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007264/0.3449, allocations: 128 kB / 319.6 MB, free: 12.75 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * 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.0001623/0.3451, allocations: 108.5 kB / 319.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003504/0.3486, allocations: 0.7476 MB / 320.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.3487, allocations: 3.938 kB / 320.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008842/0.3496, allocations: 200.1 kB / 320.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007951/0.3504, allocations: 70.44 kB / 320.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.3536, allocations: 1.211 MB / 321.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.3541, allocations: 0.8153 MB / 322.7 MB, free: 9.531 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005718/0.3547, allocations: 79.2 kB / 322.8 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3548, allocations: 27.44 kB / 322.8 MB, free: 9.426 MB / 266.7 MB Notification: Performance of SimCode: time 4.398e-06/0.3548, allocations: 0 / 322.8 MB, free: 9.426 MB / 266.7 MB Notification: Performance of Templates: time 0.01412/0.369, allocations: 4.335 MB / 327.2 MB, free: 5.102 MB / 266.7 MB "" Variables in the reference:time,PI.I.y,inertia1.phi,inertia1.w,integrator.y,spring.phi_rel,spring.w_rel Variables in the result:PI.Dzero.k,PI.Dzero.y,PI.I.initType,PI.I.k,PI.I.y,PI.I.y_start,PI.Nd,PI.Ni,PI.P.k,PI.Td,PI.Ti,PI.addI.k1,PI.addI.k2,PI.addI.k3,PI.addP.k1,PI.addP.k2,PI.addPID.k1,PI.addPID.k2,PI.addPID.k3,PI.addPID.u2,PI.addSat.k1,PI.addSat.k2,PI.controllerType,PI.gainPID.k,PI.gainTrack.k,PI.initType,PI.k,PI.limiter.limitsAtInit,PI.limiter.strict,PI.limiter.uMax,PI.limiter.uMin,PI.limitsAtInit,PI.strict,PI.wd,PI.with_D,PI.with_I,PI.wp,PI.xd_start,PI.xi_start,PI.yMax,PI.yMin,PI.y_start,driveAngle,inertia1.J,inertia1.phi,inertia1.w,inertia2.J,inertia2.flange_b.tau,integrator.initType,integrator.k,integrator.y,integrator.y_start,kinematicPTP.deltaq[1],kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,loadTorque.flange.tau,loadTorque.tau,loadTorque.tau_constant,spring.c,spring.d,spring.phi_nominal,spring.phi_rel,spring.phi_rel0,spring.w_rel,time