Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.256/1.256, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004107, allocations: 4 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06683/0.06729, allocations: 25.16 MB / 184 MB, free: 6.039 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2421/0.3095, allocations: 38.09 MB / 222.1 MB, free: 5.66 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/0.3099, allocations: 65.06 kB / 222.2 MB, free: 5.652 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05074/0.3606, allocations: 7.908 MB / 230.1 MB, free: 1.766 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.3607, allocations: 0 / 230.1 MB, free: 1.766 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.928e-05/0.3608, allocations: 12.12 kB / 230.1 MB, free: 1.754 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001704/0.3625, allocations: 0.6798 MB / 230.8 MB, free: 1.051 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.247e-05/0.3626, allocations: 8.031 kB / 230.8 MB, free: 1.043 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.3628, allocations: 51.47 kB / 230.8 MB, free: 0.9922 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009344/0.3637, allocations: 348.8 kB / 231.2 MB, free: 0.6406 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.949e-05/0.3638, allocations: 48.39 kB / 231.2 MB, free: 0.5977 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.105e-05/0.3639, allocations: 37.86 kB / 231.3 MB, free: 0.5703 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.3653, allocations: 422 kB / 231.7 MB, free: 248 kB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/0.3653, allocations: 0 / 231.7 MB, free: 248 kB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.869e-05/0.3654, allocations: 13.5 kB / 231.7 MB, free: 244 kB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.3654, allocations: 8 kB / 231.7 MB, free: 236 kB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.3671, allocations: 384.5 kB / 232.1 MB, free: 15.93 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003223/0.3704, allocations: 1.152 MB / 233.2 MB, free: 14.95 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.372, allocations: 325.6 kB / 233.5 MB, free: 14.7 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.626e-05/0.3721, allocations: 4 kB / 233.5 MB, free: 14.69 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.042e-05/0.3721, allocations: 41.25 kB / 233.6 MB, free: 14.64 MB / 186.7 MB Notification: Performance of pre-optimization done (n=26): time 5.19e-06/0.3722, allocations: 0 / 233.6 MB, free: 14.64 MB / 186.7 MB Notification: Performance of matching and sorting (n=28): time 0.008152/0.3803, allocations: 1.429 MB / 235 MB, free: 13.34 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.3805, allocations: 106.8 kB / 235.1 MB, free: 13.21 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00078/0.3813, allocations: 313 kB / 235.4 MB, free: 12.95 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.3814, allocations: 33.45 kB / 235.5 MB, free: 12.92 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002487/0.3817, allocations: 255.9 kB / 235.7 MB, free: 12.7 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.3819, allocations: 104.1 kB / 235.8 MB, free: 12.61 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.382, allocations: 7.125 kB / 235.8 MB, free: 12.61 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.3822, allocations: 333.4 kB / 236.1 MB, free: 12.28 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.3833, allocations: 159.3 kB / 236.3 MB, free: 12.16 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.3845, allocations: 224.3 kB / 236.5 MB, free: 11.96 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.3856, allocations: 166.7 kB / 236.7 MB, free: 11.85 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.3856, allocations: 0 / 236.7 MB, free: 11.85 MB / 186.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002436/0.3881, allocations: 444.7 kB / 237.1 MB, free: 11.5 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.3882, allocations: 4 kB / 237.1 MB, free: 11.5 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.3882, allocations: 0 / 237.1 MB, free: 11.5 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.383e-05/0.3883, allocations: 4 kB / 237.1 MB, free: 11.5 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001514/0.3898, allocations: 147.6 kB / 237.3 MB, free: 11.36 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.366e-05/0.3899, allocations: 4 kB / 237.3 MB, free: 11.35 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008275/0.3907, allocations: 43.59 kB / 237.3 MB, free: 11.32 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.01e-05/0.3908, allocations: 8 kB / 237.3 MB, free: 11.31 MB / 186.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 (43): * Single equations (assignments): 43 * 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.0004538/0.3913, allocations: 168.1 kB / 237.5 MB, free: 11.16 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.3915, allocations: 31.62 kB / 237.5 MB, free: 11.13 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001531/0.3916, allocations: 38.52 kB / 237.6 MB, free: 11.11 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.3916, allocations: 7.938 kB / 237.6 MB, free: 11.1 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.3917, allocations: 0 / 237.6 MB, free: 11.1 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.3917, allocations: 4 kB / 237.6 MB, free: 11.09 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004673/0.3964, allocations: 0.9058 MB / 238.5 MB, free: 10.29 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.3964, allocations: 3.984 kB / 238.5 MB, free: 10.29 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.3976, allocations: 103.9 kB / 238.6 MB, free: 10.19 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.457e-05/0.3976, allocations: 4 kB / 238.6 MB, free: 10.19 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.955e-05/0.3977, allocations: 7.875 kB / 238.6 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.744e-06/0.3977, allocations: 0 / 238.6 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/0.3977, allocations: 7.953 kB / 238.6 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003499/0.4012, allocations: 0.6951 MB / 239.3 MB, free: 9.578 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002545/0.4015, allocations: 108.5 kB / 239.4 MB, free: 9.457 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.4017, allocations: 11.94 kB / 239.4 MB, free: 9.449 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009509/0.4027, allocations: 55.58 kB / 239.5 MB, free: 9.398 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.4028, allocations: 27.72 kB / 239.5 MB, free: 9.375 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.265e-05/0.4029, allocations: 8 kB / 239.5 MB, free: 9.367 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0005276/0.4034, allocations: 225.5 kB / 239.7 MB, free: 9.191 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4035, allocations: 4 kB / 239.7 MB, free: 9.188 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0009067/0.4044, allocations: 71.31 kB / 239.8 MB, free: 9.125 MB / 186.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 (28): * Single equations (assignments): 28 * 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.000269/0.4047, allocations: 106.7 kB / 239.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.4069, allocations: 376.8 kB / 240.3 MB, free: 8.723 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.407, allocations: 0 / 240.3 MB, free: 8.723 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.4081, allocations: 194.4 kB / 240.5 MB, free: 8.57 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.4093, allocations: 73.3 kB / 240.5 MB, free: 8.512 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004955/0.4143, allocations: 1.273 MB / 241.8 MB, free: 7.258 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/0.415, allocations: 0.8111 MB / 242.6 MB, free: 6.418 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/0.4153, allocations: 27.44 kB / 242.6 MB, free: 6.391 MB / 186.7 MB Notification: Performance of SimCode: time 1.353e-06/0.4153, allocations: 0 / 242.6 MB, free: 6.391 MB / 186.7 MB Notification: Performance of Templates: time 0.01548/0.4308, allocations: 4.479 MB / 247.1 MB, free: 1.973 MB / 186.7 MB