Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 171.5 kB / 25.33 MB, free: 9.051 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8866/0.8866, allocations: 158.6 MB / 187.2 MB, free: 2.441 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.92e-05/2.045e-05, allocations: 2.312 kB / 251 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003106/0.003127, allocations: 3.074 MB / 254.1 MB, free: 0.5 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.004537, allocations: 0.9979 MB / 255.1 MB, free: 15.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.004736, allocations: 27.81 kB / 255.1 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003185/0.005055, allocations: 87.17 kB / 255.2 MB, free: 15.38 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.005245, allocations: 111 kB / 255.3 MB, free: 15.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007633/0.006008, allocations: 243.5 kB / 255.6 MB, free: 15.03 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004382/0.006447, allocations: 0.5377 MB / 256.1 MB, free: 14.49 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.006664, allocations: 109.7 kB / 256.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.006883, allocations: 283.4 kB / 256.5 MB, free: 14.1 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.007059, allocations: 155.5 kB / 256.6 MB, free: 13.95 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.007109, allocations: 40 kB / 256.7 MB, free: 13.91 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.212e-05/0.007151, allocations: 40 kB / 256.7 MB, free: 13.87 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.918e-05/0.00724, allocations: 115.5 kB / 256.8 MB, free: 13.76 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.007347, allocations: 135.7 kB / 256.9 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003391/0.007686, allocations: 350.5 kB / 257.3 MB, free: 13.28 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.007689, allocations: 3.984 kB / 257.3 MB, free: 13.28 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.007691, allocations: 0 / 257.3 MB, free: 13.28 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.007698, allocations: 0 / 257.3 MB, free: 13.28 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0007868/0.008484, allocations: 0.7842 MB / 258.1 MB, free: 12.46 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.008525, allocations: 11.98 kB / 258.1 MB, free: 12.45 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.411e-05/0.008619, allocations: 80.61 kB / 258.2 MB, free: 12.37 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003554/0.008974, allocations: 328.2 kB / 258.5 MB, free: 12.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/0.009007, allocations: 33.31 kB / 258.5 MB, free: 11.99 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.927e-05/0.009067, allocations: 40.38 kB / 258.6 MB, free: 11.95 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.009544, allocations: 397.2 kB / 258.9 MB, free: 11.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.009562, allocations: 8.078 kB / 259 MB, free: 11.51 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/0.009588, allocations: 16.38 kB / 259 MB, free: 11.49 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.009604, allocations: 11.94 kB / 259 MB, free: 11.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.009843, allocations: 161.8 kB / 259.1 MB, free: 11.32 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.01114, allocations: 1.588 MB / 260.7 MB, free: 9.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000349/0.01149, allocations: 186.1 kB / 260.9 MB, free: 9.469 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.66e-05/0.01159, allocations: 71.53 kB / 261 MB, free: 9.395 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.01162, allocations: 8 kB / 261 MB, free: 9.387 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.01164, allocations: 41.39 kB / 261 MB, free: 9.336 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.403e-06/0.01164, allocations: 0 / 261 MB, free: 9.336 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.001217/0.01286, allocations: 0.7834 MB / 261.8 MB, free: 8.492 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.01291, allocations: 85.05 kB / 261.9 MB, free: 8.391 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002667/0.01318, allocations: 378.6 kB / 262.3 MB, free: 8.008 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.0132, allocations: 29.7 kB / 262.3 MB, free: 7.973 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.01335, allocations: 295.2 kB / 262.6 MB, free: 7.68 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003583/0.01371, allocations: 119.2 kB / 262.7 MB, free: 7.562 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.849e-05/0.0138, allocations: 87.84 kB / 262.8 MB, free: 7.465 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.01395, allocations: 0.5235 MB / 263.3 MB, free: 6.93 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.01405, allocations: 69.64 kB / 263.4 MB, free: 6.859 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.01422, allocations: 199.5 kB / 263.6 MB, free: 6.613 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/0.01446, allocations: 225.6 kB / 263.8 MB, free: 6.355 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.01447, allocations: 8 kB / 263.8 MB, free: 6.348 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003547/0.01482, allocations: 309.1 kB / 264.1 MB, free: 6.039 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.01484, allocations: 11.94 kB / 264.1 MB, free: 6.027 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.01484, allocations: 0 / 264.1 MB, free: 6.027 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.01486, allocations: 4 kB / 264.1 MB, free: 6.023 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003749/0.01523, allocations: 172 kB / 264.3 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008489/0.01608, allocations: 1.841 MB / 266.1 MB, free: 3.891 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.01622, allocations: 28.11 kB / 266.2 MB, free: 3.863 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.01624, allocations: 16 kB / 266.2 MB, free: 3.848 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001682/0.01641, allocations: 195.8 kB / 266.4 MB, free: 3.652 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000159/0.01657, allocations: 199.5 kB / 266.6 MB, free: 3.414 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002358/0.01681, allocations: 237.3 kB / 266.8 MB, free: 3.145 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.422e-06/0.01681, allocations: 0 / 266.8 MB, free: 3.145 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003309/0.01714, allocations: 313 kB / 267.1 MB, free: 2.832 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.01715, allocations: 8 kB / 267.1 MB, free: 2.824 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-06/0.01715, allocations: 0 / 267.1 MB, free: 2.824 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.226e-06/0.01716, allocations: 4 kB / 267.1 MB, free: 2.82 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.01739, allocations: 116.1 kB / 267.2 MB, free: 2.707 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.406e-06/0.01739, allocations: 4 kB / 267.2 MB, free: 2.703 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.0175, allocations: 23.98 kB / 267.2 MB, free: 2.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.01751, allocations: 19.94 kB / 267.3 MB, free: 2.66 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.01764, allocations: 287.9 kB / 267.5 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.024e-05/0.01769, allocations: 47.77 kB / 267.6 MB, free: 2.324 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.796e-05/0.01774, allocations: 48.14 kB / 267.6 MB, free: 2.277 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.01774, allocations: 4 kB / 267.6 MB, free: 2.273 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.01774, allocations: 3.984 kB / 267.6 MB, free: 2.27 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.01775, allocations: 4 kB / 267.7 MB, free: 2.266 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006793/0.01843, allocations: 0.675 MB / 268.3 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.01843, allocations: 8 kB / 268.3 MB, free: 1.523 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.01862, allocations: 71.89 kB / 268.4 MB, free: 1.453 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.01863, allocations: 0 / 268.4 MB, free: 1.453 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.01864, allocations: 8 kB / 268.4 MB, free: 1.445 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.01865, allocations: 7.938 kB / 268.4 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01865, allocations: 4.125 kB / 268.4 MB, free: 1.434 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000395/0.01904, allocations: 479.5 kB / 268.9 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.704e-05/0.01913, allocations: 51.73 kB / 268.9 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.01915, allocations: 8 kB / 269 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.01927, allocations: 27.91 kB / 269 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.576e-05/0.01933, allocations: 39.83 kB / 269 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.01934, allocations: 4 kB / 269 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001496/0.01949, allocations: 247.1 kB / 269.3 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01949, allocations: 0 / 269.3 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003268/0.01982, allocations: 140 kB / 269.4 MB, free: 432 kB / 250.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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001017/0.01992, allocations: 111.1 kB / 269.5 MB, free: 308 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.02101, allocations: 393.5 kB / 269.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.02101, allocations: 0 / 269.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.02113, allocations: 99.72 kB / 270 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.02152, allocations: 105 kB / 270.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.02281, allocations: 0.891 MB / 271 MB, free: 14.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.263e-05/0.02289, allocations: 113.7 kB / 271.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000137/0.02302, allocations: 51.25 kB / 271.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.479e-05/0.02311, allocations: 32.5 kB / 271.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.02311, allocations: 0 / 271.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of Templates: time 0.006729/0.02984, allocations: 4.871 MB / 276 MB, free: 9.73 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.878473557997495]