Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009673/0.0009673, allocations: 140.3 kB / 24.89 MB, free: 9.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9096/0.9096, allocations: 173.3 MB / 201.5 MB, free: 9.16 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.Xi.[0-9,]+.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.Xi.[0-9,]+.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 268.5 MB, free: 6.109 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.526e-05/1.672e-05, allocations: 6.25 kB / 268.5 MB, free: 6.102 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.1265/0.1265, allocations: 24.98 MB / 293.5 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.129, allocations: 2.438 MB / 295.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1291, allocations: 7.344 kB / 295.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003674/0.1295, allocations: 124.8 kB / 296.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004776/0.13, allocations: 397.2 kB / 296.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009832/0.1398, allocations: 6.231 MB / 302.7 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009657/0.1408, allocations: 1.15 MB / 303.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.1409, allocations: 102.6 kB / 303.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003273/0.1442, allocations: 3.525 MB / 307.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.1445, allocations: 360.4 kB / 307.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.854e-05/0.1446, allocations: 55.53 kB / 307.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009511/0.1541, allocations: 9.43 MB / 317.3 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.1542, allocations: 245.9 kB / 317.5 MB, free: 6.059 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.1544, allocations: 240.5 kB / 317.8 MB, free: 5.836 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004505/0.1589, allocations: 6.13 MB / 323.9 MB, free: 60 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1589, allocations: 0 / 323.9 MB, free: 60 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1589, allocations: 3.984 kB / 323.9 MB, free: 56 kB / 266.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1589, allocations: 0 / 323.9 MB, free: 56 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001586/0.1605, allocations: 1.245 MB / 325.1 MB, free: 14.8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.1605, allocations: 12.03 kB / 325.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.1608, allocations: 104.8 kB / 325.3 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.161, allocations: 252 kB / 325.5 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.1611, allocations: 37 kB / 325.5 MB, free: 14.4 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.186e-05/0.1611, allocations: 51.31 kB / 325.6 MB, free: 14.35 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005896/0.1617, allocations: 0.6247 MB / 326.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1617, allocations: 3.953 kB / 326.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.1617, allocations: 23.98 kB / 326.2 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.1618, allocations: 12 kB / 326.3 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004189/0.1622, allocations: 258 kB / 326.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005214/0.1674, allocations: 3.113 MB / 329.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004779/0.1679, allocations: 314.2 kB / 329.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.168, allocations: 99.23 kB / 330 MB, free: 9.922 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004091/0.1721, allocations: 2.4 MB / 332.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.1721, allocations: 47.05 kB / 332.5 MB, free: 7.508 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 1.583e-06/0.1721, allocations: 8 kB / 332.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.002511/0.1746, allocations: 1.228 MB / 333.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.455e-05/0.1746, allocations: 66.84 kB / 333.8 MB, free: 6.191 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.1748, allocations: 225.9 kB / 334 MB, free: 5.98 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.1748, allocations: 37.7 kB / 334 MB, free: 5.938 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.1749, allocations: 198.5 kB / 334.2 MB, free: 5.746 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.679e-05/0.1749, allocations: 203.1 kB / 334.4 MB, free: 5.559 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.1751, allocations: 111.8 kB / 334.5 MB, free: 5.453 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.186e-05/0.1751, allocations: 343.2 kB / 334.9 MB, free: 5.125 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.603e-05/0.1752, allocations: 68.11 kB / 334.9 MB, free: 5.059 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.1755, allocations: 175.8 kB / 335.1 MB, free: 4.863 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004298/0.1759, allocations: 312.3 kB / 335.4 MB, free: 4.535 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1759, allocations: 0 / 335.4 MB, free: 4.535 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000923/0.1768, allocations: 423.3 kB / 335.8 MB, free: 4.094 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1768, allocations: 14.91 kB / 335.8 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1768, allocations: 3.984 kB / 335.8 MB, free: 4.078 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002337/0.1771, allocations: 85.91 kB / 335.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003089/0.1774, allocations: 135.8 kB / 336.1 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.1786, allocations: 2.951 MB / 339 MB, free: 0.707 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.1787, allocations: 12 kB / 339 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/0.1787, allocations: 23.98 kB / 339 MB, free: 0.6719 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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 {2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.1789, allocations: 144.5 kB / 339.2 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.179, allocations: 87.47 kB / 339.3 MB, free: 444 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006321/0.1797, allocations: 0.5112 MB / 339.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1797, allocations: 4 kB / 339.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.1797, allocations: 8.031 kB / 339.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003779/0.1801, allocations: 471.3 kB / 340.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007913/0.1808, allocations: 0.7396 MB / 341 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1809, allocations: 0 / 341 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.1811, allocations: 111.9 kB / 341.1 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004607/0.1816, allocations: 135.6 kB / 341.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/0.1816, allocations: 23.92 kB / 341.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002015/0.1818, allocations: 0.602 MB / 341.9 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1818, allocations: 3.938 kB / 341.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006769/0.1825, allocations: 0.5627 MB / 342.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.276e-05/0.1825, allocations: 31.81 kB / 342.5 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.1826, allocations: 12 kB / 342.5 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.1827, allocations: 19.98 kB / 342.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.1828, allocations: 40.36 kB / 342.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/0.1828, allocations: 19.98 kB / 342.6 MB, free: 13.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.858e-05/0.1829, allocations: 87.86 kB / 342.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1829, allocations: 0 / 342.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002154/0.185, allocations: 1.29 MB / 343.9 MB, free: 11.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003083/0.1881, allocations: 1.871 MB / 345.8 MB, free: 9.938 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005852/0.1887, allocations: 0.5148 MB / 346.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.1887, allocations: 4 kB / 346.3 MB, free: 9.398 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.1889, allocations: 153.8 kB / 346.5 MB, free: 9.242 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005403/0.1894, allocations: 234.4 kB / 346.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.1906, allocations: 0.8862 MB / 347.6 MB, free: 8.117 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.706e-05/0.1907, allocations: 130.9 kB / 347.7 MB, free: 7.973 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002449/0.191, allocations: 99.38 kB / 347.8 MB, free: 7.871 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004518/0.1914, allocations: 257 kB / 348.1 MB, free: 7.617 MB / 298.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1914, allocations: 0 / 348.1 MB, free: 7.617 MB / 298.7 MB Notification: Performance of Templates: time 0.04516/0.2366, allocations: 49.49 MB / 397.6 MB, free: 6.293 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.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: 6.303822283633053]