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.0008605/0.0008605, allocations: 96.34 kB / 17.3 MB, free: 6.391 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.00106/0.00106, allocations: 173.6 kB / 18.2 MB, free: 5.551 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.223/1.223, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004759/0.0004761, allocations: 12 kB / 281.5 MB, free: 3.289 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08775/0.08823, allocations: 47.57 MB / 329.1 MB, free: 3.648 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3284/0.4167, allocations: 171.2 MB / 0.4885 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003773/0.4205, allocations: 3.812 MB / 0.4922 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002291/0.4207, allocations: 7.938 kB / 0.4923 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006006/0.4213, allocations: 215 kB / 0.4925 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005715/0.4219, allocations: 350.3 kB / 0.4928 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.4231, allocations: 0.4957 MB / 0.4933 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001222/0.4243, allocations: 1.594 MB / 0.4948 GB, free: 7.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002851/0.4246, allocations: 235.6 kB / 0.4951 GB, free: 7.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002046/0.4266, allocations: 1.192 MB / 0.4962 GB, free: 6.543 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004807/0.4271, allocations: 442.6 kB / 0.4966 GB, free: 6.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.439e-05/0.4272, allocations: 28 kB / 0.4967 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.4283, allocations: 0.7758 MB / 0.4974 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.4286, allocations: 399 kB / 0.4978 GB, free: 4.914 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003864/0.429, allocations: 463.9 kB / 0.4983 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.4304, allocations: 1.581 MB / 0.4998 GB, free: 2.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.4304, allocations: 0 / 0.4998 GB, free: 2.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4304, allocations: 0 / 0.4998 GB, free: 2.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.4304, allocations: 0 / 0.4998 GB, free: 2.867 MB / 398.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.001281/0.4317, allocations: 0.8894 MB / 0.5007 GB, free: 1.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.4317, allocations: 12.03 kB / 0.5007 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.4319, allocations: 122.5 kB / 0.5008 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005809/0.4325, allocations: 155 kB / 0.5009 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005637/0.433, allocations: 476.7 kB / 0.5014 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.4331, allocations: 53.31 kB / 0.5014 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.529e-05/0.4332, allocations: 64 kB / 0.5015 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.4345, allocations: 0.9513 MB / 0.5024 GB, free: 60 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.4346, allocations: 7.906 kB / 0.5024 GB, free: 52 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.324e-05/0.4346, allocations: 35.94 kB / 0.5025 GB, free: 16 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.924e-05/0.4347, allocations: 45.98 kB / 0.5025 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.4358, allocations: 0.8667 MB / 0.5034 GB, free: 15.1 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.004417/0.4403, allocations: 3.445 MB / 0.5067 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007504/0.441, allocations: 0.6462 MB / 0.5074 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004215/0.4415, allocations: 366.1 kB / 0.5077 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.4415, allocations: 16.53 kB / 0.5077 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.4415, allocations: 55.06 kB / 0.5078 GB, free: 10.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 1.733e-06/0.4415, allocations: 0 / 0.5078 GB, free: 10.29 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.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.01327/0.4548, allocations: 6.209 MB / 0.5138 GB, free: 3.676 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.4549, allocations: 64.05 kB / 0.5139 GB, free: 3.602 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005738/0.4555, allocations: 0.5447 MB / 0.5144 GB, free: 3.051 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.238e-05/0.4555, allocations: 41.7 kB / 0.5145 GB, free: 3.004 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.4557, allocations: 280.6 kB / 0.5147 GB, free: 2.727 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.4559, allocations: 248.4 kB / 0.515 GB, free: 2.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.365e-05/0.456, allocations: 65.69 kB / 0.515 GB, free: 2.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.4561, allocations: 370.8 kB / 0.5154 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005622/0.4567, allocations: 441.7 kB / 0.5158 GB, free: 1.609 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006186/0.4573, allocations: 0.5155 MB / 0.5163 GB, free: 1.078 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.4585, allocations: 0.9797 MB / 0.5173 GB, free: 80 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4585, allocations: 0 / 0.5173 GB, free: 80 kB / 414.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001769/0.4603, allocations: 1.351 MB / 0.5186 GB, free: 14.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.4603, allocations: 8 kB / 0.5186 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4603, allocations: 0 / 0.5186 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005162/0.4608, allocations: 334.7 kB / 0.5189 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009059/0.4618, allocations: 179.8 kB / 0.5191 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006455/0.4682, allocations: 10.24 MB / 0.5291 GB, free: 2.961 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006342/0.4689, allocations: 84 kB / 0.5292 GB, free: 2.879 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.352e-05/0.469, allocations: 39.98 kB / 0.5292 GB, free: 2.84 MB / 430.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.0003776/0.4693, allocations: 285.5 kB / 0.5295 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.4695, allocations: 59.34 kB / 0.5295 GB, free: 2.492 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.4714, allocations: 1.286 MB / 0.5308 GB, free: 1.168 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.4714, allocations: 12 kB / 0.5308 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.4714, allocations: 0 / 0.5308 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1461/0.6175, allocations: 1.592 MB / 0.5324 GB, free: 164.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003609/0.6211, allocations: 2.27 MB / 0.5346 GB, free: 164.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.6212, allocations: 3.875 kB / 0.5346 GB, free: 164.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.6223, allocations: 215.1 kB / 0.5348 GB, free: 164.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.6225, allocations: 71.41 kB / 0.5349 GB, free: 164.1 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.492e-05/0.6226, allocations: 42.91 kB / 0.5349 GB, free: 164.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009037/0.6235, allocations: 1.436 MB / 0.5363 GB, free: 162.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.6235, allocations: 1.406 kB / 0.5363 GB, free: 162.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.6257, allocations: 1.592 MB / 0.5379 GB, free: 162.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.6259, allocations: 148.2 kB / 0.538 GB, free: 162.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.626, allocations: 32.06 kB / 0.538 GB, free: 162.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000808/0.6269, allocations: 78.7 kB / 0.5381 GB, free: 162.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.627, allocations: 56.56 kB / 0.5382 GB, free: 162.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.6271, allocations: 59.66 kB / 0.5382 GB, free: 162.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004716/0.6276, allocations: 409.3 kB / 0.5386 GB, free: 162 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6276, allocations: 0 / 0.5386 GB, free: 162 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001198/0.6288, allocations: 343.1 kB / 0.5389 GB, free: 162 MB / 430.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.004065/0.6329, allocations: 2.62 MB / 0.5415 GB, free: 160.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002443/0.6353, allocations: 1.873 MB / 0.5433 GB, free: 159.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.6354, allocations: 1.188 kB / 0.5433 GB, free: 159.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009452/0.6363, allocations: 0.6859 MB / 0.544 GB, free: 159.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/0.639, allocations: 494.1 kB / 0.5445 GB, free: 159.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.6497, allocations: 9.378 MB / 0.5536 GB, free: 154.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.6501, allocations: 0.971 MB / 0.5546 GB, free: 153.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001006/0.6512, allocations: 278.3 kB / 0.5548 GB, free: 152.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/0.6516, allocations: 275.3 kB / 0.5551 GB, free: 152.6 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6516, allocations: 0 / 0.5551 GB, free: 152.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.565/6.216, allocations: 31.78 MB / 0.5861 GB, free: 120.8 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/6.217, allocations: 265.3 kB / 0.5864 GB, free: 120.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.685/10.9, allocations: 0 / 0.5864 GB, free: 120.4 MB / 430.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/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","../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