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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001235, allocations: 118.4 kB / 17.78 MB, free: 5.266 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.001232/0.001232, allocations: 183 kB / 18.71 MB, free: 4.344 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.376/1.376, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2141/0.2141, allocations: 44.18 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 67.89 kB / 470.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3802, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2374/0.6176, allocations: 177.1 MB / 0.6914 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0106/0.6283, allocations: 6.509 MB / 0.6978 GB, free: 3.793 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.6296, allocations: 19.88 kB / 0.6978 GB, free: 3.773 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001554/0.6311, allocations: 441.5 kB / 0.6982 GB, free: 3.34 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006078/0.6373, allocations: 1.768 MB / 0.6999 GB, free: 1.57 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004537/0.6419, allocations: 1.527 MB / 0.7014 GB, free: 48 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003069/0.6449, allocations: 2.231 MB / 0.7036 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001403/0.6464, allocations: 0.7733 MB / 0.7044 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003876/0.6502, allocations: 1.76 MB / 0.7061 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003122/0.6534, allocations: 1.582 MB / 0.7076 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003565/0.6538, allocations: 100 kB / 0.7077 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003282/0.6571, allocations: 1.337 MB / 0.709 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.6581, allocations: 0.686 MB / 0.7097 GB, free: 7.551 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.6598, allocations: 0.7587 MB / 0.7104 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00484/0.6647, allocations: 2.622 MB / 0.713 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.6647, allocations: 4 kB / 0.713 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.923e-06/0.6647, allocations: 4 kB / 0.713 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.127e-05/0.6648, allocations: 0 / 0.713 GB, free: 4.152 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.005519/0.6703, allocations: 1.703 MB / 0.7147 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.6704, allocations: 8.031 kB / 0.7147 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007411/0.6711, allocations: 180.8 kB / 0.7148 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002492/0.6737, allocations: 310.3 kB / 0.7151 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/0.6764, allocations: 0.7727 MB / 0.7159 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/0.6767, allocations: 141.4 kB / 0.716 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004635/0.6772, allocations: 100 kB / 0.7161 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2941/0.9713, allocations: 1.835 MB / 0.7179 GB, free: 189.3 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.218e-05/0.9714, allocations: 9.078 kB / 0.7179 GB, free: 189.3 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.9715, allocations: 45.39 kB / 0.718 GB, free: 189.3 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001754/0.9717, allocations: 95.16 kB / 0.7181 GB, free: 189.3 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003159/0.9749, allocations: 1.696 MB / 0.7197 GB, free: 188.7 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.009747/0.9846, allocations: 6.874 MB / 0.7264 GB, free: 184.1 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.9862, allocations: 0.8738 MB / 0.7273 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008414/0.9871, allocations: 458 kB / 0.7277 GB, free: 183.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.9873, allocations: 109.6 kB / 0.7278 GB, free: 183.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.9873, allocations: 45.03 kB / 0.7279 GB, free: 183.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 2.154e-06/0.9873, allocations: 0 / 0.7279 GB, free: 183.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72): time 0.01118/0.9985, allocations: 4.114 MB / 0.7319 GB, free: 181 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.9986, allocations: 111 kB / 0.732 GB, free: 180.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/1, allocations: 1.109 MB / 0.7331 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001021/1, allocations: 44.05 kB / 0.7331 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003354/1.001, allocations: 0.5125 MB / 0.7336 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/1.001, allocations: 269.7 kB / 0.7339 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000401/1.001, allocations: 213.4 kB / 0.7341 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001075/1.001, allocations: 355 kB / 0.7344 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/1.002, allocations: 0.5819 MB / 0.735 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/1.004, allocations: 0.8719 MB / 0.7358 GB, free: 178.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002256/1.006, allocations: 1.449 MB / 0.7372 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/1.006, allocations: 2.094 kB / 0.7373 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003426/1.009, allocations: 2.007 MB / 0.7392 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/1.009, allocations: 7.938 kB / 0.7392 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/1.009, allocations: 11.92 kB / 0.7392 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004257/1.014, allocations: 1.342 MB / 0.7405 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006153/1.014, allocations: 142.3 kB / 0.7407 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002616/1.017, allocations: 1.933 MB / 0.7426 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009564/1.018, allocations: 43.78 kB / 0.7426 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/1.018, allocations: 68.73 kB / 0.7427 GB, free: 174.3 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.0006325/1.019, allocations: 393.4 kB / 0.743 GB, free: 173.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/1.019, allocations: 110.8 kB / 0.7432 GB, free: 173.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/1.021, allocations: 1.507 MB / 0.7446 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/1.021, allocations: 8 kB / 0.7446 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/1.021, allocations: 0 / 0.7446 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-06/1.021, allocations: 3.984 kB / 0.7446 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/1.024, allocations: 2.692 MB / 0.7473 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.024, allocations: 0 / 0.7473 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/1.026, allocations: 327.5 kB / 0.7476 GB, free: 169.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/1.026, allocations: 68.78 kB / 0.7476 GB, free: 169.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.717e-05/1.026, allocations: 35.98 kB / 0.7477 GB, free: 169.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001863/1.028, allocations: 3.035 MB / 0.7506 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.028, allocations: 3.938 kB / 0.7506 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/1.03, allocations: 1.907 MB / 0.7525 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005651/1.031, allocations: 335.7 kB / 0.7528 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/1.031, allocations: 27.98 kB / 0.7529 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008057/1.032, allocations: 51.05 kB / 0.7529 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/1.032, allocations: 64.77 kB / 0.753 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/1.032, allocations: 63.94 kB / 0.753 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008093/1.033, allocations: 0.7969 MB / 0.7538 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/1.033, allocations: 1.5 kB / 0.7538 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001534/1.035, allocations: 479.9 kB / 0.7543 GB, free: 162.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.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 (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004462/1.039, allocations: 3.108 MB / 0.7573 GB, free: 159 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002506/1.042, allocations: 1.473 MB / 0.7587 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/1.042, allocations: 4.656 kB / 0.7587 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001395/1.043, allocations: 0.8585 MB / 0.7596 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003117/1.046, allocations: 0.7606 MB / 0.7603 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/1.062, allocations: 12.93 MB / 0.7729 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005656/1.062, allocations: 1.183 MB / 0.7741 GB, free: 141.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00128/1.064, allocations: 485.6 kB / 0.7746 GB, free: 141 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005727/1.064, allocations: 447.3 kB / 0.775 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of SimCode: time 9.22e-07/1.064, allocations: 4 kB / 0.775 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07676/1.141, allocations: 50.72 MB / 0.8245 GB, free: 90.21 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/15.12, allocations: 4.375 kB / 0.8245 GB, free: 90.2 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > 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