Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.017/1.017, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004631/0.0004633, allocations: 8 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07262/0.07313, allocations: 25.17 MB / 183.4 MB, free: 6.016 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005719/0.0789, allocations: 2.136 MB / 185.6 MB, free: 3.871 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003122/0.08208, allocations: 0.7764 MB / 186.3 MB, free: 3.09 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003772/0.08251, allocations: 15.94 kB / 186.3 MB, free: 3.074 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.08288, allocations: 43.62 kB / 186.4 MB, free: 3.031 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006444/0.08355, allocations: 107.7 kB / 186.5 MB, free: 2.926 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.08501, allocations: 227.6 kB / 186.7 MB, free: 2.703 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000831/0.08587, allocations: 307.9 kB / 187 MB, free: 2.402 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004372/0.08633, allocations: 119.7 kB / 187.1 MB, free: 2.281 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000377/0.08673, allocations: 143.4 kB / 187.3 MB, free: 2.141 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003864/0.08715, allocations: 151.2 kB / 187.4 MB, free: 1.992 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-05/0.08726, allocations: 16 kB / 187.4 MB, free: 1.977 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.045e-05/0.08738, allocations: 16 kB / 187.5 MB, free: 1.961 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.08756, allocations: 67.73 kB / 187.5 MB, free: 1.895 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.08774, allocations: 85.52 kB / 187.6 MB, free: 1.805 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006663/0.08843, allocations: 311.4 kB / 187.9 MB, free: 1.5 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.266e-06/0.08846, allocations: 4 kB / 187.9 MB, free: 1.496 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.08848, allocations: 0 / 187.9 MB, free: 1.496 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.08851, allocations: 0 / 187.9 MB, free: 1.496 MB / 154.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.002202/0.09073, allocations: 0.6663 MB / 188.6 MB, free: 0.7812 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.0908, allocations: 8.031 kB / 188.6 MB, free: 0.7734 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.09102, allocations: 51.44 kB / 188.6 MB, free: 0.7227 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008494/0.09189, allocations: 306.2 kB / 188.9 MB, free: 388 kB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.09205, allocations: 50.36 kB / 189 MB, free: 332 kB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.09221, allocations: 36 kB / 189 MB, free: 296 kB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/0.09411, allocations: 413.7 kB / 189.4 MB, free: 15.87 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.37e-05/0.09418, allocations: 0 / 189.4 MB, free: 15.87 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.724e-05/0.09429, allocations: 16 kB / 189.4 MB, free: 15.85 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.09433, allocations: 11.98 kB / 189.4 MB, free: 15.84 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002303/0.09665, allocations: 378.4 kB / 189.8 MB, free: 15.47 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004462/0.1011, allocations: 1.144 MB / 191 MB, free: 14.26 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001975/0.1032, allocations: 334.4 kB / 191.3 MB, free: 13.93 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.077e-05/0.1032, allocations: 4 kB / 191.3 MB, free: 13.92 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.958e-05/0.1033, allocations: 38.56 kB / 191.3 MB, free: 13.88 MB / 170.7 MB Notification: Performance of pre-optimization done (n=26): time 6.354e-06/0.1034, allocations: 4 kB / 191.3 MB, free: 13.87 MB / 170.7 MB Notification: Performance of matching and sorting (n=28): time 0.007364/0.1107, allocations: 1.419 MB / 192.8 MB, free: 12.36 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.572e-05/0.1109, allocations: 81.11 kB / 192.8 MB, free: 12.26 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007287/0.1116, allocations: 308.4 kB / 193.1 MB, free: 11.95 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.047e-05/0.1117, allocations: 33.7 kB / 193.2 MB, free: 11.91 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.112, allocations: 258.6 kB / 193.4 MB, free: 11.65 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.1123, allocations: 98.56 kB / 193.5 MB, free: 11.55 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.1123, allocations: 4 kB / 193.5 MB, free: 11.55 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0002233/0.1126, allocations: 330.8 kB / 193.8 MB, free: 11.22 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009573/0.1135, allocations: 156.6 kB / 194 MB, free: 11.07 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.1147, allocations: 226 kB / 194.2 MB, free: 10.83 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009892/0.1157, allocations: 167.9 kB / 194.4 MB, free: 10.66 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.436e-06/0.1157, allocations: 4 kB / 194.4 MB, free: 10.66 MB / 170.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001966/0.1177, allocations: 425.8 kB / 194.8 MB, free: 10.24 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.1178, allocations: 4 kB / 194.8 MB, free: 10.23 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.1178, allocations: 0 / 194.8 MB, free: 10.23 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.1178, allocations: 11.97 kB / 194.8 MB, free: 10.22 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.1189, allocations: 147.8 kB / 195 MB, free: 10.08 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.1189, allocations: 4 kB / 195 MB, free: 10.07 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004928/0.1194, allocations: 43.95 kB / 195 MB, free: 10.03 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-05/0.1195, allocations: 8 kB / 195 MB, free: 10.02 MB / 170.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.0003732/0.1199, allocations: 165.7 kB / 195.2 MB, free: 9.852 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.1201, allocations: 31.62 kB / 195.2 MB, free: 9.82 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000144/0.1202, allocations: 43.7 kB / 195.2 MB, free: 9.777 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.1203, allocations: 4 kB / 195.3 MB, free: 9.773 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.1203, allocations: 0 / 195.3 MB, free: 9.773 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.1203, allocations: 3.984 kB / 195.3 MB, free: 9.77 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003631/0.124, allocations: 0.9034 MB / 196.2 MB, free: 8.797 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.124, allocations: 4 kB / 196.2 MB, free: 8.793 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009675/0.125, allocations: 95.88 kB / 196.3 MB, free: 8.699 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.035e-06/0.125, allocations: 4.125 kB / 196.3 MB, free: 8.695 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.451e-05/0.1251, allocations: 11.98 kB / 196.3 MB, free: 8.684 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-05/0.1251, allocations: 4 kB / 196.3 MB, free: 8.68 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.305e-06/0.1251, allocations: 0 / 196.3 MB, free: 8.68 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003159/0.1283, allocations: 0.6982 MB / 197 MB, free: 7.953 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.1285, allocations: 104.7 kB / 197.1 MB, free: 7.832 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.1287, allocations: 8.062 kB / 197.1 MB, free: 7.824 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007668/0.1295, allocations: 51.95 kB / 197.1 MB, free: 7.773 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.1296, allocations: 27.92 kB / 197.2 MB, free: 7.746 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-05/0.1297, allocations: 15.94 kB / 197.2 MB, free: 7.73 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0005125/0.1302, allocations: 211 kB / 197.4 MB, free: 7.527 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.256e-06/0.1303, allocations: 0 / 197.4 MB, free: 7.527 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0008581/0.1311, allocations: 68 kB / 197.5 MB, free: 7.461 MB / 170.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.0002256/0.1314, allocations: 107.2 kB / 197.6 MB, free: 7.348 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.1328, allocations: 375.5 kB / 197.9 MB, free: 6.98 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.701e-06/0.1328, allocations: 4.188 kB / 197.9 MB, free: 6.977 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005884/0.1334, allocations: 189.6 kB / 198.1 MB, free: 6.793 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005735/0.134, allocations: 80.17 kB / 198.2 MB, free: 6.719 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.1368, allocations: 1.283 MB / 199.5 MB, free: 5.387 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005412/0.1374, allocations: 0.8073 MB / 200.3 MB, free: 4.555 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.1375, allocations: 31.44 kB / 200.3 MB, free: 4.523 MB / 170.7 MB Notification: Performance of SimCode: time 1.739e-06/0.1375, allocations: 0 / 200.3 MB, free: 4.523 MB / 170.7 MB Notification: Performance of Templates: time 0.008757/0.1463, allocations: 4.401 MB / 204.7 MB, free: 124 kB / 170.7 MB