Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_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.00112/0.00112, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.001241/0.001241, allocations: 187 kB / 18.66 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 56.2 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09571/0.09681, allocations: 46.63 MB / 374.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3637/0.4605, allocations: 175.5 MB / 0.5373 GB, free: 15.84 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004145/0.4647, allocations: 3.838 MB / 0.5411 GB, free: 11.99 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.465, allocations: 4 kB / 0.5411 GB, free: 11.98 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007146/0.4657, allocations: 242.7 kB / 0.5413 GB, free: 11.75 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005539/0.4663, allocations: 370 kB / 0.5416 GB, free: 11.38 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.4675, allocations: 0.5435 MB / 0.5422 GB, free: 10.84 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009673/0.4685, allocations: 1.099 MB / 0.5432 GB, free: 9.738 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003629/0.4689, allocations: 293.5 kB / 0.5435 GB, free: 9.453 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002929/0.4718, allocations: 1.304 MB / 0.5448 GB, free: 8.148 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005289/0.4724, allocations: 394.8 kB / 0.5452 GB, free: 7.762 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.4725, allocations: 71.98 kB / 0.5452 GB, free: 7.691 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009803/0.4735, allocations: 475.1 kB / 0.5457 GB, free: 7.227 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003426/0.4738, allocations: 442.9 kB / 0.5461 GB, free: 6.793 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004758/0.4743, allocations: 494.2 kB / 0.5466 GB, free: 6.309 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001639/0.476, allocations: 1.549 MB / 0.5481 GB, free: 4.758 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.476, allocations: 0 / 0.5481 GB, free: 4.758 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.476, allocations: 0 / 0.5481 GB, free: 4.758 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.476, allocations: 0 / 0.5481 GB, free: 4.758 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001686/0.4777, allocations: 1.09 MB / 0.5492 GB, free: 3.617 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.4778, allocations: 8.031 kB / 0.5492 GB, free: 3.609 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001372/0.4779, allocations: 118.5 kB / 0.5493 GB, free: 3.484 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006296/0.4785, allocations: 155.4 kB / 0.5494 GB, free: 3.332 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007202/0.4793, allocations: 484.9 kB / 0.5499 GB, free: 2.816 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.4793, allocations: 49.31 kB / 0.5499 GB, free: 2.766 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.4794, allocations: 68 kB / 0.55 GB, free: 2.699 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.4808, allocations: 0.9513 MB / 0.5509 GB, free: 1.742 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/0.4808, allocations: 10.62 kB / 0.5509 GB, free: 1.734 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-05/0.4809, allocations: 35.98 kB / 0.551 GB, free: 1.699 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.327e-05/0.4809, allocations: 37.98 kB / 0.551 GB, free: 1.664 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.4821, allocations: 0.8706 MB / 0.5519 GB, free: 0.7891 MB / 478.1 MB 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.1829/0.665, allocations: 3.395 MB / 0.5552 GB, free: 168.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000989/0.666, allocations: 0.6363 MB / 0.5558 GB, free: 168.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004646/0.6665, allocations: 358.8 kB / 0.5562 GB, free: 168.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.12e-05/0.6666, allocations: 21.19 kB / 0.5562 GB, free: 168.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.6666, allocations: 44.22 kB / 0.5562 GB, free: 168.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 2.835e-06/0.6666, allocations: 3.938 kB / 0.5562 GB, free: 168.6 MB / 478.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.01426/0.6809, allocations: 6.083 MB / 0.5622 GB, free: 165.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.681, allocations: 59.95 kB / 0.5622 GB, free: 165.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006884/0.6816, allocations: 0.5473 MB / 0.5627 GB, free: 165 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.001e-05/0.6817, allocations: 43.33 kB / 0.5628 GB, free: 164.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.6819, allocations: 285.6 kB / 0.5631 GB, free: 164.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001616/0.6821, allocations: 268.8 kB / 0.5633 GB, free: 164.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.6823, allocations: 144.4 kB / 0.5635 GB, free: 164.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.633e-05/0.6824, allocations: 373.6 kB / 0.5638 GB, free: 164.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006079/0.683, allocations: 445 kB / 0.5642 GB, free: 164 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000657/0.6837, allocations: 0.5146 MB / 0.5647 GB, free: 163.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.6849, allocations: 0.9721 MB / 0.5657 GB, free: 163.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.6849, allocations: 1.312 kB / 0.5657 GB, free: 163.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001881/0.6868, allocations: 1.345 MB / 0.567 GB, free: 162.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.6868, allocations: 6.656 kB / 0.567 GB, free: 162.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.6869, allocations: 1.406 kB / 0.567 GB, free: 162.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005915/0.6875, allocations: 338 kB / 0.5673 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000943/0.6884, allocations: 180.3 kB / 0.5675 GB, free: 162.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005862/0.6943, allocations: 10.96 MB / 0.5782 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005809/0.6949, allocations: 23.72 kB / 0.5782 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.437e-05/0.695, allocations: 41.84 kB / 0.5783 GB, free: 151.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (80): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * 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): 8 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004949/0.6955, allocations: 274.7 kB / 0.5785 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.6957, allocations: 65.75 kB / 0.5786 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.6978, allocations: 1.29 MB / 0.5799 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.6978, allocations: 11.97 kB / 0.5799 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.6978, allocations: 0.6562 kB / 0.5799 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001842/0.6997, allocations: 1.606 MB / 0.5814 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003739/0.7034, allocations: 2.269 MB / 0.5837 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.7034, allocations: 0 / 0.5837 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.7045, allocations: 220 kB / 0.5839 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001885/0.7047, allocations: 66.2 kB / 0.5839 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.566e-05/0.7048, allocations: 41.08 kB / 0.584 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.7059, allocations: 1.537 MB / 0.5855 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.7059, allocations: 5.5 kB / 0.5855 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002227/0.7081, allocations: 1.597 MB / 0.587 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.7083, allocations: 141.7 kB / 0.5872 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.7085, allocations: 30.77 kB / 0.5872 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006639/0.7091, allocations: 45.34 kB / 0.5872 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.7093, allocations: 52.17 kB / 0.5873 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.995e-05/0.7094, allocations: 66.91 kB / 0.5874 GB, free: 146.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004313/0.7098, allocations: 405.2 kB / 0.5877 GB, free: 146 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7098, allocations: 2.516 kB / 0.5877 GB, free: 146 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001196/0.711, allocations: 336.7 kB / 0.5881 GB, free: 146 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (77): * Single equations (assignments): 76 * 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): 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.003381/0.7144, allocations: 2.617 MB / 0.5906 GB, free: 144.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.7164, allocations: 1.89 MB / 0.5925 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.7164, allocations: 0 / 0.5925 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007682/0.7172, allocations: 0.6906 MB / 0.5931 GB, free: 142.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.7193, allocations: 0.5065 MB / 0.5936 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009235/0.7285, allocations: 8.752 MB / 0.6022 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.729, allocations: 0.9749 MB / 0.6031 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008627/0.7298, allocations: 273.7 kB / 0.6034 GB, free: 132.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003748/0.7302, allocations: 275.3 kB / 0.6037 GB, free: 131.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.193e-06/0.7302, allocations: 0 / 0.6037 GB, free: 131.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05348/0.7837, allocations: 33.9 MB / 0.6368 GB, free: 97.89 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.49, allocations: 4 kB / 0.6368 GB, free: 97.89 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches