Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) 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.815/1.815, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004944/0.0004946, allocations: 8 kB / 233.8 MB, free: 2.414 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1059, allocations: 38.77 MB / 272.6 MB, free: 11.56 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3726/0.4785, allocations: 71.4 MB / 344 MB, free: 1.984 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.4789, allocations: 75.72 kB / 344.1 MB, free: 1.949 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05597/0.5348, allocations: 8.345 MB / 352.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.5349, allocations: 4 kB / 352.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.367e-05/0.535, allocations: 12.19 kB / 352.4 MB, free: 10.89 MB / 282.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.00564/0.5406, allocations: 0.7004 MB / 353.1 MB, free: 10.18 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.5407, allocations: 8.031 kB / 353.2 MB, free: 10.17 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.5409, allocations: 51.42 kB / 353.2 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.5422, allocations: 362.7 kB / 353.6 MB, free: 9.758 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.5423, allocations: 53.86 kB / 353.6 MB, free: 9.711 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.5424, allocations: 38.06 kB / 353.6 MB, free: 9.684 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/0.5443, allocations: 420.7 kB / 354.1 MB, free: 9.359 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.5444, allocations: 4 kB / 354.1 MB, free: 9.355 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.857e-05/0.5445, allocations: 14.38 kB / 354.1 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.5445, allocations: 4 kB / 354.1 MB, free: 9.348 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/0.5469, allocations: 394.9 kB / 354.5 MB, free: 9.047 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01594/0.5628, allocations: 1.195 MB / 355.7 MB, free: 8.027 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/0.5647, allocations: 344.1 kB / 356 MB, free: 7.758 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.5648, allocations: 4 kB / 356 MB, free: 7.754 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/0.5648, allocations: 38.36 kB / 356 MB, free: 7.711 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 3.607e-06/0.5649, allocations: 0 / 356 MB, free: 7.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.01217/0.577, allocations: 1.486 MB / 357.5 MB, free: 6.367 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.5772, allocations: 110.8 kB / 357.6 MB, free: 6.234 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007302/0.5779, allocations: 316.9 kB / 357.9 MB, free: 5.977 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.116e-05/0.578, allocations: 35.33 kB / 358 MB, free: 5.941 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002406/0.5783, allocations: 208.8 kB / 358.2 MB, free: 5.781 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.5785, allocations: 121.1 kB / 358.3 MB, free: 5.676 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/0.5785, allocations: 7 kB / 358.3 MB, free: 5.676 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002169/0.5787, allocations: 344.1 kB / 358.6 MB, free: 5.344 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009768/0.5797, allocations: 163.6 kB / 358.8 MB, free: 5.219 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008659/0.5806, allocations: 231.1 kB / 359 MB, free: 5.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007674/0.5814, allocations: 172.8 kB / 359.2 MB, free: 4.902 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.5814, allocations: 0 / 359.2 MB, free: 4.902 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001738/0.5832, allocations: 469.5 kB / 359.7 MB, free: 4.531 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.5832, allocations: 4 kB / 359.7 MB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.5832, allocations: 0 / 359.7 MB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.5833, allocations: 4 kB / 359.7 MB, free: 4.523 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.5844, allocations: 155.2 kB / 359.8 MB, free: 4.375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.5844, allocations: 4 kB / 359.8 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005349/0.585, allocations: 46.64 kB / 359.9 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.585, allocations: 23.23 kB / 359.9 MB, free: 4.312 MB / 282.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 () * Number of clocked 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.0002634/0.5853, allocations: 153.2 kB / 360 MB, free: 4.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.5854, allocations: 39.47 kB / 360.1 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.5855, allocations: 47.06 kB / 360.1 MB, free: 4.109 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.5855, allocations: 0 / 360.1 MB, free: 4.109 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.5856, allocations: 7.953 kB / 360.1 MB, free: 4.102 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.5856, allocations: 0 / 360.1 MB, free: 4.102 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.5882, allocations: 0.9308 MB / 361.1 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.5882, allocations: 4 kB / 361.1 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008562/0.5891, allocations: 107.6 kB / 361.2 MB, free: 3.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.5891, allocations: 0 / 361.2 MB, free: 3.18 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.5892, allocations: 7.5 kB / 361.2 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.5892, allocations: 4 kB / 361.2 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.5892, allocations: 3.984 kB / 361.2 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002596/0.5918, allocations: 0.7171 MB / 361.9 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002437/0.5921, allocations: 136.9 kB / 362 MB, free: 2.418 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.425e-05/0.5922, allocations: 14.5 kB / 362 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006791/0.5929, allocations: 56.95 kB / 362.1 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.593, allocations: 25.66 kB / 362.1 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.593, allocations: 11.98 kB / 362.1 MB, free: 2.324 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000399/0.5934, allocations: 225.1 kB / 362.4 MB, free: 2.148 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5935, allocations: 0 / 362.4 MB, free: 2.148 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005786/0.594, allocations: 81.12 kB / 362.4 MB, free: 2.078 MB / 282.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 () * Number of clocked 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.0002227/0.5943, allocations: 117 kB / 362.6 MB, free: 1.957 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001718/0.596, allocations: 384.6 kB / 362.9 MB, free: 1.66 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.596, allocations: 0 / 362.9 MB, free: 1.66 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008465/0.5969, allocations: 206 kB / 363.1 MB, free: 1.496 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007978/0.5977, allocations: 91.16 kB / 363.2 MB, free: 1.434 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003365/0.6011, allocations: 1.208 MB / 364.4 MB, free: 256 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.6017, allocations: 0.8109 MB / 365.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003995/0.6021, allocations: 50.94 kB / 365.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.6023, allocations: 27.44 kB / 365.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of SimCode: time 1.342e-06/0.6023, allocations: 3.938 kB / 365.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of Templates: time 0.01394/0.6162, allocations: 3.988 MB / 369.3 MB, free: 11.38 MB / 298.7 MB