Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.922/1.922, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003659, allocations: 12 kB / 233.8 MB, free: 0.9805 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09654/0.09693, allocations: 38.77 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.371/0.468, allocations: 71.4 MB / 343.9 MB, free: 11.71 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.4684, allocations: 79.95 kB / 344 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03973/0.5081, allocations: 8.336 MB / 352.3 MB, free: 3.281 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5082, allocations: 0 / 352.3 MB, free: 3.281 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.819e-05/0.5082, allocations: 12 kB / 352.4 MB, free: 3.27 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.001954/0.5102, allocations: 0.7093 MB / 353.1 MB, free: 2.512 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.5103, allocations: 8.031 kB / 353.1 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.5104, allocations: 47.44 kB / 353.1 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009966/0.5114, allocations: 367 kB / 353.5 MB, free: 2.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.573e-05/0.5115, allocations: 54.36 kB / 353.5 MB, free: 2 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.203e-05/0.5116, allocations: 31.94 kB / 353.6 MB, free: 1.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.5131, allocations: 430.6 kB / 354 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.5132, allocations: 4 kB / 354 MB, free: 1.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.992e-05/0.5132, allocations: 12 kB / 354 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.5132, allocations: 7.984 kB / 354 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001786/0.515, allocations: 394.3 kB / 354.4 MB, free: 1.121 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003234/0.5183, allocations: 1.186 MB / 355.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/0.5198, allocations: 343.3 kB / 355.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.5199, allocations: 4 kB / 355.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.52, allocations: 34.56 kB / 356 MB, free: 15.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 3.096e-06/0.52, allocations: 4 kB / 356 MB, free: 15.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.00581/0.5258, allocations: 1.488 MB / 357.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.015e-05/0.5259, allocations: 110.8 kB / 357.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005744/0.5265, allocations: 316.5 kB / 357.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.74e-05/0.5266, allocations: 29.7 kB / 357.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002096/0.5268, allocations: 262.6 kB / 358.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.527, allocations: 118.3 kB / 358.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.691e-05/0.527, allocations: 8 kB / 358.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.5272, allocations: 322.8 kB / 358.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007546/0.528, allocations: 164.6 kB / 358.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00083/0.5288, allocations: 235.1 kB / 359 MB, free: 12.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007931/0.5296, allocations: 172.4 kB / 359.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.5296, allocations: 0 / 359.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001778/0.5314, allocations: 453.4 kB / 359.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.5315, allocations: 5.406 kB / 359.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.5315, allocations: 3.984 kB / 359.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.5315, allocations: 4 kB / 359.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.5327, allocations: 159.8 kB / 359.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.5327, allocations: 8 kB / 359.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005874/0.5333, allocations: 39.97 kB / 359.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.5334, allocations: 12 kB / 359.8 MB, free: 11.44 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 () * 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.00034/0.5337, allocations: 157.8 kB / 360 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.5338, allocations: 35.62 kB / 360 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000122/0.534, allocations: 43.95 kB / 360 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.534, allocations: 4 kB / 360.1 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.534, allocations: 7.891 kB / 360.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.534, allocations: 0 / 360.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003441/0.5375, allocations: 0.9426 MB / 361 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.5375, allocations: 0 / 361 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008801/0.5384, allocations: 107.8 kB / 361.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.18e-05/0.5384, allocations: 7.938 kB / 361.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.929e-05/0.5385, allocations: 12.09 kB / 361.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.478e-06/0.5385, allocations: 4 kB / 361.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.5385, allocations: 0 / 361.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.5413, allocations: 0.713 MB / 361.8 MB, free: 9.297 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.5416, allocations: 136.8 kB / 362 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.899e-05/0.5417, allocations: 11.95 kB / 362 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006705/0.5423, allocations: 55.95 kB / 362 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.5425, allocations: 31.95 kB / 362.1 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.036e-05/0.5425, allocations: 8 kB / 362.1 MB, free: 9.039 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004399/0.543, allocations: 227 kB / 362.3 MB, free: 8.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-07/0.543, allocations: 0 / 362.3 MB, free: 8.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005595/0.5436, allocations: 80 kB / 362.4 MB, free: 8.742 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 () * 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.0002083/0.5438, allocations: 111.1 kB / 362.5 MB, free: 8.621 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.5456, allocations: 387.6 kB / 362.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/0.5456, allocations: 8.188 kB / 362.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008847/0.5465, allocations: 200.2 kB / 363.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009337/0.5474, allocations: 68.42 kB / 363.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.5509, allocations: 1.248 MB / 364.4 MB, free: 6.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/0.5515, allocations: 0.8148 MB / 365.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002306/0.5517, allocations: 31.42 kB / 365.2 MB, free: 5.812 MB / 298.7 MB Notification: Performance of SimCode: time 8.81e-07/0.5517, allocations: 0 / 365.2 MB, free: 5.812 MB / 298.7 MB Notification: Performance of Templates: time 0.01325/0.565, allocations: 4.647 MB / 369.9 MB, free: 1.172 MB / 298.7 MB