Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.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.001473/0.001473, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001047/0.001047, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9949/0.9949, allocations: 173.3 MB / 201.1 MB, free: 9.332 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.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2") translateModel(Modelica.Media.Examples.ReferenceAir.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.495e-05/2.662e-05, allocations: 2.312 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.01173/0.01175, allocations: 12.91 MB / 280.9 MB, free: 9.445 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.0143, allocations: 2.2 MB / 283.1 MB, free: 7.238 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002684/0.01457, allocations: 11.88 kB / 283.1 MB, free: 7.227 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004746/0.01504, allocations: 147 kB / 283.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.01607, allocations: 0.5125 MB / 283.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003125/0.01919, allocations: 1.489 MB / 285.3 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.02045, allocations: 1.338 MB / 286.6 MB, free: 3.727 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.02067, allocations: 111 kB / 286.7 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008548/0.02153, allocations: 0.6587 MB / 287.4 MB, free: 2.957 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005027/0.02203, allocations: 370.9 kB / 287.7 MB, free: 2.594 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.596e-05/0.02211, allocations: 44 kB / 287.8 MB, free: 2.551 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001128/0.02324, allocations: 0.6944 MB / 288.5 MB, free: 1.855 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.02338, allocations: 143.5 kB / 288.6 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.02357, allocations: 211.6 kB / 288.8 MB, free: 1.508 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.02462, allocations: 0.8649 MB / 289.7 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.02462, allocations: 0 / 289.7 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.02463, allocations: 4 kB / 289.7 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.02463, allocations: 4 kB / 289.7 MB, free: 0.6328 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.112/0.1367, allocations: 0.7876 MB / 290.5 MB, free: 23.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.1367, allocations: 7.5 kB / 290.5 MB, free: 23.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005322/0.1372, allocations: 163.3 kB / 290.6 MB, free: 23.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004657/0.1377, allocations: 292.3 kB / 290.9 MB, free: 23.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.1377, allocations: 33.3 kB / 291 MB, free: 23.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.1378, allocations: 40.72 kB / 291 MB, free: 23.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005142/0.1383, allocations: 0.6129 MB / 291.6 MB, free: 22.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.1383, allocations: 6.188 kB / 291.6 MB, free: 22.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.1384, allocations: 18.53 kB / 291.6 MB, free: 22.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.1384, allocations: 15.75 kB / 291.7 MB, free: 22.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.1387, allocations: 195.9 kB / 291.8 MB, free: 22.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007302/0.146, allocations: 5.156 MB / 297 MB, free: 20.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000349/0.1463, allocations: 207.9 kB / 297.2 MB, free: 20.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.1465, allocations: 102.7 kB / 297.3 MB, free: 20.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004826/0.1513, allocations: 2.701 MB / 300 MB, free: 20.31 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.1513, allocations: 39.67 kB / 300 MB, free: 20.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.224e-06/0.1513, allocations: 0 / 300 MB, free: 20.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.005747/0.1571, allocations: 2.004 MB / 302 MB, free: 19.92 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.315e-05/0.1571, allocations: 57.38 kB / 302.1 MB, free: 19.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.1573, allocations: 311 kB / 302.4 MB, free: 19.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.1573, allocations: 37.92 kB / 302.4 MB, free: 19.65 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.249e-05/0.1574, allocations: 277 kB / 302.7 MB, free: 19.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.519e-05/0.1575, allocations: 172.3 kB / 302.9 MB, free: 19.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.1576, allocations: 101.4 kB / 303 MB, free: 19.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.757e-05/0.1577, allocations: 0.5161 MB / 303.5 MB, free: 18.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.1578, allocations: 92.97 kB / 303.6 MB, free: 18.81 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.158, allocations: 260.7 kB / 303.8 MB, free: 18.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.1583, allocations: 390.8 kB / 304.2 MB, free: 18.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1583, allocations: 0 / 304.2 MB, free: 18.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005755/0.1589, allocations: 490.4 kB / 304.7 MB, free: 18.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.1589, allocations: 6.625 kB / 304.7 MB, free: 18.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1589, allocations: 8.344 kB / 304.7 MB, free: 18.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003652/0.1626, allocations: 1.85 MB / 306.6 MB, free: 17.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.1628, allocations: 108.3 kB / 306.7 MB, free: 17.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009939/0.1638, allocations: 3.381 MB / 310.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.1639, allocations: 21.41 kB / 310.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.1639, allocations: 25.41 kB / 310.1 MB, free: 14.22 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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): 3 systems {(2,1), (2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.1641, allocations: 183.2 kB / 310.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.037e-05/0.1641, allocations: 56.33 kB / 310.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005764/0.1647, allocations: 0.5775 MB / 310.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1647, allocations: 14.89 kB / 310.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.1647, allocations: 2.594 kB / 310.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004501/0.1652, allocations: 0.6909 MB / 311.6 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000987/0.1661, allocations: 1.068 MB / 312.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.1661, allocations: 0 / 312.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.1663, allocations: 80.8 kB / 312.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001444/0.1678, allocations: 0.5543 MB / 313.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.016e-05/0.1678, allocations: 8 kB / 313.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003518/0.1681, allocations: 1.643 MB / 315 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1681, allocations: 8 kB / 315 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006479/0.1688, allocations: 0.8141 MB / 315.8 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.502e-05/0.1688, allocations: 43.78 kB / 315.8 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.088e-05/0.1689, allocations: 4 kB / 315.8 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.169, allocations: 12 kB / 315.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.474e-05/0.169, allocations: 31.94 kB / 315.9 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.965e-05/0.169, allocations: 19.98 kB / 315.9 MB, free: 9.191 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.179e-05/0.1691, allocations: 205.1 kB / 316.1 MB, free: 8.988 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1691, allocations: 0 / 316.1 MB, free: 8.988 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000537/0.1696, allocations: 237.8 kB / 316.3 MB, free: 8.758 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004325/0.1701, allocations: 283.8 kB / 316.6 MB, free: 8.496 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006373/0.1707, allocations: 0.5838 MB / 317.2 MB, free: 7.906 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1707, allocations: 1.859 kB / 317.2 MB, free: 7.906 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.1711, allocations: 293 kB / 317.5 MB, free: 7.629 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006148/0.1717, allocations: 214.6 kB / 317.7 MB, free: 7.426 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.1731, allocations: 1.011 MB / 318.7 MB, free: 6.402 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.72e-05/0.1731, allocations: 122.8 kB / 318.8 MB, free: 6.262 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.1733, allocations: 67.08 kB / 318.9 MB, free: 6.199 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.61e-05/0.1733, allocations: 40.48 kB / 318.9 MB, free: 6.16 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1733, allocations: 0 / 318.9 MB, free: 6.16 MB / 266.7 MB Notification: Performance of Templates: time 0.01349/0.1868, allocations: 12.02 MB / 330.9 MB, free: 10.37 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.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: 3.947113516740501]