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.001461/0.001461, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.001482/0.001482, allocations: 149.4 kB / 24.26 MB, free: 184 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 1.455/1.455, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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.613e-06/1.613e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.589e-05/2.75e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1515/0.1516, allocations: 33.76 MB / 301.1 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004397/0.156, allocations: 4.162 MB / 305.2 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000247/0.1562, allocations: 9.625 kB / 305.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007182/0.1569, allocations: 285.8 kB / 305.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007864/0.1577, allocations: 0.4946 MB / 306 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003772/0.1615, allocations: 1.673 MB / 307.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.1627, allocations: 1.286 MB / 309 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.1629, allocations: 116.8 kB / 309.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006886/0.1636, allocations: 0.6404 MB / 309.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004747/0.1641, allocations: 371.4 kB / 310.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.631e-05/0.1641, allocations: 46.19 kB / 310.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.1653, allocations: 0.7315 MB / 310.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.1654, allocations: 149.7 kB / 311 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.1656, allocations: 209 kB / 311.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.1667, allocations: 1.177 MB / 312.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.1667, allocations: 0 / 312.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1667, allocations: 0 / 312.4 MB, free: 9.805 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1667, allocations: 0 / 312.4 MB, free: 9.805 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.0009148/0.1676, allocations: 0.7132 MB / 313.1 MB, free: 9.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.1677, allocations: 8.375 kB / 313.1 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006092/0.1683, allocations: 166.6 kB / 313.3 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004295/0.1687, allocations: 291.8 kB / 313.6 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.1687, allocations: 34.66 kB / 313.6 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.889e-05/0.1688, allocations: 40 kB / 313.7 MB, free: 8.855 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006193/0.1694, allocations: 0.6628 MB / 314.3 MB, free: 8.266 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.1694, allocations: 192 / 314.3 MB, free: 8.266 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.1695, allocations: 17.59 kB / 314.3 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.1695, allocations: 14.66 kB / 314.3 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003904/0.1699, allocations: 310 kB / 314.7 MB, free: 8.098 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.1812, allocations: 4.581 MB / 319.2 MB, free: 5.195 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003975/0.1816, allocations: 258.8 kB / 319.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.1818, allocations: 138.1 kB / 319.6 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009151/0.1909, allocations: 2.699 MB / 322.3 MB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.191, allocations: 38.56 kB / 322.4 MB, free: 2.164 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.993e-06/0.191, allocations: 0 / 322.4 MB, free: 2.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.01101/0.202, allocations: 2.31 MB / 324.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.202, allocations: 59.41 kB / 324.7 MB, free: 15.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004273/0.2025, allocations: 285.7 kB / 325 MB, free: 15.47 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.808e-05/0.2025, allocations: 37.7 kB / 325 MB, free: 15.43 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.2027, allocations: 228.4 kB / 325.3 MB, free: 15.2 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.2029, allocations: 166.6 kB / 325.4 MB, free: 15.03 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.203, allocations: 102.3 kB / 325.5 MB, free: 14.93 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.2032, allocations: 342.8 kB / 325.9 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.2035, allocations: 153.2 kB / 326 MB, free: 14.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004112/0.2039, allocations: 276.7 kB / 326.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007702/0.2047, allocations: 473.2 kB / 326.7 MB, free: 13.6 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2047, allocations: 8 kB / 326.8 MB, free: 13.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001276/0.206, allocations: 0.6054 MB / 327.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.206, allocations: 8.031 kB / 327.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.206, allocations: 8 kB / 327.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008925/0.2149, allocations: 1.851 MB / 329.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005007/0.2154, allocations: 103.8 kB / 329.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/0.2181, allocations: 2.444 MB / 331.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.2184, allocations: 16 kB / 331.8 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.17e-05/0.2184, allocations: 20 kB / 331.8 MB, free: 8.387 MB / 282.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.0002786/0.2187, allocations: 173.7 kB / 332 MB, free: 8.207 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.2188, allocations: 59.92 kB / 332 MB, free: 8.148 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/0.2204, allocations: 0.865 MB / 332.9 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.2204, allocations: 15.92 kB / 332.9 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2204, allocations: 0 / 332.9 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001287/0.2217, allocations: 0.975 MB / 333.9 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.224, allocations: 1.355 MB / 335.2 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.224, allocations: 0 / 335.2 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000342/0.2243, allocations: 75.91 kB / 335.3 MB, free: 4.727 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003753/0.2281, allocations: 0.6334 MB / 335.9 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.675e-05/0.2281, allocations: 12 kB / 336 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/0.2294, allocations: 1.3 MB / 337.3 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2294, allocations: 32 / 337.3 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.2314, allocations: 1.263 MB / 338.5 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.339e-05/0.2315, allocations: 38.61 kB / 338.6 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/0.2315, allocations: 12 kB / 338.6 MB, free: 1.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.2318, allocations: 12 kB / 338.6 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.869e-05/0.2318, allocations: 27.94 kB / 338.6 MB, free: 1.352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.2319, allocations: 19.98 kB / 338.6 MB, free: 1.332 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002351/0.2321, allocations: 189.2 kB / 338.8 MB, free: 1.145 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2321, allocations: 0 / 338.8 MB, free: 1.145 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008559/0.233, allocations: 235.8 kB / 339 MB, free: 0.9141 MB / 282.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.0007428/0.2337, allocations: 290.7 kB / 339.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.2351, allocations: 0.6839 MB / 340 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2351, allocations: 0 / 340 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.2362, allocations: 429.1 kB / 340.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.2374, allocations: 223.6 kB / 340.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.2394, allocations: 1.128 MB / 341.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.2397, allocations: 233.3 kB / 342 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002813/0.2399, allocations: 63.36 kB / 342.1 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.2401, allocations: 44.48 kB / 342.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.2401, allocations: 0 / 342.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of Templates: time 0.02268/0.2627, allocations: 11.95 MB / 354.1 MB, free: 1.996 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.90287328697741]