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_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 2.214/2.214, allocations: 194.9 MB / 211.2 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.017e-05/3.018e-05, allocations: 7.984 kB / 258.8 MB, free: 8.723 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3283, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00427/0.3326, allocations: 2.382 MB / 305.7 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.335, allocations: 0.8139 MB / 306.5 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003647/0.3354, allocations: 18.5 kB / 306.5 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.3357, allocations: 46.34 kB / 306.5 MB, free: 10.13 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005296/0.3363, allocations: 121.8 kB / 306.7 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006639/0.337, allocations: 154 kB / 306.8 MB, free: 9.906 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006808/0.3377, allocations: 249.1 kB / 307.1 MB, free: 9.719 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002456/0.3379, allocations: 81.34 kB / 307.1 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/0.3382, allocations: 128.6 kB / 307.3 MB, free: 9.602 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.3385, allocations: 139.6 kB / 307.4 MB, free: 9.512 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.256e-05/0.3386, allocations: 17.75 kB / 307.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.443e-05/0.3386, allocations: 12.47 kB / 307.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.3388, allocations: 67.17 kB / 307.5 MB, free: 9.457 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.94e-05/0.3389, allocations: 27.12 kB / 307.5 MB, free: 9.453 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005033/0.3394, allocations: 312.9 kB / 307.8 MB, free: 9.148 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.3394, allocations: 0 / 307.8 MB, free: 9.148 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.995e-06/0.3394, allocations: 0 / 307.8 MB, free: 9.148 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.3394, allocations: 4 kB / 307.8 MB, free: 9.145 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.001739/0.3412, allocations: 0.6356 MB / 308.5 MB, free: 8.457 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.3413, allocations: 8.031 kB / 308.5 MB, free: 8.449 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.3414, allocations: 39.53 kB / 308.5 MB, free: 8.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006173/0.342, allocations: 334 kB / 308.8 MB, free: 8.043 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.141e-05/0.3421, allocations: 20.66 kB / 308.9 MB, free: 8.023 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-05/0.3422, allocations: 36 kB / 308.9 MB, free: 7.988 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3436, allocations: 413.8 kB / 309.3 MB, free: 7.57 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.3437, allocations: 4 kB / 309.3 MB, free: 7.566 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.791e-05/0.3437, allocations: 19.98 kB / 309.3 MB, free: 7.547 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.3438, allocations: 11.94 kB / 309.3 MB, free: 7.535 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.3456, allocations: 394.3 kB / 309.7 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.3486, allocations: 1.185 MB / 310.9 MB, free: 5.883 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.3502, allocations: 339.7 kB / 311.2 MB, free: 5.543 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.3502, allocations: 4 kB / 311.2 MB, free: 5.539 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.3503, allocations: 38.5 kB / 311.3 MB, free: 5.492 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 2.625e-06/0.3503, allocations: 0 / 311.3 MB, free: 5.492 MB / 250.7 MB Notification: Performance of matching and sorting (n=31): time 0.005672/0.356, allocations: 1.467 MB / 312.7 MB, free: 3.934 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/0.3561, allocations: 85.09 kB / 312.8 MB, free: 3.832 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004848/0.3566, allocations: 271.7 kB / 313.1 MB, free: 3.566 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.3567, allocations: 33.7 kB / 313.1 MB, free: 3.527 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.3569, allocations: 270.5 kB / 313.4 MB, free: 3.262 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.357, allocations: 114.4 kB / 313.5 MB, free: 3.148 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.688e-05/0.3571, allocations: 4 kB / 313.5 MB, free: 3.145 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3573, allocations: 330.8 kB / 313.8 MB, free: 2.812 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008315/0.3581, allocations: 176.6 kB / 314 MB, free: 2.637 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008974/0.359, allocations: 242.2 kB / 314.2 MB, free: 2.383 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008657/0.3599, allocations: 200.1 kB / 314.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3599, allocations: 0 / 314.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00191/0.3619, allocations: 477.1 kB / 314.9 MB, free: 1.715 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002507/0.3621, allocations: 449 kB / 315.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.3622, allocations: 0 / 315.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.3622, allocations: 4 kB / 315.3 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/0.364, allocations: 251.7 kB / 315.6 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.3652, allocations: 0.6913 MB / 316.3 MB, free: 284 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006343/0.3659, allocations: 52.05 kB / 316.3 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.336e-05/0.3659, allocations: 12 kB / 316.3 MB, free: 220 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.366, allocations: 4 kB / 316.3 MB, free: 216 kB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001667/0.3676, allocations: 412 kB / 316.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3677, allocations: 4 kB / 316.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.3677, allocations: 4 kB / 316.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008934/0.3686, allocations: 119.9 kB / 316.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.3686, allocations: 0 / 316.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004503/0.3691, allocations: 43.95 kB / 316.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.3691, allocations: 19.95 kB / 316.9 MB, free: 15.62 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.0002961/0.3694, allocations: 149.8 kB / 317.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.3696, allocations: 35.53 kB / 317.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001236/0.3697, allocations: 47.94 kB / 317.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3697, allocations: 0 / 317.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.3698, allocations: 4 kB / 317.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.3698, allocations: 3.984 kB / 317.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002719/0.3725, allocations: 0.9378 MB / 318.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.3726, allocations: 0 / 318.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009154/0.3735, allocations: 96.05 kB / 318.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/0.3735, allocations: 4 kB / 318.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.216e-05/0.3736, allocations: 7.953 kB / 318.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-05/0.3736, allocations: 11.94 kB / 318.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3736, allocations: 0 / 318.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.3762, allocations: 0.763 MB / 319 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002123/0.3765, allocations: 132.7 kB / 319.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.295e-05/0.3766, allocations: 15.92 kB / 319.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005493/0.3772, allocations: 43.97 kB / 319.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3773, allocations: 27.91 kB / 319.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.3773, allocations: 12 kB / 319.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003511/0.3777, allocations: 215.1 kB / 319.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3777, allocations: 7.938 kB / 319.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007184/0.3784, allocations: 128 kB / 319.6 MB, free: 12.84 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.000168/0.3786, allocations: 111.1 kB / 319.7 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003458/0.3821, allocations: 0.7343 MB / 320.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.3821, allocations: 4 kB / 320.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008695/0.383, allocations: 200.1 kB / 320.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007938/0.3838, allocations: 73.47 kB / 320.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00328/0.3871, allocations: 1.236 MB / 321.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.3876, allocations: 0.8152 MB / 322.7 MB, free: 9.605 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.3879, allocations: 31.44 kB / 322.8 MB, free: 9.574 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3879, allocations: 0 / 322.8 MB, free: 9.574 MB / 266.7 MB Notification: Performance of Templates: time 0.01248/0.4004, allocations: 5.223 MB / 328 MB, free: 4.352 MB / 266.7 MB