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.001599/0.001599, allocations: 113.4 kB / 17.78 MB, free: 5.262 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.001842/0.001842, allocations: 184.9 kB / 18.71 MB, free: 4.34 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.464/1.464, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2186/0.2186, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 63.91 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4298/0.4316, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2146/0.6463, allocations: 177.1 MB / 0.6914 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.009579/0.6559, allocations: 6.513 MB / 0.6978 GB, free: 3.82 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009832/0.6569, allocations: 19.88 kB / 0.6978 GB, free: 3.801 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.6584, allocations: 429.6 kB / 0.6982 GB, free: 3.379 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005089/0.6635, allocations: 1.74 MB / 0.6999 GB, free: 1.637 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004451/0.668, allocations: 1.518 MB / 0.7014 GB, free: 124 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003184/0.6712, allocations: 2.235 MB / 0.7036 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001575/0.6728, allocations: 0.7616 MB / 0.7043 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004248/0.6771, allocations: 1.756 MB / 0.706 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003537/0.6806, allocations: 1.574 MB / 0.7076 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0005746/0.6812, allocations: 104 kB / 0.7077 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004075/0.6853, allocations: 1.333 MB / 0.709 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001126/0.6864, allocations: 0.6898 MB / 0.7096 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001934/0.6884, allocations: 0.7626 MB / 0.7104 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005177/0.6936, allocations: 2.618 MB / 0.7129 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.6936, allocations: 0 / 0.7129 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.695e-06/0.6936, allocations: 0 / 0.7129 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.458e-05/0.6937, allocations: 0 / 0.7129 GB, free: 4.25 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.006575/0.7003, allocations: 1.711 MB / 0.7146 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.326e-05/0.7004, allocations: 12.03 kB / 0.7146 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006655/0.701, allocations: 176.9 kB / 0.7148 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.7029, allocations: 314.2 kB / 0.7151 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.705, allocations: 0.7688 MB / 0.7158 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.7052, allocations: 141.4 kB / 0.716 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002664/0.7054, allocations: 104 kB / 0.7161 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3257/1.031, allocations: 1.833 MB / 0.7179 GB, free: 189.3 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.352e-05/1.031, allocations: 6.062 kB / 0.7179 GB, free: 189.3 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001945/1.032, allocations: 48.56 kB / 0.7179 GB, free: 189.3 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002333/1.032, allocations: 99.77 kB / 0.718 GB, free: 189.3 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003861/1.036, allocations: 1.695 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.01169/1.047, allocations: 6.876 MB / 0.7264 GB, free: 184.1 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/1.049, allocations: 0.8752 MB / 0.7272 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006746/1.049, allocations: 454.9 kB / 0.7277 GB, free: 183.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001285/1.05, allocations: 100.5 kB / 0.7278 GB, free: 183.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.349e-05/1.05, allocations: 46.47 kB / 0.7278 GB, free: 183.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 2.825e-06/1.05, allocations: 0 / 0.7278 GB, free: 183.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72): time 0.01116/1.061, allocations: 4.122 MB / 0.7318 GB, free: 181 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/1.061, allocations: 111.1 kB / 0.7319 GB, free: 180.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/1.062, allocations: 1.108 MB / 0.733 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001076/1.063, allocations: 44.17 kB / 0.7331 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003611/1.063, allocations: 0.5156 MB / 0.7336 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/1.063, allocations: 265.4 kB / 0.7338 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003883/1.063, allocations: 210.3 kB / 0.734 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.025e-05/1.064, allocations: 349.8 kB / 0.7344 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009067/1.064, allocations: 0.5869 MB / 0.7349 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009813/1.065, allocations: 0.8704 MB / 0.7358 GB, free: 178.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001825/1.067, allocations: 1.45 MB / 0.7372 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/1.067, allocations: 2.625 kB / 0.7372 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003078/1.07, allocations: 2.012 MB / 0.7392 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/1.07, allocations: 7.906 kB / 0.7392 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/1.07, allocations: 7.938 kB / 0.7392 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004281/1.075, allocations: 1.347 MB / 0.7405 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005637/1.075, allocations: 140.7 kB / 0.7406 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002441/1.078, allocations: 1.926 MB / 0.7425 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009592/1.079, allocations: 43.22 kB / 0.7425 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/1.079, allocations: 66.55 kB / 0.7426 GB, free: 174.4 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.0007336/1.08, allocations: 397.4 kB / 0.743 GB, free: 174 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/1.08, allocations: 110.8 kB / 0.7431 GB, free: 173.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002095/1.082, allocations: 1.507 MB / 0.7446 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/1.082, allocations: 11.94 kB / 0.7446 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/1.082, allocations: 0 / 0.7446 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/1.082, allocations: 7.672 kB / 0.7446 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003544/1.086, allocations: 2.694 MB / 0.7472 GB, free: 169.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/1.086, allocations: 0 / 0.7472 GB, free: 169.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/1.087, allocations: 331.3 kB / 0.7475 GB, free: 169.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001688/1.087, allocations: 68.78 kB / 0.7476 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-05/1.087, allocations: 35.97 kB / 0.7476 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001729/1.089, allocations: 3.025 MB / 0.7506 GB, free: 166 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.089, allocations: 0 / 0.7506 GB, free: 166 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/1.092, allocations: 1.904 MB / 0.7524 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006965/1.092, allocations: 339.5 kB / 0.7528 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/1.092, allocations: 27.92 kB / 0.7528 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008337/1.093, allocations: 49.45 kB / 0.7528 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/1.093, allocations: 64.56 kB / 0.7529 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/1.094, allocations: 68.64 kB / 0.753 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008322/1.094, allocations: 0.7892 MB / 0.7537 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.094, allocations: 0 / 0.7537 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001445/1.096, allocations: 481.3 kB / 0.7542 GB, free: 162.2 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.004034/1.1, allocations: 3.107 MB / 0.7572 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002325/1.102, allocations: 1.477 MB / 0.7587 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.102, allocations: 4.656 kB / 0.7587 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001403/1.104, allocations: 0.8585 MB / 0.7595 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003259/1.107, allocations: 0.7642 MB / 0.7603 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01557/1.123, allocations: 12.93 MB / 0.7729 GB, free: 142.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005801/1.123, allocations: 1.183 MB / 0.774 GB, free: 141.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001381/1.125, allocations: 489.4 kB / 0.7745 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000608/1.125, allocations: 443.3 kB / 0.7749 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.472e-06/1.125, allocations: 0 / 0.7749 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08572/1.211, allocations: 51.42 MB / 0.8252 GB, free: 89.62 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/15.05, allocations: 448 / 0.8252 GB, free: 89.62 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