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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009871/0.0009872, allocations: 90.66 kB / 16.31 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 182.8 kB / 17.21 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 223.2 MB / 241.2 MB, free: 5.273 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002633/0.0002635, allocations: 9.906 kB / 300.8 MB, free: 5.547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09044/0.09072, allocations: 50.42 MB / 351.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03247/0.1232, allocations: 34.61 MB / 385.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005417/0.1287, allocations: 4.291 MB / 390.1 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004851/0.1292, allocations: 4 kB / 390.1 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009047/0.1301, allocations: 222.7 kB / 390.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.1314, allocations: 461.6 kB / 390.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004051/0.1355, allocations: 1.289 MB / 392.1 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001858/0.1373, allocations: 1.612 MB / 393.7 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003114/0.1377, allocations: 122.6 kB / 393.8 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007737/0.1385, allocations: 406.5 kB / 394.2 MB, free: 364 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006448/0.1391, allocations: 398.5 kB / 394.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.102e-05/0.1392, allocations: 20 kB / 394.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00151/0.1407, allocations: 0.7062 MB / 395.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.1409, allocations: 99.67 kB / 395.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.1411, allocations: 129.5 kB / 395.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.1421, allocations: 0.7559 MB / 396.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1421, allocations: 0 / 396.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1421, allocations: 0 / 396.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.1421, allocations: 0 / 396.3 MB, free: 14.25 MB / 334.1 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.001118/0.1433, allocations: 0.69 MB / 397 MB, free: 13.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1433, allocations: 8.031 kB / 397 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006047/0.1439, allocations: 79.41 kB / 397.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005072/0.1444, allocations: 330.3 kB / 397.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.1445, allocations: 29 kB / 397.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.1445, allocations: 36 kB / 397.5 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007162/0.1453, allocations: 467.5 kB / 397.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.1453, allocations: 0 / 397.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.372e-05/0.1453, allocations: 23.98 kB / 397.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1454, allocations: 12 kB / 398 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005078/0.1459, allocations: 303.7 kB / 398.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0124/0.1583, allocations: 6.734 MB / 405 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.1588, allocations: 268.4 kB / 405.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.159, allocations: 152.8 kB / 405.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009544/0.1685, allocations: 3.889 MB / 409.3 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.1686, allocations: 42.56 kB / 409.3 MB, free: 188 kB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.053e-06/0.1686, allocations: 0 / 409.3 MB, free: 188 kB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.0112/0.1798, allocations: 2.493 MB / 411.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.1799, allocations: 59.39 kB / 411.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/0.1802, allocations: 295.3 kB / 412.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.1802, allocations: 37.69 kB / 412.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.1804, allocations: 224 kB / 412.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.1805, allocations: 153.7 kB / 412.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.179e-05/0.1805, allocations: 12 kB / 412.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1807, allocations: 346.8 kB / 412.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000256/0.1809, allocations: 157.1 kB / 413.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.1812, allocations: 277.8 kB / 413.4 MB, free: 12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.1816, allocations: 200.7 kB / 413.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1816, allocations: 4 kB / 413.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001036/0.1826, allocations: 0.584 MB / 414.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.1827, allocations: 11.95 kB / 414.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.1827, allocations: 4 kB / 414.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005781/0.1885, allocations: 0.7638 MB / 414.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004004/0.1889, allocations: 107.8 kB / 415 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001855/0.1908, allocations: 2.467 MB / 417.5 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.1911, allocations: 40.02 kB / 417.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.1912, allocations: 23.98 kB / 417.5 MB, free: 7.586 MB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002197/0.1914, allocations: 173.7 kB / 417.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.715e-05/0.1915, allocations: 39.53 kB / 417.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.1927, allocations: 0.8514 MB / 418.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.1927, allocations: 11.98 kB / 418.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.1927, allocations: 3.938 kB / 418.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009596/0.1937, allocations: 0.9689 MB / 419.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002005/0.1957, allocations: 1.485 MB / 421.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.1957, allocations: 7.938 kB / 421.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.196, allocations: 79.94 kB / 421.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003135/0.1992, allocations: 0.6257 MB / 421.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.093e-05/0.1992, allocations: 15.98 kB / 421.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008849/0.2001, allocations: 1.28 MB / 423.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2001, allocations: 0 / 423.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.2016, allocations: 1.219 MB / 424.3 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.2018, allocations: 120.6 kB / 424.4 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.125e-05/0.2018, allocations: 15.98 kB / 424.4 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002844/0.2021, allocations: 27.86 kB / 424.5 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.265e-05/0.2022, allocations: 31.95 kB / 424.5 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-05/0.2022, allocations: 15.98 kB / 424.5 MB, free: 364 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002143/0.2025, allocations: 213.9 kB / 424.7 MB, free: 144 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2025, allocations: 0 / 424.7 MB, free: 144 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.1628/0.3653, allocations: 234.3 kB / 424.9 MB, free: 70.73 MB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007171/0.366, allocations: 273 kB / 425.2 MB, free: 70.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.3672, allocations: 0.6868 MB / 425.9 MB, free: 70.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.3672, allocations: 1.469 kB / 425.9 MB, free: 70.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008251/0.368, allocations: 431.4 kB / 426.3 MB, free: 70.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.3693, allocations: 228.5 kB / 426.5 MB, free: 70.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.3711, allocations: 1.472 MB / 428 MB, free: 69.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.3713, allocations: 0.8376 MB / 428.9 MB, free: 69.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003108/0.3716, allocations: 68.02 kB / 428.9 MB, free: 69.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.792e-05/0.3717, allocations: 39.98 kB / 429 MB, free: 69.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3717, allocations: 0 / 429 MB, free: 69.21 MB / 350.1 MB Notification: Performance of Templates: time 0.0195/0.3912, allocations: 11.83 MB / 440.8 MB, free: 64.93 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (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) 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) Reference file matches