Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.795/1.795, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003497, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07638/0.07676, allocations: 44.51 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3359/0.4127, allocations: 76.62 MB / 385.1 MB, free: 18.67 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.413, allocations: 74.31 kB / 385.1 MB, free: 18.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02842/0.4414, allocations: 7.511 MB / 392.6 MB, free: 17.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.458e-06/0.4414, allocations: 0 / 392.6 MB, free: 17.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.18e-05/0.4415, allocations: 7.906 kB / 392.6 MB, free: 17.88 MB / 314.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.001223/0.4427, allocations: 0.6945 MB / 393.3 MB, free: 17.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.4428, allocations: 7.906 kB / 393.3 MB, free: 17.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.4429, allocations: 50.77 kB / 393.4 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000473/0.4434, allocations: 322.5 kB / 393.7 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.4434, allocations: 31.19 kB / 393.7 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.972e-05/0.4435, allocations: 33.88 kB / 393.8 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000999/0.4445, allocations: 408.4 kB / 394.2 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.4446, allocations: 14.94 kB / 394.2 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.175e-05/0.4446, allocations: 7.375 kB / 394.2 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.4446, allocations: 7.812 kB / 394.2 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.4458, allocations: 407.3 kB / 394.6 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.4481, allocations: 1.18 MB / 395.8 MB, free: 16.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009725/0.4491, allocations: 343.9 kB / 396.1 MB, free: 16.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.4492, allocations: 7.781 kB / 396.1 MB, free: 16.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.4492, allocations: 36.95 kB / 396.2 MB, free: 16.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.691e-06/0.4492, allocations: 0 / 396.2 MB, free: 16.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.003796/0.453, allocations: 1.477 MB / 397.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.4531, allocations: 81.02 kB / 397.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.4535, allocations: 283.7 kB / 398 MB, free: 15.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.4535, allocations: 37.33 kB / 398 MB, free: 15.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.4536, allocations: 260.2 kB / 398.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.022e-05/0.4537, allocations: 110.5 kB / 398.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.436e-05/0.4538, allocations: 7.062 kB / 398.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.943e-05/0.4538, allocations: 332.9 kB / 398.7 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005877/0.4544, allocations: 178.3 kB / 398.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006284/0.4551, allocations: 236.9 kB / 399.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006145/0.4557, allocations: 195.2 kB / 399.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.214e-06/0.4557, allocations: 4 kB / 399.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001369/0.4571, allocations: 473.5 kB / 399.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.4572, allocations: 451.5 kB / 400.2 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.679e-06/0.4573, allocations: 3.953 kB / 400.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.851e-05/0.4573, allocations: 3.906 kB / 400.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.4583, allocations: 254.2 kB / 400.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006573/0.459, allocations: 0.6871 MB / 401.2 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.4595, allocations: 56.38 kB / 401.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.4596, allocations: 10.72 kB / 401.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.4596, allocations: 4.531 kB / 401.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001176/0.4608, allocations: 406.4 kB / 401.6 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.954e-06/0.4608, allocations: 0 / 401.6 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.796e-06/0.4608, allocations: 3.688 kB / 401.6 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006138/0.4614, allocations: 121.7 kB / 401.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.019e-06/0.4615, allocations: 7.938 kB / 401.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.4618, allocations: 45.73 kB / 401.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.4619, allocations: 7.75 kB / 401.8 MB, free: 13.8 MB / 314.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): 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.0002759/0.4622, allocations: 241.7 kB / 402.1 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.4623, allocations: 31.19 kB / 402.1 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.171e-05/0.4624, allocations: 50.62 kB / 402.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-06/0.4624, allocations: 3.875 kB / 402.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.748e-06/0.4624, allocations: 3.953 kB / 402.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.4624, allocations: 3.609 kB / 402.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.4643, allocations: 0.9306 MB / 403.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.978e-06/0.4644, allocations: 6.453 kB / 403.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005334/0.4649, allocations: 103 kB / 403.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.777e-06/0.4649, allocations: 6.562 kB / 403.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.465, allocations: 5.312 kB / 403.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.396e-06/0.465, allocations: 6.125 kB / 403.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.359e-06/0.465, allocations: 3.281 kB / 403.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.4668, allocations: 0.767 MB / 404 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.467, allocations: 130.8 kB / 404.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.335e-05/0.4671, allocations: 7.25 kB / 404.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/0.4675, allocations: 49.72 kB / 404.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/0.4677, allocations: 28.98 kB / 404.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.4677, allocations: 5.906 kB / 404.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003225/0.468, allocations: 228.5 kB / 404.4 MB, free: 12.7 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.468, allocations: 0 / 404.4 MB, free: 12.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007321/0.4688, allocations: 133.8 kB / 404.5 MB, free: 12.7 MB / 314.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.0001378/0.4689, allocations: 114 kB / 404.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002372/0.4713, allocations: 0.738 MB / 405.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.366e-06/0.4714, allocations: 0 / 405.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000608/0.472, allocations: 196.3 kB / 405.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006258/0.4726, allocations: 71.08 kB / 405.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.4749, allocations: 1.253 MB / 406.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.4752, allocations: 0.8138 MB / 407.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.4754, allocations: 34.34 kB / 407.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of SimCode: time 1.606e-06/0.4754, allocations: 0 / 407.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of Templates: time 0.00832/0.4837, allocations: 5.219 MB / 413 MB, free: 9.277 MB / 314.7 MB