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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.262/1.262, allocations: 111.1 MB / 126.7 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002753/0.0002754, allocations: 8 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07397/0.07429, allocations: 25.18 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005546/0.07991, allocations: 2.136 MB / 185.6 MB, free: 3.773 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003166/0.08314, allocations: 0.7802 MB / 186.4 MB, free: 2.988 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004861/0.0837, allocations: 8 kB / 186.4 MB, free: 2.98 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003742/0.0841, allocations: 39.62 kB / 186.5 MB, free: 2.941 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007665/0.08489, allocations: 119.7 kB / 186.6 MB, free: 2.824 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.08645, allocations: 223.6 kB / 186.8 MB, free: 2.605 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.001191/0.08767, allocations: 315.9 kB / 187.1 MB, free: 2.297 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004703/0.08819, allocations: 112 kB / 187.2 MB, free: 2.184 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004601/0.08867, allocations: 147.4 kB / 187.4 MB, free: 2.039 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004052/0.0891, allocations: 151.2 kB / 187.5 MB, free: 1.891 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 9.952e-05/0.08922, allocations: 16 kB / 187.5 MB, free: 1.875 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.08934, allocations: 16 kB / 187.5 MB, free: 1.859 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.08952, allocations: 67.73 kB / 187.6 MB, free: 1.793 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.0897, allocations: 89.52 kB / 187.7 MB, free: 1.699 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007023/0.09042, allocations: 311.1 kB / 188 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.09045, allocations: 0 / 188 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.09047, allocations: 0 / 188 MB, free: 1.395 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.09049, allocations: 0 / 188 MB, free: 1.395 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.002591/0.09309, allocations: 0.6741 MB / 188.7 MB, free: 0.6719 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.727e-05/0.09319, allocations: 8.031 kB / 188.7 MB, free: 0.6641 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002148/0.09342, allocations: 62.55 kB / 188.8 MB, free: 0.5938 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.09363, allocations: 47.42 kB / 188.8 MB, free: 0.5469 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009092/0.09456, allocations: 314.2 kB / 189.1 MB, free: 200 kB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.09475, allocations: 54.28 kB / 189.2 MB, free: 140 kB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.09491, allocations: 35.95 kB / 189.2 MB, free: 104 kB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/0.09706, allocations: 405.9 kB / 189.6 MB, free: 15.68 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.825e-05/0.09716, allocations: 3.938 kB / 189.6 MB, free: 15.68 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.575e-05/0.09726, allocations: 16 kB / 189.6 MB, free: 15.66 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.0973, allocations: 8 kB / 189.6 MB, free: 15.66 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002484/0.09979, allocations: 386.3 kB / 190 MB, free: 15.28 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004632/0.1045, allocations: 1.144 MB / 191.1 MB, free: 14.07 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002131/0.1067, allocations: 326.5 kB / 191.5 MB, free: 13.75 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.056e-05/0.1068, allocations: 4 kB / 191.5 MB, free: 13.74 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.044e-05/0.1069, allocations: 38.5 kB / 191.5 MB, free: 13.7 MB / 170.7 MB Notification: Performance of pre-optimization done (n=26): time 4.398e-06/0.1069, allocations: 4 kB / 191.5 MB, free: 13.69 MB / 170.7 MB Notification: Performance of matching and sorting (n=28): time 0.007875/0.1148, allocations: 1.408 MB / 192.9 MB, free: 12.19 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.1149, allocations: 85.11 kB / 193 MB, free: 12.09 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000735/0.1157, allocations: 300.4 kB / 193.3 MB, free: 11.78 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.1158, allocations: 33.7 kB / 193.3 MB, free: 11.74 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000299/0.1161, allocations: 262.6 kB / 193.6 MB, free: 11.48 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.1163, allocations: 106.5 kB / 193.7 MB, free: 11.38 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.1164, allocations: 8 kB / 193.7 MB, free: 11.37 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0002338/0.1166, allocations: 330.7 kB / 194 MB, free: 11.04 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.1177, allocations: 156.6 kB / 194.2 MB, free: 10.89 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.1189, allocations: 226 kB / 194.4 MB, free: 10.65 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.12, allocations: 164 kB / 194.5 MB, free: 10.49 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.12, allocations: 0 / 194.5 MB, free: 10.49 MB / 170.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002474/0.1225, allocations: 433.7 kB / 195 MB, free: 10.06 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.1226, allocations: 4 kB / 195 MB, free: 10.05 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/0.1226, allocations: 4 kB / 195 MB, free: 10.05 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.1226, allocations: 0 / 195 MB, free: 10.05 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.1242, allocations: 147.9 kB / 195.1 MB, free: 9.906 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.1243, allocations: 4 kB / 195.1 MB, free: 9.902 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007496/0.125, allocations: 43.97 kB / 195.2 MB, free: 9.859 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.444e-05/0.1251, allocations: 15.92 kB / 195.2 MB, free: 9.844 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.0004625/0.1256, allocations: 166.1 kB / 195.3 MB, free: 9.672 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.1258, allocations: 31.62 kB / 195.4 MB, free: 9.641 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001577/0.126, allocations: 43.77 kB / 195.4 MB, free: 9.598 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.126, allocations: 0 / 195.4 MB, free: 9.598 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/0.126, allocations: 4 kB / 195.4 MB, free: 9.594 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.126, allocations: 0 / 195.4 MB, free: 9.594 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003991/0.13, allocations: 0.9059 MB / 196.3 MB, free: 8.621 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.547e-06/0.1301, allocations: 4.125 kB / 196.3 MB, free: 8.617 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/0.1314, allocations: 95.92 kB / 196.4 MB, free: 8.523 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.762e-05/0.1314, allocations: 8 kB / 196.4 MB, free: 8.516 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.037e-05/0.1315, allocations: 4 kB / 196.4 MB, free: 8.512 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-05/0.1315, allocations: 7.938 kB / 196.4 MB, free: 8.504 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.136e-06/0.1315, allocations: 7.953 kB / 196.5 MB, free: 8.496 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003769/0.1353, allocations: 0.6904 MB / 197.1 MB, free: 7.777 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002487/0.1356, allocations: 108.6 kB / 197.2 MB, free: 7.652 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.1358, allocations: 8.047 kB / 197.3 MB, free: 7.645 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008616/0.1366, allocations: 51.95 kB / 197.3 MB, free: 7.594 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.1368, allocations: 35.84 kB / 197.3 MB, free: 7.559 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.026e-05/0.1369, allocations: 16 kB / 197.4 MB, free: 7.543 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0004938/0.1374, allocations: 207.1 kB / 197.6 MB, free: 7.344 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.1374, allocations: 0 / 197.6 MB, free: 7.344 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0008962/0.1383, allocations: 68 kB / 197.6 MB, free: 7.277 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.004096/0.1424, allocations: 1.231 MB / 198.9 MB, free: 6.008 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.145, allocations: 375.8 kB / 199.2 MB, free: 5.641 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/0.145, allocations: 0 / 199.2 MB, free: 5.641 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.1463, allocations: 188.1 kB / 199.4 MB, free: 5.457 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.1475, allocations: 85.25 kB / 199.5 MB, free: 5.375 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.1588, allocations: 2.616 MB / 202.1 MB, free: 2.676 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007171/0.1596, allocations: 0.7995 MB / 202.9 MB, free: 1.852 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004916/0.1601, allocations: 127.4 kB / 203 MB, free: 1.727 MB / 170.7 MB Notification: Performance of SimCode: time 1.974e-06/0.1602, allocations: 0 / 203 MB, free: 1.727 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.956/3.117, allocations: 5.93 MB / 209 MB, free: 22.8 MB / 170.7 MB