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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.035/1.035, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.132e-05/3.126e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05908/0.05914, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2619/0.3211, allocations: 37.34 MB / 210.7 MB, free: 7.055 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.3214, allocations: 63.83 kB / 210.8 MB, free: 7.055 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03369/0.3551, allocations: 7.827 MB / 218.6 MB, free: 5.457 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3552, allocations: 0 / 218.6 MB, free: 5.457 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.541e-05/0.3552, allocations: 15.75 kB / 218.6 MB, free: 5.449 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.00142/0.3567, allocations: 0.638 MB / 219.3 MB, free: 4.941 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.3567, allocations: 7.688 kB / 219.3 MB, free: 4.941 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.3569, allocations: 46.41 kB / 219.3 MB, free: 4.918 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008481/0.3577, allocations: 348.9 kB / 219.7 MB, free: 4.648 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.668e-05/0.3578, allocations: 38.23 kB / 219.7 MB, free: 4.617 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.32e-05/0.3579, allocations: 19.69 kB / 219.7 MB, free: 4.617 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000605/0.3585, allocations: 227.1 kB / 219.9 MB, free: 4.594 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006425/0.3592, allocations: 300.5 kB / 220.2 MB, free: 4.48 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.3592, allocations: 0 / 220.2 MB, free: 4.48 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.77e-05/0.3593, allocations: 0 / 220.2 MB, free: 4.48 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.3593, allocations: 7.219 kB / 220.2 MB, free: 4.48 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002504/0.3618, allocations: 1.089 MB / 221.3 MB, free: 3.832 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007068/0.3625, allocations: 230.2 kB / 221.6 MB, free: 3.789 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.3628, allocations: 85.95 kB / 221.6 MB, free: 3.781 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.59e-05/0.3628, allocations: 3.625 kB / 221.6 MB, free: 3.781 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.3628, allocations: 34.5 kB / 221.7 MB, free: 3.742 MB / 170.7 MB Notification: Performance of pre-optimization done (n=26): time 2.564e-06/0.3628, allocations: 4 kB / 221.7 MB, free: 3.738 MB / 170.7 MB Notification: Performance of matching and sorting (n=28): time 0.001735/0.3646, allocations: 0.8732 MB / 222.5 MB, free: 3.168 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.3647, allocations: 106.8 kB / 222.7 MB, free: 3.039 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003378/0.365, allocations: 241.7 kB / 222.9 MB, free: 2.918 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.3651, allocations: 33.52 kB / 222.9 MB, free: 2.883 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.3652, allocations: 264.6 kB / 223.2 MB, free: 2.668 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.055e-05/0.3653, allocations: 101.5 kB / 223.3 MB, free: 2.594 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.241e-05/0.3653, allocations: 0 / 223.3 MB, free: 2.594 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.421e-05/0.3654, allocations: 322.6 kB / 223.6 MB, free: 2.277 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.3656, allocations: 93.31 kB / 223.7 MB, free: 2.273 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002876/0.3659, allocations: 165.8 kB / 223.8 MB, free: 2.199 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.3662, allocations: 105.1 kB / 223.9 MB, free: 2.18 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3662, allocations: 0 / 223.9 MB, free: 2.18 MB / 170.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006198/0.3668, allocations: 298.2 kB / 224.2 MB, free: 2.098 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3669, allocations: 7 kB / 224.2 MB, free: 2.098 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3669, allocations: 0 / 224.2 MB, free: 2.098 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.3669, allocations: 3.875 kB / 224.3 MB, free: 2.098 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.3679, allocations: 152.5 kB / 224.4 MB, free: 2.059 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.368, allocations: 3.906 kB / 224.4 MB, free: 2.059 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004737/0.3685, allocations: 31.19 kB / 224.4 MB, free: 2.051 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.3685, allocations: 11.69 kB / 224.4 MB, free: 2.051 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 () * 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.0001126/0.3686, allocations: 120.7 kB / 224.6 MB, free: 1.93 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005127/0.3691, allocations: 223.8 kB / 224.8 MB, free: 1.859 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.946e-05/0.3692, allocations: 31.12 kB / 224.8 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.3693, allocations: 33.98 kB / 224.8 MB, free: 1.836 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.738e-06/0.3694, allocations: 0 / 224.8 MB, free: 1.836 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3694, allocations: 0 / 224.8 MB, free: 1.836 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.3694, allocations: 7.859 kB / 224.9 MB, free: 1.832 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.3706, allocations: 0.6954 MB / 225.5 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.3706, allocations: 3.875 kB / 225.6 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007856/0.3714, allocations: 91.25 kB / 225.6 MB, free: 1.402 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.3715, allocations: 11.86 kB / 225.7 MB, free: 1.395 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.3715, allocations: 7.938 kB / 225.7 MB, free: 1.387 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.3715, allocations: 3.594 kB / 225.7 MB, free: 1.387 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3715, allocations: 0 / 225.7 MB, free: 1.387 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007937/0.3723, allocations: 0.5027 MB / 226.2 MB, free: 1.113 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.028e-05/0.3724, allocations: 108 kB / 226.3 MB, free: 1 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.805e-05/0.3725, allocations: 3.844 kB / 226.3 MB, free: 1 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006163/0.3731, allocations: 50.05 kB / 226.3 MB, free: 0.9844 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.669e-05/0.3732, allocations: 27.23 kB / 226.4 MB, free: 0.9688 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.3733, allocations: 11 kB / 226.4 MB, free: 0.9688 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002326/0.3735, allocations: 195.6 kB / 226.6 MB, free: 0.875 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3735, allocations: 4 kB / 226.6 MB, free: 0.8711 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004971/0.374, allocations: 61.38 kB / 226.6 MB, free: 0.8711 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 () * 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.001115/0.3752, allocations: 1.32 MB / 227.9 MB, free: 15.79 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0005772/0.3758, allocations: 233.7 kB / 228.2 MB, free: 15.77 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3758, allocations: 0 / 228.2 MB, free: 15.77 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.376, allocations: 113.8 kB / 228.3 MB, free: 15.76 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007089/0.3768, allocations: 62.31 kB / 228.3 MB, free: 15.74 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.3801, allocations: 0.9676 MB / 229.3 MB, free: 15.14 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.3806, allocations: 0.8086 MB / 230.1 MB, free: 14.38 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.3809, allocations: 117.4 kB / 230.2 MB, free: 14.36 MB / 186.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3809, allocations: 0 / 230.2 MB, free: 14.36 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.649/3.03, allocations: 5.894 MB / 236.1 MB, free: 11.43 MB / 186.7 MB