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.046/1.046, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.95e-05/1.958e-05, allocations: 0 / 154.3 MB, free: 13.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1368, allocations: 25.14 MB / 179.4 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05744/0.1943, allocations: 38.02 MB / 217.4 MB, free: 11.11 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.1945, allocations: 63.91 kB / 217.5 MB, free: 11.05 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03335/0.2279, allocations: 7.895 MB / 225.4 MB, free: 3.125 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.992e-06/0.228, allocations: 0 / 225.4 MB, free: 3.125 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.228, allocations: 8 kB / 225.4 MB, free: 3.117 MB / 186.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.001267/0.2293, allocations: 0.6348 MB / 226 MB, free: 2.438 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.2294, allocations: 8.031 kB / 226 MB, free: 2.43 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.2295, allocations: 47.44 kB / 226.1 MB, free: 2.383 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007714/0.2303, allocations: 351 kB / 226.4 MB, free: 2.004 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.832e-05/0.2304, allocations: 54.77 kB / 226.5 MB, free: 1.945 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.116e-05/0.2305, allocations: 35.95 kB / 226.5 MB, free: 1.91 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007942/0.2313, allocations: 336.7 kB / 226.8 MB, free: 1.562 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.2313, allocations: 8 kB / 226.8 MB, free: 1.555 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.168e-05/0.2314, allocations: 12 kB / 226.9 MB, free: 1.543 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.2314, allocations: 8 kB / 226.9 MB, free: 1.535 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006058/0.232, allocations: 239 kB / 227.1 MB, free: 1.301 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.2346, allocations: 1.148 MB / 228.3 MB, free: 88 kB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007547/0.2354, allocations: 238.7 kB / 228.5 MB, free: 15.84 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.2357, allocations: 96.84 kB / 228.6 MB, free: 15.75 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.2357, allocations: 4.438 kB / 228.6 MB, free: 15.74 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.2358, allocations: 38.56 kB / 228.6 MB, free: 15.7 MB / 202.7 MB Notification: Performance of pre-optimization done (n=26): time 3.222e-06/0.2358, allocations: 0 / 228.6 MB, free: 15.7 MB / 202.7 MB Notification: Performance of matching and sorting (n=28): time 0.002049/0.2378, allocations: 0.9342 MB / 229.6 MB, free: 14.66 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.997e-05/0.238, allocations: 110.8 kB / 229.7 MB, free: 14.53 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004262/0.2384, allocations: 274.7 kB / 229.9 MB, free: 14.26 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.2385, allocations: 33.7 kB / 230 MB, free: 14.22 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.2387, allocations: 258.5 kB / 230.2 MB, free: 13.97 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.2388, allocations: 110.5 kB / 230.3 MB, free: 13.86 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.516e-05/0.2388, allocations: 8 kB / 230.3 MB, free: 13.85 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.239, allocations: 326.8 kB / 230.7 MB, free: 13.52 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.2393, allocations: 97.08 kB / 230.7 MB, free: 13.43 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003441/0.2396, allocations: 161.9 kB / 230.9 MB, free: 13.25 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.24, allocations: 108 kB / 231 MB, free: 13.14 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.49e-06/0.24, allocations: 0 / 231 MB, free: 13.14 MB / 202.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007377/0.2407, allocations: 321.3 kB / 231.3 MB, free: 12.82 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2408, allocations: 4 kB / 231.3 MB, free: 12.82 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.42e-06/0.2408, allocations: 0 / 231.3 MB, free: 12.82 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.2408, allocations: 4.094 kB / 231.3 MB, free: 12.82 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007393/0.2415, allocations: 155.8 kB / 231.5 MB, free: 12.66 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.2416, allocations: 4 kB / 231.5 MB, free: 12.66 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.2419, allocations: 39.91 kB / 231.5 MB, free: 12.62 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.242, allocations: 12 kB / 231.5 MB, free: 12.61 MB / 202.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.000153/0.2422, allocations: 136.8 kB / 231.7 MB, free: 12.47 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.93e-05/0.2423, allocations: 31.62 kB / 231.7 MB, free: 12.44 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.979e-05/0.2424, allocations: 39.77 kB / 231.7 MB, free: 12.39 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.311e-06/0.2424, allocations: 0 / 231.7 MB, free: 12.39 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.955e-06/0.2424, allocations: 7.984 kB / 231.7 MB, free: 12.39 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.2424, allocations: 0 / 231.7 MB, free: 12.39 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.244, allocations: 0.7749 MB / 232.5 MB, free: 11.55 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.893e-06/0.244, allocations: 0 / 232.5 MB, free: 11.55 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005761/0.2446, allocations: 99.86 kB / 232.6 MB, free: 11.45 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.823e-06/0.2446, allocations: 4.125 kB / 232.6 MB, free: 11.45 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.2447, allocations: 8 kB / 232.6 MB, free: 11.44 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.337e-06/0.2447, allocations: 4 kB / 232.6 MB, free: 11.43 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.623e-06/0.2447, allocations: 3.953 kB / 232.6 MB, free: 11.43 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009881/0.2457, allocations: 0.5262 MB / 233.2 MB, free: 10.85 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.2458, allocations: 112.8 kB / 233.3 MB, free: 10.72 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.648e-05/0.2459, allocations: 8 kB / 233.3 MB, free: 10.71 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000468/0.2464, allocations: 55.95 kB / 233.3 MB, free: 10.66 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.886e-05/0.2465, allocations: 23.83 kB / 233.4 MB, free: 10.64 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.299e-05/0.2466, allocations: 11.98 kB / 233.4 MB, free: 10.62 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.00034/0.2469, allocations: 214.2 kB / 233.6 MB, free: 10.41 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.85e-07/0.2469, allocations: 0 / 233.6 MB, free: 10.41 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0005154/0.2474, allocations: 80 kB / 233.7 MB, free: 10.34 MB / 202.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.0001809/0.2476, allocations: 119.1 kB / 233.8 MB, free: 10.21 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.000593/0.2482, allocations: 231.9 kB / 234 MB, free: 9.98 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.404e-06/0.2483, allocations: 0 / 234 MB, free: 9.98 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.2486, allocations: 119.9 kB / 234.1 MB, free: 9.863 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005701/0.2492, allocations: 74.48 kB / 234.2 MB, free: 9.797 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/0.2516, allocations: 0.9188 MB / 235.1 MB, free: 8.84 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005498/0.2522, allocations: 0.8074 MB / 235.9 MB, free: 8.004 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.2523, allocations: 31.38 kB / 236 MB, free: 7.973 MB / 202.7 MB Notification: Performance of SimCode: time 1.73e-06/0.2523, allocations: 4 kB / 236 MB, free: 7.969 MB / 202.7 MB Notification: Performance of Templates: time 0.01113/0.2635, allocations: 4.465 MB / 240.4 MB, free: 3.512 MB / 202.7 MB