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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.173/1.173, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.118e-05/2.128e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04657/0.04662, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1836/0.2302, allocations: 37.34 MB / 210.6 MB, free: 6.992 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000162/0.2304, allocations: 64.39 kB / 210.7 MB, free: 6.992 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03086/0.2613, allocations: 7.837 MB / 218.5 MB, free: 5.414 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.427e-06/0.2614, allocations: 0 / 218.5 MB, free: 5.414 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.818e-05/0.2614, allocations: 7.406 kB / 218.5 MB, free: 5.414 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.001015/0.2624, allocations: 0.6365 MB / 219.2 MB, free: 4.906 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2625, allocations: 7.5 kB / 219.2 MB, free: 4.906 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.2626, allocations: 45.16 kB / 219.2 MB, free: 4.883 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006245/0.2632, allocations: 348.5 kB / 219.6 MB, free: 4.613 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.2633, allocations: 45.78 kB / 219.6 MB, free: 4.578 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-05/0.2634, allocations: 15.72 kB / 219.6 MB, free: 4.578 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005231/0.2639, allocations: 221.6 kB / 219.8 MB, free: 4.559 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005892/0.2645, allocations: 297.9 kB / 220.1 MB, free: 4.445 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.2646, allocations: 3.938 kB / 220.1 MB, free: 4.441 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.165e-05/0.2646, allocations: 4 kB / 220.1 MB, free: 4.438 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.925e-06/0.2647, allocations: 7.75 kB / 220.1 MB, free: 4.438 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.2668, allocations: 1.079 MB / 221.2 MB, free: 3.801 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005829/0.2674, allocations: 231.5 kB / 221.4 MB, free: 3.758 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.2676, allocations: 85.89 kB / 221.5 MB, free: 3.75 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.2677, allocations: 7.859 kB / 221.5 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.2677, allocations: 34.44 kB / 221.6 MB, free: 3.707 MB / 170.7 MB Notification: Performance of pre-optimization done (n=26): time 3.585e-06/0.2677, allocations: 0 / 221.6 MB, free: 3.707 MB / 170.7 MB Notification: Performance of matching and sorting (n=28): time 0.001544/0.2693, allocations: 0.8747 MB / 222.4 MB, free: 3.133 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.2693, allocations: 106.7 kB / 222.6 MB, free: 3.008 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.2696, allocations: 240.2 kB / 222.8 MB, free: 2.891 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.2697, allocations: 25.7 kB / 222.8 MB, free: 2.859 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.2698, allocations: 265.2 kB / 223.1 MB, free: 2.645 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.838e-05/0.2699, allocations: 96.19 kB / 223.2 MB, free: 2.574 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.978e-05/0.2699, allocations: 7.938 kB / 223.2 MB, free: 2.566 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.737e-05/0.27, allocations: 326.1 kB / 223.5 MB, free: 2.25 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.2702, allocations: 93 kB / 223.6 MB, free: 2.246 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.2704, allocations: 164.8 kB / 223.7 MB, free: 2.168 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002135/0.2707, allocations: 109.2 kB / 223.9 MB, free: 2.148 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.44e-06/0.2707, allocations: 0 / 223.9 MB, free: 2.148 MB / 170.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000578/0.2713, allocations: 283.5 kB / 224.1 MB, free: 2.074 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.2713, allocations: 10.12 kB / 224.1 MB, free: 2.074 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.85e-06/0.2713, allocations: 0 / 224.1 MB, free: 2.074 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.2713, allocations: 3.719 kB / 224.1 MB, free: 2.074 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006835/0.272, allocations: 150.8 kB / 224.3 MB, free: 2.035 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.525e-06/0.2721, allocations: 2.938 kB / 224.3 MB, free: 2.035 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003407/0.2724, allocations: 43.67 kB / 224.3 MB, free: 2.02 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/0.2725, allocations: 13.09 kB / 224.3 MB, free: 2.016 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.0001032/0.2726, allocations: 112.8 kB / 224.5 MB, free: 1.898 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.86e-05/0.2727, allocations: 41.77 kB / 224.5 MB, free: 1.879 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8e-05/0.2728, allocations: 31.92 kB / 224.5 MB, free: 1.871 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.2728, allocations: 6.938 kB / 224.5 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.715e-06/0.2728, allocations: 0 / 224.5 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.456e-06/0.2728, allocations: 0 / 224.5 MB, free: 1.867 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.2739, allocations: 0.6933 MB / 225.2 MB, free: 1.457 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.768e-06/0.274, allocations: 7.859 kB / 225.2 MB, free: 1.453 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005099/0.2745, allocations: 93.47 kB / 225.3 MB, free: 1.43 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.6e-06/0.2745, allocations: 7.656 kB / 225.3 MB, free: 1.426 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.2745, allocations: 7.531 kB / 225.3 MB, free: 1.426 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.2746, allocations: 0 / 225.3 MB, free: 1.426 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.794e-06/0.2746, allocations: 3.844 kB / 225.3 MB, free: 1.426 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007228/0.2753, allocations: 0.5117 MB / 225.9 MB, free: 1.141 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.586e-05/0.2754, allocations: 108 kB / 226 MB, free: 1.027 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.542e-05/0.2755, allocations: 3.906 kB / 226 MB, free: 1.027 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004721/0.276, allocations: 54.81 kB / 226 MB, free: 1.008 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.032e-05/0.2761, allocations: 23.36 kB / 226 MB, free: 0.9961 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.2761, allocations: 11.44 kB / 226.1 MB, free: 0.9961 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002088/0.2763, allocations: 191.5 kB / 226.2 MB, free: 0.9062 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.83e-07/0.2763, allocations: 0 / 226.2 MB, free: 0.9062 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004956/0.2768, allocations: 58.16 kB / 226.3 MB, free: 0.9062 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.0001386/0.277, allocations: 110.5 kB / 226.4 MB, free: 0.8047 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004745/0.2775, allocations: 218 kB / 226.6 MB, free: 0.793 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.641e-06/0.2775, allocations: 7.781 kB / 226.6 MB, free: 0.7891 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.2777, allocations: 105.6 kB / 226.7 MB, free: 0.7773 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.2783, allocations: 77.12 kB / 226.8 MB, free: 0.7539 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.2804, allocations: 0.8955 MB / 227.7 MB, free: 212 kB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004848/0.2809, allocations: 0.8008 MB / 228.5 MB, free: 15.45 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.2811, allocations: 38.48 kB / 228.5 MB, free: 15.44 MB / 186.7 MB Notification: Performance of SimCode: time 1.592e-06/0.2811, allocations: 3.875 kB / 228.5 MB, free: 15.44 MB / 186.7 MB Notification: Performance of Templates: time 0.008314/0.2894, allocations: 4.388 MB / 232.9 MB, free: 13.25 MB / 186.7 MB