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.1_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.551/1.551, allocations: 171.2 MB / 185.7 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.563e-05/2.557e-05, allocations: 4 kB / 228.1 MB, free: 7.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07817/0.07821, allocations: 38.78 MB / 266.9 MB, free: 496 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00395/0.08221, allocations: 2.368 MB / 269.3 MB, free: 14.09 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.08441, allocations: 0.7952 MB / 270.1 MB, free: 13.29 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002842/0.08474, allocations: 15.94 kB / 270.1 MB, free: 13.27 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.085, allocations: 47.62 kB / 270.1 MB, free: 13.23 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004217/0.08544, allocations: 111.6 kB / 270.2 MB, free: 13.12 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008479/0.0863, allocations: 239.5 kB / 270.5 MB, free: 12.88 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006208/0.08694, allocations: 256 kB / 270.7 MB, free: 12.63 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.0872, allocations: 78.66 kB / 270.8 MB, free: 12.56 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002735/0.08749, allocations: 147.6 kB / 271 MB, free: 12.41 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.0878, allocations: 143.4 kB / 271.1 MB, free: 12.27 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.553e-05/0.08789, allocations: 16 kB / 271.1 MB, free: 12.26 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.08795, allocations: 12 kB / 271.1 MB, free: 12.25 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.08808, allocations: 67.69 kB / 271.2 MB, free: 12.18 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.173e-05/0.08818, allocations: 28 kB / 271.2 MB, free: 12.15 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004959/0.08869, allocations: 327.4 kB / 271.5 MB, free: 11.83 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.08871, allocations: 0 / 271.5 MB, free: 11.83 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.439e-06/0.08872, allocations: 0 / 271.5 MB, free: 11.83 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.08874, allocations: 7.938 kB / 271.5 MB, free: 11.82 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001642/0.0904, allocations: 0.6395 MB / 272.2 MB, free: 11.14 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.09046, allocations: 8.031 kB / 272.2 MB, free: 11.13 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.09062, allocations: 47.44 kB / 272.2 MB, free: 11.08 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.09123, allocations: 330.1 kB / 272.6 MB, free: 10.72 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.011e-05/0.09133, allocations: 58.3 kB / 272.6 MB, free: 10.66 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.647e-05/0.09143, allocations: 32 kB / 272.6 MB, free: 10.62 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.09281, allocations: 409.8 kB / 273 MB, free: 10.21 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.09285, allocations: 7.906 kB / 273.1 MB, free: 10.2 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.09292, allocations: 12 kB / 273.1 MB, free: 10.19 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.09294, allocations: 8 kB / 273.1 MB, free: 10.18 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.09465, allocations: 394.3 kB / 273.5 MB, free: 9.797 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00291/0.09758, allocations: 1.175 MB / 274.6 MB, free: 8.555 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.09901, allocations: 334.7 kB / 275 MB, free: 8.219 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.09906, allocations: 8.5 kB / 275 MB, free: 8.211 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.0991, allocations: 42.55 kB / 275 MB, free: 8.16 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 2.445e-06/0.09912, allocations: 0 / 275 MB, free: 8.16 MB / 234.7 MB Notification: Performance of matching and sorting (n=31): time 0.00529/0.1044, allocations: 1.471 MB / 276.5 MB, free: 6.598 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.1045, allocations: 85.05 kB / 276.6 MB, free: 6.496 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004261/0.1049, allocations: 279.7 kB / 276.8 MB, free: 6.219 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/0.105, allocations: 33.7 kB / 276.9 MB, free: 6.18 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.1052, allocations: 220 kB / 277.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.1053, allocations: 110.4 kB / 277.2 MB, free: 5.848 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.1054, allocations: 4 kB / 277.2 MB, free: 5.844 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1055, allocations: 346.8 kB / 277.5 MB, free: 5.496 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007229/0.1063, allocations: 168.6 kB / 277.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007888/0.1071, allocations: 222.3 kB / 277.9 MB, free: 5.094 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007257/0.1078, allocations: 164 kB / 278.1 MB, free: 4.934 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/0.1078, allocations: 8 kB / 278.1 MB, free: 4.926 MB / 234.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001674/0.1095, allocations: 465.1 kB / 278.5 MB, free: 4.465 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1095, allocations: 8.094 kB / 278.5 MB, free: 4.457 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.1096, allocations: 4 kB / 278.5 MB, free: 4.453 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.1096, allocations: 4 kB / 278.6 MB, free: 4.449 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.1107, allocations: 151.8 kB / 278.7 MB, free: 4.301 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.1107, allocations: 3.938 kB / 278.7 MB, free: 4.297 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/0.1112, allocations: 43.97 kB / 278.7 MB, free: 4.254 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.1113, allocations: 23.88 kB / 278.8 MB, free: 4.23 MB / 234.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): 46 * 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.0002257/0.1115, allocations: 153.8 kB / 278.9 MB, free: 4.07 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.477e-05/0.1116, allocations: 35.62 kB / 279 MB, free: 4.035 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.1118, allocations: 39.95 kB / 279 MB, free: 3.996 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.1118, allocations: 4 kB / 279 MB, free: 3.992 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1118, allocations: 0 / 279 MB, free: 3.992 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.1118, allocations: 3.984 kB / 279 MB, free: 3.988 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.1143, allocations: 0.934 MB / 279.9 MB, free: 2.988 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1143, allocations: 0 / 279.9 MB, free: 2.988 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008649/0.1152, allocations: 115.9 kB / 280 MB, free: 2.875 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.1152, allocations: 4 kB / 280.1 MB, free: 2.871 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.1153, allocations: 8 kB / 280.1 MB, free: 2.863 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.1153, allocations: 3.953 kB / 280.1 MB, free: 2.859 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1153, allocations: 4 kB / 280.1 MB, free: 2.855 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.1178, allocations: 0.7626 MB / 280.8 MB, free: 2.039 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/0.118, allocations: 136.8 kB / 281 MB, free: 1.887 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.031e-05/0.1181, allocations: 8 kB / 281 MB, free: 1.879 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006715/0.1188, allocations: 51.95 kB / 281 MB, free: 1.828 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.799e-05/0.1189, allocations: 23.97 kB / 281 MB, free: 1.805 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/0.119, allocations: 11.94 kB / 281.1 MB, free: 1.793 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.000314/0.1193, allocations: 219.1 kB / 281.3 MB, free: 1.578 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1193, allocations: 4 kB / 281.3 MB, free: 1.574 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004624/0.1198, allocations: 72 kB / 281.3 MB, free: 1.504 MB / 234.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.0001465/0.1199, allocations: 107.2 kB / 281.5 MB, free: 1.391 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.1216, allocations: 387.7 kB / 281.8 MB, free: 1.012 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1216, allocations: 4 kB / 281.8 MB, free: 1.008 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008169/0.1224, allocations: 204.3 kB / 282 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007135/0.1232, allocations: 81.02 kB / 282.1 MB, free: 0.7305 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.1261, allocations: 1.188 MB / 283.3 MB, free: 15.5 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.1266, allocations: 0.8148 MB / 284.1 MB, free: 14.66 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003132/0.1269, allocations: 51.27 kB / 284.2 MB, free: 14.61 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.1271, allocations: 27.44 kB / 284.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1271, allocations: 0 / 284.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of Templates: time 0.01228/0.1394, allocations: 3.774 MB / 288 MB, free: 10.82 MB / 250.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