Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 106.5 kB / 18.46 MB, free: 4.613 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.001019/0.001019, allocations: 183.3 kB / 19.39 MB, free: 3.691 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.363/1.363, allocations: 222.9 MB / 243.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2145/0.2145, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 63.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3117, allocations: 60.82 MB / 0.5196 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.1914/0.5031, allocations: 177.1 MB / 0.6926 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.008945/0.512, allocations: 6.509 MB / 0.6989 GB, free: 3.789 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000832/0.5129, allocations: 23.88 kB / 0.6989 GB, free: 3.766 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.5142, allocations: 437.5 kB / 0.6994 GB, free: 3.336 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004351/0.5186, allocations: 1.778 MB / 0.7011 GB, free: 1.559 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003732/0.5224, allocations: 1.522 MB / 0.7026 GB, free: 40 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002757/0.5251, allocations: 2.235 MB / 0.7048 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.5264, allocations: 0.7655 MB / 0.7055 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003672/0.5301, allocations: 1.764 MB / 0.7072 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002803/0.5329, allocations: 1.578 MB / 0.7088 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003077/0.5333, allocations: 100 kB / 0.7089 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.536, allocations: 1.337 MB / 0.7102 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0007875/0.5368, allocations: 0.6859 MB / 0.7108 GB, free: 7.547 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001327/0.5382, allocations: 0.7626 MB / 0.7116 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003861/0.542, allocations: 2.625 MB / 0.7142 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.542, allocations: 3.938 kB / 0.7142 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.512e-06/0.5421, allocations: 0 / 0.7142 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.214e-05/0.5421, allocations: 0 / 0.7142 GB, free: 4.145 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.004492/0.5466, allocations: 1.744 MB / 0.7159 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.5467, allocations: 12.03 kB / 0.7159 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001689/0.5484, allocations: 311 kB / 0.7162 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/0.5498, allocations: 0.7771 MB / 0.7169 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001493/0.55, allocations: 149.4 kB / 0.7171 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001942/0.5502, allocations: 96 kB / 0.7172 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2472/0.7974, allocations: 1.835 MB / 0.719 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.718e-05/0.7975, allocations: 6.094 kB / 0.719 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001809/0.7977, allocations: 52.08 kB / 0.719 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001819/0.7979, allocations: 95.02 kB / 0.7191 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/0.8008, allocations: 1.698 MB / 0.7208 GB, free: 189.1 MB / 0.5606 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009085/0.8099, allocations: 6.888 MB / 0.7275 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.8112, allocations: 0.8758 MB / 0.7283 GB, free: 183.9 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005933/0.8118, allocations: 453.8 kB / 0.7288 GB, free: 183.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.733e-05/0.8119, allocations: 108.7 kB / 0.7289 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.8119, allocations: 45.53 kB / 0.7289 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 3.056e-06/0.8119, allocations: 0 / 0.7289 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72): time 0.01072/0.8226, allocations: 4.13 MB / 0.733 GB, free: 181.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.8227, allocations: 113.7 kB / 0.7331 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001329/0.824, allocations: 1.114 MB / 0.7342 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.567e-05/0.8242, allocations: 44.55 kB / 0.7342 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002852/0.8244, allocations: 0.5283 MB / 0.7347 GB, free: 180.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001608/0.8246, allocations: 275.8 kB / 0.735 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003277/0.8249, allocations: 211.8 kB / 0.7352 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.114e-05/0.825, allocations: 352.6 kB / 0.7355 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008586/0.8259, allocations: 0.5866 MB / 0.7361 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009949/0.8269, allocations: 0.8711 MB / 0.7369 GB, free: 178.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/0.8287, allocations: 1.444 MB / 0.7383 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.8287, allocations: 5.906 kB / 0.7384 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002845/0.8316, allocations: 2.014 MB / 0.7403 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.8316, allocations: 7.906 kB / 0.7403 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.8316, allocations: 7.938 kB / 0.7403 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00436/0.836, allocations: 1.346 MB / 0.7416 GB, free: 176 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005933/0.8366, allocations: 146.6 kB / 0.7418 GB, free: 176 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.8389, allocations: 1.928 MB / 0.7437 GB, free: 174.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009192/0.8399, allocations: 43.97 kB / 0.7437 GB, free: 174.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.921e-05/0.84, allocations: 71.98 kB / 0.7438 GB, free: 174.5 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0005435/0.8405, allocations: 389.4 kB / 0.7442 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.8407, allocations: 115.3 kB / 0.7443 GB, free: 174 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.8428, allocations: 1.512 MB / 0.7457 GB, free: 172.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.8428, allocations: 3.984 kB / 0.7457 GB, free: 172.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.8428, allocations: 0 / 0.7457 GB, free: 172.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004583/0.8433, allocations: 340.2 kB / 0.7461 GB, free: 172.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/0.8435, allocations: 24 kB / 0.7461 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009233/0.8444, allocations: 51.94 kB / 0.7461 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.8446, allocations: 56.52 kB / 0.7462 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002857/0.8474, allocations: 1.488 MB / 0.7476 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002241/0.8497, allocations: 2.001 MB / 0.7496 GB, free: 168.5 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006424/0.8503, allocations: 0.575 MB / 0.7502 GB, free: 168 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007861/0.8511, allocations: 0.7931 MB / 0.7509 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of Backend: time 2.91e-07/0.8511, allocations: 0 / 0.7509 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003983/0.8551, allocations: 1.737 MB / 0.7526 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of SimCode: time 0.004401/0.8595, allocations: 3.37 MB / 0.7559 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.04282/0.9024, allocations: 40.05 MB / 0.795 GB, free: 122.2 MB / 0.5606 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches