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_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.789/1.789, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.122e-05/4.139e-05, allocations: 7.984 kB / 225 MB, free: 2.715 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2209, allocations: 38.77 MB / 263.7 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.3296, allocations: 71.33 MB / 335.1 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001999/0.3298, allocations: 67.97 kB / 335.1 MB, free: 2.379 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.035/0.3648, allocations: 8.279 MB / 343.4 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.181e-06/0.3649, allocations: 192 / 343.4 MB, free: 10.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.042e-05/0.3649, allocations: 11.94 kB / 343.4 MB, free: 10.06 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.0014/0.3663, allocations: 0.662 MB / 344.1 MB, free: 9.352 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3664, allocations: 8.031 kB / 344.1 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.3665, allocations: 51.44 kB / 344.1 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008249/0.3674, allocations: 363.2 kB / 344.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-05/0.3675, allocations: 58.42 kB / 344.6 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.815e-05/0.3676, allocations: 39.83 kB / 344.6 MB, free: 8.797 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008159/0.3684, allocations: 351.1 kB / 344.9 MB, free: 8.434 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.3685, allocations: 0 / 344.9 MB, free: 8.434 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.449e-05/0.3685, allocations: 12 kB / 345 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.3686, allocations: 11.98 kB / 345 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006547/0.3692, allocations: 245.5 kB / 345.2 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002769/0.372, allocations: 1.172 MB / 346.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007743/0.3728, allocations: 250.8 kB / 346.6 MB, free: 6.676 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000259/0.3731, allocations: 108.8 kB / 346.7 MB, free: 6.566 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.3731, allocations: 0 / 346.7 MB, free: 6.566 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.3732, allocations: 46.5 kB / 346.8 MB, free: 6.512 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.42e-06/0.3732, allocations: 0 / 346.8 MB, free: 6.512 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.002235/0.3754, allocations: 0.9801 MB / 347.8 MB, free: 5.438 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/0.3756, allocations: 106.8 kB / 347.9 MB, free: 5.309 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/0.376, allocations: 286.6 kB / 348.1 MB, free: 5.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.95e-05/0.3761, allocations: 33.7 kB / 348.2 MB, free: 4.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.3763, allocations: 258.5 kB / 348.4 MB, free: 4.723 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.3765, allocations: 118.4 kB / 348.5 MB, free: 4.605 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.546e-05/0.3765, allocations: 4 kB / 348.5 MB, free: 4.602 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3767, allocations: 326.8 kB / 348.9 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.377, allocations: 104.7 kB / 349 MB, free: 4.168 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003488/0.3773, allocations: 167.1 kB / 349.1 MB, free: 3.984 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.3777, allocations: 115.9 kB / 349.2 MB, free: 3.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.3777, allocations: 0 / 349.2 MB, free: 3.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00077/0.3785, allocations: 321.7 kB / 349.6 MB, free: 3.551 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3785, allocations: 8 kB / 349.6 MB, free: 3.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.42e-06/0.3785, allocations: 0 / 349.6 MB, free: 3.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.3785, allocations: 7.984 kB / 349.6 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000798/0.3794, allocations: 155.8 kB / 349.7 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.3794, allocations: 11.89 kB / 349.7 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004093/0.3798, allocations: 43.97 kB / 349.8 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/0.3799, allocations: 8 kB / 349.8 MB, free: 3.32 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.0001543/0.38, allocations: 124.9 kB / 349.9 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.3801, allocations: 39.52 kB / 349.9 MB, free: 3.152 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.3803, allocations: 48.06 kB / 350 MB, free: 3.105 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.096e-06/0.3803, allocations: 4 kB / 350 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3803, allocations: 0 / 350 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.639e-06/0.3803, allocations: 7.891 kB / 350 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.382, allocations: 0.7905 MB / 350.8 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.114e-06/0.382, allocations: 4 kB / 350.8 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006161/0.3826, allocations: 100 kB / 350.9 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/0.3826, allocations: 3.953 kB / 350.9 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.3827, allocations: 15.98 kB / 350.9 MB, free: 2.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.789e-06/0.3827, allocations: 4 kB / 350.9 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.781e-06/0.3827, allocations: 0 / 350.9 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.3838, allocations: 0.552 MB / 351.5 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.384, allocations: 140.7 kB / 351.6 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.77e-05/0.3841, allocations: 4 kB / 351.6 MB, free: 1.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005037/0.3846, allocations: 59.94 kB / 351.7 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.3847, allocations: 27.92 kB / 351.7 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.3848, allocations: 16 kB / 351.7 MB, free: 1.242 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003783/0.3852, allocations: 222.2 kB / 351.9 MB, free: 1.031 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.83e-07/0.3852, allocations: 0 / 351.9 MB, free: 1.031 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005395/0.3857, allocations: 80 kB / 352 MB, free: 0.9531 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.000185/0.3859, allocations: 111.1 kB / 352.1 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006356/0.3866, allocations: 247.8 kB / 352.4 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3866, allocations: 192 / 352.4 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003003/0.3869, allocations: 123.9 kB / 352.5 MB, free: 484 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006126/0.3876, allocations: 77.09 kB / 352.6 MB, free: 408 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002276/0.3898, allocations: 0.856 MB / 353.4 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.3905, allocations: 0.8148 MB / 354.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/0.3907, allocations: 35.44 kB / 354.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of SimCode: time 1.788e-06/0.3907, allocations: 0 / 354.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of Templates: time 0.00945/0.4001, allocations: 4.634 MB / 358.9 MB, free: 10 MB / 314.7 MB