Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",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.002145/0.002145, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.002354/0.002354, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.287/2.287, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001705/0.001705, allocations: 55.92 kB / 280.8 MB, free: 3.059 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1128, allocations: 46.63 MB / 327.4 MB, free: 4.359 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.6417/0.7545, allocations: 175.6 MB / 0.4912 GB, free: 7.363 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008155/0.7628, allocations: 3.844 MB / 0.495 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007421/0.7636, allocations: 4 kB / 0.495 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.7652, allocations: 222.7 kB / 0.4952 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001926/0.7672, allocations: 370 kB / 0.4956 GB, free: 2.922 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002742/0.77, allocations: 0.5316 MB / 0.4961 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002249/0.7723, allocations: 1.103 MB / 0.4972 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004147/0.7727, allocations: 107 kB / 0.4973 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004821/0.7775, allocations: 1.257 MB / 0.4985 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001055/0.7786, allocations: 334.8 kB / 0.4988 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002716/0.7789, allocations: 48 kB / 0.4989 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002125/0.781, allocations: 0.5303 MB / 0.4994 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005475/0.7816, allocations: 231.4 kB / 0.4996 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.7827, allocations: 314.9 kB / 0.4999 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002636/0.7853, allocations: 1.102 MB / 0.501 GB, free: 13.38 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.7853, allocations: 0 / 0.501 GB, free: 13.38 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.7854, allocations: 0 / 0.501 GB, free: 13.38 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.733e-05/0.7854, allocations: 0 / 0.501 GB, free: 13.38 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.002864/0.7883, allocations: 0.8076 MB / 0.5018 GB, free: 12.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.496e-05/0.7884, allocations: 15.89 kB / 0.5018 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003149/0.7887, allocations: 78.53 kB / 0.5018 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.7898, allocations: 123.3 kB / 0.502 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009533/0.7908, allocations: 377.1 kB / 0.5023 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.832e-05/0.7908, allocations: 29 kB / 0.5024 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.7909, allocations: 36 kB / 0.5024 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.7925, allocations: 0.5576 MB / 0.5029 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.7926, allocations: 7.984 kB / 0.5029 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.7927, allocations: 24 kB / 0.503 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.7928, allocations: 12 kB / 0.503 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.7939, allocations: 446.3 kB / 0.5034 GB, free: 10.76 MB / 414.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.006185/0.8001, allocations: 2.119 MB / 0.5055 GB, free: 8.469 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.8005, allocations: 151.2 kB / 0.5056 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.8008, allocations: 84.83 kB / 0.5057 GB, free: 8.227 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.8008, allocations: 0 / 0.5057 GB, free: 8.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.8009, allocations: 38.56 kB / 0.5057 GB, free: 8.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 2.836e-06/0.8009, allocations: 0 / 0.5057 GB, free: 8.18 MB / 414.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.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.0107/0.8116, allocations: 1.741 MB / 0.5074 GB, free: 6.289 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.8117, allocations: 59.41 kB / 0.5075 GB, free: 6.219 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008951/0.8126, allocations: 489.6 kB / 0.508 GB, free: 5.734 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.8127, allocations: 25.7 kB / 0.508 GB, free: 5.703 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003355/0.813, allocations: 318.3 kB / 0.5083 GB, free: 5.383 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.8131, allocations: 90.83 kB / 0.5084 GB, free: 5.293 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003375/0.8135, allocations: 118.2 kB / 0.5085 GB, free: 5.172 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.8137, allocations: 354.8 kB / 0.5088 GB, free: 4.816 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004131/0.8141, allocations: 133.2 kB / 0.5089 GB, free: 4.688 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007214/0.8149, allocations: 440.5 kB / 0.5094 GB, free: 4.113 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.816, allocations: 0.6091 MB / 0.51 GB, free: 3.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.8161, allocations: 7.938 kB / 0.51 GB, free: 3.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001704/0.8178, allocations: 0.6356 MB / 0.5106 GB, free: 2.703 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.627e-05/0.8178, allocations: 11.28 kB / 0.5106 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.8178, allocations: 12 kB / 0.5106 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002983/0.8182, allocations: 54.58 kB / 0.5107 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008333/0.819, allocations: 143.8 kB / 0.5108 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002619/0.8216, allocations: 1.951 MB / 0.5127 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007164/0.8224, allocations: 20 kB / 0.5127 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.311e-05/0.8225, allocations: 36 kB / 0.5128 GB, free: 324 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003946/0.8229, allocations: 209.7 kB / 0.513 GB, free: 104 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.823, allocations: 51.47 kB / 0.513 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000924/0.824, allocations: 290.9 kB / 0.5133 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.824, allocations: 4 kB / 0.5133 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.824, allocations: 0 / 0.5133 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008013/0.8248, allocations: 0.5319 MB / 0.5138 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.8264, allocations: 0.698 MB / 0.5145 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.8265, allocations: 0 / 0.5145 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004393/0.8269, allocations: 59.81 kB / 0.5145 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001312/0.8271, allocations: 28.77 kB / 0.5146 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.8271, allocations: 7.984 kB / 0.5146 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001609/0.8287, allocations: 1.371 MB / 0.5159 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.8287, allocations: 7.875 kB / 0.5159 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009361/0.8297, allocations: 431.7 kB / 0.5163 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/0.8299, allocations: 112.5 kB / 0.5164 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.83, allocations: 7.938 kB / 0.5165 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004511/0.8305, allocations: 11.98 kB / 0.5165 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.8306, allocations: 15.98 kB / 0.5165 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.744e-05/0.8307, allocations: 11.98 kB / 0.5165 GB, free: 12.13 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006598/0.8313, allocations: 327.1 kB / 0.5168 GB, free: 11.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.635e-06/0.8313, allocations: 0 / 0.5168 GB, free: 11.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001562/0.8329, allocations: 219.9 kB / 0.517 GB, free: 11.6 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,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 (23): * Single equations (assignments): 22 * 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.003843/0.8368, allocations: 1.33 MB / 0.5183 GB, free: 10.24 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.8383, allocations: 472.5 kB / 0.5188 GB, free: 9.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.8384, allocations: 0 / 0.5188 GB, free: 9.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004984/0.8389, allocations: 214.8 kB / 0.519 GB, free: 9.547 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.8409, allocations: 217.1 kB / 0.5192 GB, free: 9.336 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.8516, allocations: 4.665 MB / 0.5237 GB, free: 4.289 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000709/0.8524, allocations: 0.8311 MB / 0.5245 GB, free: 3.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001013/0.8534, allocations: 140.5 kB / 0.5247 GB, free: 3.293 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.8538, allocations: 147.4 kB / 0.5248 GB, free: 3.148 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8538, allocations: 0 / 0.5248 GB, free: 3.148 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07885/0.9327, allocations: 16.7 MB / 0.5411 GB, free: 2.355 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.7/20.64, allocations: 20.11 kB / 0.5411 GB, free: 2.336 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_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_SimpleNaturalGasFixedComposition.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_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/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches