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.001127/0.001127, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.001096/0.001096, allocations: 169 kB / 25.69 MB, free: 8.445 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.8991/0.8991, allocations: 158.6 MB / 187.6 MB, free: 2.801 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.483e-06/1.483e-06, allocations: 0 / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.35e-05/1.498e-05, allocations: 2.312 kB / 251.5 MB, free: 7.285 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003583/0.003598, allocations: 3.044 MB / 254.5 MB, free: 4.215 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.005008, allocations: 1.033 MB / 255.6 MB, free: 3.172 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001939/0.005202, allocations: 15.88 kB / 255.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002612/0.005463, allocations: 87.17 kB / 255.7 MB, free: 3.07 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001738/0.005637, allocations: 118.9 kB / 255.8 MB, free: 2.953 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.005989, allocations: 239.4 kB / 256 MB, free: 2.719 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003667/0.006356, allocations: 0.5261 MB / 256.6 MB, free: 2.191 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.006533, allocations: 118.3 kB / 256.7 MB, free: 2.07 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.006751, allocations: 287.3 kB / 257 MB, free: 1.789 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00017/0.006921, allocations: 159.5 kB / 257.1 MB, free: 1.633 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.006968, allocations: 40 kB / 257.1 MB, free: 1.594 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.638e-05/0.007004, allocations: 47.94 kB / 257.2 MB, free: 1.547 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.497e-05/0.007079, allocations: 103.6 kB / 257.3 MB, free: 1.445 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.027e-05/0.00717, allocations: 143.6 kB / 257.4 MB, free: 1.305 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002901/0.00746, allocations: 346.6 kB / 257.8 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.182e-06/0.007461, allocations: 0 / 257.8 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.01e-07/0.007461, allocations: 0 / 257.8 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.007465, allocations: 0 / 257.8 MB, free: 0.9648 MB / 234.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.0006101/0.008076, allocations: 0.6672 MB / 258.4 MB, free: 280 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.572e-05/0.008101, allocations: 11.98 kB / 258.5 MB, free: 268 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.133e-05/0.008163, allocations: 64.89 kB / 258.5 MB, free: 204 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.00845, allocations: 281.6 kB / 258.8 MB, free: 15.9 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.008475, allocations: 29.38 kB / 258.8 MB, free: 15.87 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.008517, allocations: 36.38 kB / 258.9 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.008845, allocations: 368.1 kB / 259.2 MB, free: 15.44 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.008859, allocations: 4.188 kB / 259.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.00888, allocations: 16.38 kB / 259.2 MB, free: 15.42 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.008888, allocations: 11.94 kB / 259.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001455/0.009034, allocations: 121.7 kB / 259.4 MB, free: 15.29 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009627/0.009996, allocations: 1.097 MB / 260.5 MB, free: 14.14 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002409/0.01024, allocations: 208 kB / 260.7 MB, free: 13.93 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.689e-05/0.01029, allocations: 48.83 kB / 260.7 MB, free: 13.88 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.01031, allocations: 8 kB / 260.7 MB, free: 13.87 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.01033, allocations: 34.56 kB / 260.8 MB, free: 13.82 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.263e-06/0.01033, allocations: 3.938 kB / 260.8 MB, free: 13.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0007567/0.01109, allocations: 0.6346 MB / 261.4 MB, free: 13.13 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.01112, allocations: 81.11 kB / 261.5 MB, free: 13.04 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.01129, allocations: 315.2 kB / 261.8 MB, free: 12.72 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.0113, allocations: 33.7 kB / 261.8 MB, free: 12.68 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/0.01138, allocations: 213.1 kB / 262 MB, free: 12.46 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.576e-05/0.01144, allocations: 123 kB / 262.1 MB, free: 12.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.01e-05/0.01151, allocations: 74.16 kB / 262.2 MB, free: 12.26 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.155e-05/0.01159, allocations: 350.7 kB / 262.6 MB, free: 11.91 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.816e-05/0.01166, allocations: 57.66 kB / 262.6 MB, free: 11.85 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.01177, allocations: 147.2 kB / 262.8 MB, free: 11.67 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.01193, allocations: 201.6 kB / 263 MB, free: 11.44 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.01193, allocations: 0 / 263 MB, free: 11.44 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002184/0.01215, allocations: 228.2 kB / 263.2 MB, free: 11.21 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.01216, allocations: 4 kB / 263.2 MB, free: 11.21 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.01217, allocations: 4 kB / 263.2 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.01218, allocations: 7.938 kB / 263.2 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.01251, allocations: 159.8 kB / 263.3 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006694/0.01318, allocations: 1.239 MB / 264.6 MB, free: 9.715 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.01331, allocations: 27.98 kB / 264.6 MB, free: 9.688 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.01333, allocations: 15.98 kB / 264.6 MB, free: 9.672 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001157/0.01344, allocations: 134.8 kB / 264.8 MB, free: 9.535 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001034/0.01355, allocations: 155.2 kB / 264.9 MB, free: 9.352 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000157/0.0137, allocations: 182.5 kB / 265.1 MB, free: 9.145 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.465e-06/0.01371, allocations: 4 kB / 265.1 MB, free: 9.141 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002008/0.01391, allocations: 224.2 kB / 265.3 MB, free: 8.914 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.923e-06/0.01391, allocations: 8 kB / 265.3 MB, free: 8.906 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-06/0.01392, allocations: 0 / 265.3 MB, free: 8.906 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.847e-06/0.01392, allocations: 4 kB / 265.3 MB, free: 8.902 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.01412, allocations: 115.8 kB / 265.4 MB, free: 8.789 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.01412, allocations: 4 kB / 265.4 MB, free: 8.785 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.835e-05/0.01422, allocations: 28.19 kB / 265.5 MB, free: 8.758 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.01423, allocations: 16 kB / 265.5 MB, free: 8.742 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 (PI.I.local_reset,integrator.local_reset,kinematicPTP.noWphase) * 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 8.337e-05/0.01432, allocations: 208.1 kB / 265.7 MB, free: 8.531 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.787e-05/0.01435, allocations: 35.91 kB / 265.7 MB, free: 8.496 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.0144, allocations: 40.14 kB / 265.8 MB, free: 8.457 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.0144, allocations: 4 kB / 265.8 MB, free: 8.453 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.0144, allocations: 3.938 kB / 265.8 MB, free: 8.449 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.0144, allocations: 3.984 kB / 265.8 MB, free: 8.445 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004871/0.01489, allocations: 0.4974 MB / 266.3 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.01489, allocations: 4 kB / 266.3 MB, free: 7.906 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.01507, allocations: 71.89 kB / 266.3 MB, free: 7.836 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.01507, allocations: 0 / 266.3 MB, free: 7.836 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.01508, allocations: 8 kB / 266.4 MB, free: 7.828 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.01508, allocations: 4 kB / 266.4 MB, free: 7.824 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01508, allocations: 0 / 266.4 MB, free: 7.824 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002689/0.01535, allocations: 398.6 kB / 266.7 MB, free: 7.406 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.01541, allocations: 35.72 kB / 266.8 MB, free: 7.371 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.01543, allocations: 12.03 kB / 266.8 MB, free: 7.359 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.01554, allocations: 27.97 kB / 266.8 MB, free: 7.332 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.01558, allocations: 23.95 kB / 266.8 MB, free: 7.309 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.01559, allocations: 7.938 kB / 266.9 MB, free: 7.301 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.515e-05/0.01568, allocations: 124.7 kB / 267 MB, free: 7.176 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01568, allocations: 0 / 267 MB, free: 7.176 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002704/0.01595, allocations: 136 kB / 267.1 MB, free: 7.043 MB / 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 7.311e-05/0.01602, allocations: 84.36 kB / 267.2 MB, free: 6.953 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004139/0.01644, allocations: 335.6 kB / 267.5 MB, free: 6.617 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.361e-06/0.01644, allocations: 4 kB / 267.5 MB, free: 6.613 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.144e-05/0.01652, allocations: 89.72 kB / 267.6 MB, free: 6.523 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.01682, allocations: 117.7 kB / 267.7 MB, free: 6.414 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009973/0.01781, allocations: 0.8097 MB / 268.5 MB, free: 5.559 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.301e-05/0.01788, allocations: 109.7 kB / 268.6 MB, free: 5.434 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.018, allocations: 59.23 kB / 268.7 MB, free: 5.379 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/0.01817, allocations: 127.3 kB / 268.8 MB, free: 5.254 MB / 250.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01817, allocations: 0 / 268.8 MB, free: 5.254 MB / 250.7 MB Notification: Performance of Templates: time 0.006754/0.02493, allocations: 5.228 MB / 274.1 MB, free: 68 kB / 250.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.696625698823482]