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.593/1.593, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.73e-05/2.747e-05, allocations: 0 / 225 MB, free: 2.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2089, allocations: 38.77 MB / 263.8 MB, free: 9.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.3156, allocations: 71.33 MB / 335.1 MB, free: 2.395 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.3158, allocations: 67.97 kB / 335.2 MB, free: 2.328 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.035/0.3508, allocations: 8.287 MB / 343.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.308e-06/0.3508, allocations: 0 / 343.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.701e-05/0.3509, allocations: 8.188 kB / 343.5 MB, free: 10 MB / 298.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.001355/0.3523, allocations: 0.6659 MB / 344.1 MB, free: 9.289 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3523, allocations: 8.031 kB / 344.1 MB, free: 9.281 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.3525, allocations: 47.44 kB / 344.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007959/0.3533, allocations: 363.2 kB / 344.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.111e-05/0.3534, allocations: 58.48 kB / 344.6 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.494e-05/0.3535, allocations: 35.91 kB / 344.6 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007812/0.3543, allocations: 347.1 kB / 345 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.3543, allocations: 0 / 345 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.425e-05/0.3544, allocations: 16 kB / 345 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.3544, allocations: 8 kB / 345 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006311/0.355, allocations: 245.5 kB / 345.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002658/0.3577, allocations: 1.179 MB / 346.4 MB, free: 6.875 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007395/0.3585, allocations: 251.6 kB / 346.6 MB, free: 6.617 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002687/0.3588, allocations: 116.8 kB / 346.8 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.822e-05/0.3588, allocations: 3.984 kB / 346.8 MB, free: 6.496 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.3589, allocations: 38.5 kB / 346.8 MB, free: 6.449 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 3.133e-06/0.3589, allocations: 0 / 346.8 MB, free: 6.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.00218/0.3611, allocations: 0.9833 MB / 347.8 MB, free: 5.371 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.55e-05/0.3612, allocations: 106.8 kB / 347.9 MB, free: 5.242 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000453/0.3616, allocations: 278.6 kB / 348.2 MB, free: 4.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.3617, allocations: 33.7 kB / 348.2 MB, free: 4.922 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.3619, allocations: 216.1 kB / 348.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.3621, allocations: 110.4 kB / 348.5 MB, free: 4.594 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.3621, allocations: 11.98 kB / 348.5 MB, free: 4.582 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.3623, allocations: 346.8 kB / 348.9 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.3626, allocations: 104.7 kB / 349 MB, free: 4.129 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003697/0.363, allocations: 163.1 kB / 349.1 MB, free: 3.949 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.3633, allocations: 119.3 kB / 349.2 MB, free: 3.836 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.149e-06/0.3633, allocations: 0 / 349.2 MB, free: 3.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008305/0.3642, allocations: 345.3 kB / 349.6 MB, free: 3.492 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.3642, allocations: 8 kB / 349.6 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.291e-06/0.3642, allocations: 0 / 349.6 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.3643, allocations: 4 kB / 349.6 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007978/0.3651, allocations: 155.9 kB / 349.7 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.3651, allocations: 11.89 kB / 349.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.3655, allocations: 39.97 kB / 349.8 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-05/0.3656, allocations: 12 kB / 349.8 MB, free: 3.266 MB / 298.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.0001612/0.3658, allocations: 128.9 kB / 349.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3659, allocations: 31.62 kB / 350 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.366, allocations: 40.08 kB / 350 MB, free: 3.062 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.366, allocations: 4 kB / 350 MB, free: 3.059 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.921e-06/0.366, allocations: 4 kB / 350 MB, free: 3.055 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.712e-06/0.3661, allocations: 3.953 kB / 350 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.3677, allocations: 0.7943 MB / 350.8 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.718e-06/0.3678, allocations: 0 / 350.8 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006245/0.3684, allocations: 108 kB / 350.9 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.3684, allocations: 7.953 kB / 350.9 MB, free: 2.074 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.3685, allocations: 4 kB / 350.9 MB, free: 2.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.39e-06/0.3685, allocations: 4 kB / 350.9 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.951e-06/0.3685, allocations: 0 / 350.9 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3696, allocations: 0.5598 MB / 351.5 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.3698, allocations: 136.8 kB / 351.6 MB, free: 1.301 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.446e-05/0.3699, allocations: 11.98 kB / 351.6 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004883/0.3704, allocations: 55.95 kB / 351.7 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.3705, allocations: 23.92 kB / 351.7 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.886e-05/0.3706, allocations: 20.06 kB / 351.7 MB, free: 1.191 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003554/0.371, allocations: 222.2 kB / 352 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.34e-07/0.371, allocations: 0 / 352 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005674/0.3716, allocations: 76 kB / 352 MB, free: 0.9062 MB / 298.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.0001909/0.3718, allocations: 123.1 kB / 352.1 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006425/0.3724, allocations: 243.8 kB / 352.4 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.065e-06/0.3724, allocations: 4 kB / 352.4 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.3728, allocations: 119.9 kB / 352.5 MB, free: 428 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006191/0.3734, allocations: 65.61 kB / 352.6 MB, free: 360 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.3756, allocations: 0.8353 MB / 353.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/0.3762, allocations: 0.8109 MB / 354.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000536/0.3767, allocations: 46.95 kB / 354.3 MB, free: 14.6 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.3769, allocations: 27.44 kB / 354.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of SimCode: time 1.603e-06/0.3769, allocations: 0 / 354.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Templates: time 0.01194/0.3889, allocations: 3.981 MB / 358.3 MB, free: 10.61 MB / 314.7 MB