Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.0009316/0.0009316, 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.001276/0.001276, 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.878/0.878, allocations: 173.3 MB / 201.1 MB, free: 9.348 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.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.Xi.[0-9,]+.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.[0-9,]+.|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.Xi.[0-9,]+.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.[0-9,]+.|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.503e-05/1.685e-05, allocations: 6.25 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.1231/0.1231, allocations: 26.01 MB / 294 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003132/0.1263, allocations: 2.699 MB / 296.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002602/0.1265, allocations: 11.06 kB / 296.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004635/0.127, allocations: 162.2 kB / 296.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008/0.1278, allocations: 0.5494 MB / 297.4 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01261/0.1404, allocations: 6.898 MB / 304.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001533/0.1419, allocations: 1.618 MB / 305.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.1422, allocations: 149.7 kB / 306.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007459/0.1429, allocations: 0.8289 MB / 306.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004984/0.1434, allocations: 0.5317 MB / 307.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.921e-05/0.1435, allocations: 84.38 kB / 307.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009515/0.153, allocations: 8.955 MB / 316.5 MB, free: 7.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002197/0.1532, allocations: 358.2 kB / 316.8 MB, free: 7.242 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002555/0.1535, allocations: 334.2 kB / 317.2 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005607/0.1591, allocations: 6.322 MB / 323.5 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1591, allocations: 0 / 323.5 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1591, allocations: 0 / 323.5 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.086e-06/0.1591, allocations: 3.984 kB / 323.5 MB, free: 0.8945 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.001754/0.1609, allocations: 1.571 MB / 325.1 MB, free: 15.28 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1609, allocations: 8.922 kB / 325.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003291/0.1612, allocations: 162.8 kB / 325.2 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004245/0.1616, allocations: 388.3 kB / 325.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.1617, allocations: 45.31 kB / 325.7 MB, free: 14.67 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.204e-05/0.1618, allocations: 72 kB / 325.7 MB, free: 14.6 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009451/0.1627, allocations: 0.8804 MB / 326.6 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.1627, allocations: 11.94 kB / 326.6 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.699e-05/0.1628, allocations: 28 kB / 326.6 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.1628, allocations: 23.88 kB / 326.7 MB, free: 13.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007846/0.1636, allocations: 0.4954 MB / 327.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006408/0.17, allocations: 3.883 MB / 331 MB, free: 9.168 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008314/0.1708, allocations: 471.8 kB / 331.5 MB, free: 8.699 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.1711, allocations: 217.2 kB / 331.7 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004577/0.1756, allocations: 2.569 MB / 334.3 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.1757, allocations: 49.98 kB / 334.3 MB, free: 5.859 MB / 282.7 MB Notification: Performance of pre-optimization done (n=78): time 1.934e-06/0.1757, allocations: 0 / 334.3 MB, free: 5.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=88): time 0.004183/0.1799, allocations: 2.199 MB / 336.5 MB, free: 3.645 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.1799, allocations: 64.39 kB / 336.6 MB, free: 3.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.1801, allocations: 324.2 kB / 336.9 MB, free: 3.234 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.137e-05/0.1802, allocations: 45.7 kB / 337 MB, free: 3.184 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1803, allocations: 295.8 kB / 337.2 MB, free: 2.887 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.1804, allocations: 318 kB / 337.6 MB, free: 2.582 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.1806, allocations: 164.3 kB / 337.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1807, allocations: 0.5274 MB / 338.2 MB, free: 1.871 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/0.181, allocations: 165.9 kB / 338.4 MB, free: 1.711 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004276/0.1814, allocations: 323.3 kB / 338.7 MB, free: 1.352 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007914/0.1822, allocations: 0.5341 MB / 339.3 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1822, allocations: 0 / 339.3 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001301/0.1835, allocations: 0.8076 MB / 340.1 MB, free: 15.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.1835, allocations: 8 kB / 340.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1835, allocations: 4 kB / 340.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003853/0.1839, allocations: 134.6 kB / 340.2 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.1843, allocations: 187.8 kB / 340.4 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/0.1863, allocations: 5.308 MB / 345.7 MB, free: 9.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.1865, allocations: 20 kB / 345.7 MB, free: 9.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-05/0.1865, allocations: 43.98 kB / 345.8 MB, free: 9.922 MB / 298.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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {2, 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.0001643/0.1867, allocations: 208.3 kB / 346 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002678/0.187, allocations: 150.9 kB / 346.1 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.1882, allocations: 0.9651 MB / 347.1 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1882, allocations: 11.94 kB / 347.1 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-06/0.1882, allocations: 0 / 347.1 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008878/0.1891, allocations: 0.9973 MB / 348.1 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.1906, allocations: 1.365 MB / 349.5 MB, free: 6.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1906, allocations: 4 kB / 349.5 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.191, allocations: 167.7 kB / 349.6 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009512/0.1919, allocations: 279 kB / 349.9 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.926e-05/0.192, allocations: 31.98 kB / 349.9 MB, free: 5.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000535/0.1925, allocations: 1.825 MB / 351.7 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1925, allocations: 3.984 kB / 351.8 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.1938, allocations: 1.034 MB / 352.8 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.312e-05/0.1939, allocations: 47.78 kB / 352.8 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.428e-05/0.1939, allocations: 23.98 kB / 352.9 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.1942, allocations: 27.98 kB / 352.9 MB, free: 2.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.464e-05/0.1942, allocations: 56.89 kB / 352.9 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.146e-05/0.1943, allocations: 43.97 kB / 353 MB, free: 2.371 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001554/0.1944, allocations: 239 kB / 353.2 MB, free: 2.133 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1944, allocations: 0 / 353.2 MB, free: 2.133 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002232/0.1967, allocations: 1.356 MB / 354.6 MB, free: 0.7734 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003382/0.2, allocations: 1.817 MB / 356.4 MB, free: 15.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.2011, allocations: 0.9108 MB / 357.3 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.2011, allocations: 4.062 kB / 357.3 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004285/0.2015, allocations: 342.5 kB / 357.6 MB, free: 13.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008739/0.2024, allocations: 357.4 kB / 358 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001883/0.2043, allocations: 1.337 MB / 359.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.2044, allocations: 161 kB / 359.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003972/0.2048, allocations: 176.9 kB / 359.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.2049, allocations: 80.47 kB / 359.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2049, allocations: 4 kB / 359.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of Templates: time 0.05779/0.2627, allocations: 56.39 MB / 416.1 MB, free: 3.457 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.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: 9.75478114420548]