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.00136/0.001367, allocations: 118.3 kB / 17.28 MB, free: 6.219 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.001393/0.001393, allocations: 193.3 kB / 18.19 MB, free: 5.301 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.389/1.389, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001085/0.001085, allocations: 47.94 kB / 280.3 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08686/0.08796, allocations: 46.63 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3465/0.4345, allocations: 173.2 MB / 0.4884 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004001/0.4385, allocations: 3.815 MB / 0.4921 GB, free: 6.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.4387, allocations: 4 kB / 0.4921 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006595/0.4394, allocations: 211 kB / 0.4923 GB, free: 6.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005507/0.44, allocations: 346.3 kB / 0.4926 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.4411, allocations: 0.5033 MB / 0.4931 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009366/0.4421, allocations: 1.095 MB / 0.4942 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003218/0.4424, allocations: 288.3 kB / 0.4944 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00233/0.4448, allocations: 1.258 MB / 0.4957 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004876/0.4453, allocations: 462.7 kB / 0.4961 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.403e-05/0.4454, allocations: 68 kB / 0.4962 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.4465, allocations: 0.7642 MB / 0.4969 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003174/0.4468, allocations: 439 kB / 0.4973 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004196/0.4472, allocations: 494.3 kB / 0.4978 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001444/0.4487, allocations: 1.632 MB / 0.4994 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.4487, allocations: 3.938 kB / 0.4994 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.4487, allocations: 0 / 0.4994 GB, free: 14.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.4487, allocations: 0 / 0.4994 GB, free: 14.87 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001535/0.4503, allocations: 1.068 MB / 0.5005 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.4503, allocations: 8.031 kB / 0.5005 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001774/0.4505, allocations: 122.5 kB / 0.5006 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000597/0.4511, allocations: 151 kB / 0.5007 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005718/0.4517, allocations: 482.3 kB / 0.5012 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.4517, allocations: 45.31 kB / 0.5012 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.586e-05/0.4518, allocations: 71.91 kB / 0.5013 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.4532, allocations: 0.9552 MB / 0.5022 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.4532, allocations: 0 / 0.5022 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.37e-05/0.4533, allocations: 28 kB / 0.5023 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-05/0.4534, allocations: 45.92 kB / 0.5023 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.4545, allocations: 0.8745 MB / 0.5032 GB, free: 10.93 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.004903/0.4594, allocations: 3.479 MB / 0.5066 GB, free: 7.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000783/0.4602, allocations: 0.6385 MB / 0.5072 GB, free: 6.527 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004223/0.4607, allocations: 362.2 kB / 0.5075 GB, free: 6.172 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.727e-05/0.4607, allocations: 16.53 kB / 0.5075 GB, free: 6.156 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.4608, allocations: 51.06 kB / 0.5076 GB, free: 6.098 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 1.793e-06/0.4608, allocations: 0 / 0.5076 GB, free: 6.098 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.01452/0.4753, allocations: 6.223 MB / 0.5137 GB, free: 15.48 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.4754, allocations: 60.06 kB / 0.5137 GB, free: 15.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006482/0.4761, allocations: 0.5525 MB / 0.5143 GB, free: 14.85 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.551e-05/0.4761, allocations: 41.7 kB / 0.5143 GB, free: 14.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.4763, allocations: 276.6 kB / 0.5146 GB, free: 14.53 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.4765, allocations: 256.3 kB / 0.5148 GB, free: 14.28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002434/0.4768, allocations: 146.7 kB / 0.515 GB, free: 14.13 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.477, allocations: 370.8 kB / 0.5153 GB, free: 13.76 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005909/0.4776, allocations: 437.8 kB / 0.5157 GB, free: 13.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006568/0.4783, allocations: 0.5194 MB / 0.5162 GB, free: 12.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.4795, allocations: 0.9681 MB / 0.5172 GB, free: 11.81 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.4795, allocations: 4 kB / 0.5172 GB, free: 11.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002035/0.4816, allocations: 1.347 MB / 0.5185 GB, free: 10.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.4816, allocations: 8 kB / 0.5185 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.4816, allocations: 160 / 0.5185 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005814/0.4822, allocations: 338.6 kB / 0.5188 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.4832, allocations: 175.8 kB / 0.519 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008333/0.4916, allocations: 10.96 MB / 0.5297 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007209/0.4923, allocations: 83.84 kB / 0.5298 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.563e-05/0.4924, allocations: 47.98 kB / 0.5298 GB, free: 13.8 MB / 446.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.0004718/0.4929, allocations: 277.5 kB / 0.5301 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.493, allocations: 67.28 kB / 0.5301 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.495, allocations: 1.279 MB / 0.5314 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.4951, allocations: 8 kB / 0.5314 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4951, allocations: 7.922 kB / 0.5314 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001743/0.4968, allocations: 1.598 MB / 0.533 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003327/0.5002, allocations: 2.272 MB / 0.5352 GB, free: 8.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.5002, allocations: 0 / 0.5352 GB, free: 8.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.5013, allocations: 219.8 kB / 0.5354 GB, free: 7.805 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.5015, allocations: 72.67 kB / 0.5355 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.428e-05/0.5016, allocations: 39.97 kB / 0.5355 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.5028, allocations: 1.535 MB / 0.537 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.5028, allocations: 7.938 kB / 0.537 GB, free: 6.008 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.5049, allocations: 1.598 MB / 0.5386 GB, free: 4.383 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.5051, allocations: 140.4 kB / 0.5387 GB, free: 4.227 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.5052, allocations: 27.98 kB / 0.5387 GB, free: 4.199 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007056/0.5059, allocations: 79.72 kB / 0.5388 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.5061, allocations: 60.52 kB / 0.5389 GB, free: 4.059 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.627e-05/0.5062, allocations: 55.95 kB / 0.5389 GB, free: 4.004 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004179/0.5066, allocations: 415 kB / 0.5393 GB, free: 3.598 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5066, allocations: 0 / 0.5393 GB, free: 3.598 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001036/0.5076, allocations: 343.9 kB / 0.5396 GB, free: 3.262 MB / 446.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.003783/0.5114, allocations: 2.615 MB / 0.5422 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2154/0.7269, allocations: 2.094 MB / 0.5442 GB, free: 74.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/0.7269, allocations: 2.438 kB / 0.5442 GB, free: 74.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.728, allocations: 0.6855 MB / 0.5449 GB, free: 74.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002332/0.7304, allocations: 0.4977 MB / 0.5454 GB, free: 74.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/0.743, allocations: 9.222 MB / 0.5544 GB, free: 71.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/0.7434, allocations: 0.9757 MB / 0.5554 GB, free: 70.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001147/0.7446, allocations: 274.2 kB / 0.5556 GB, free: 70.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004297/0.745, allocations: 273.9 kB / 0.5559 GB, free: 70.95 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.745, allocations: 0 / 0.5559 GB, free: 70.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05434/0.7994, allocations: 33.06 MB / 0.5882 GB, free: 51.73 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/0.7996, allocations: 270 kB / 0.5884 GB, free: 51.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/3.567, allocations: 8 kB / 0.5884 GB, free: 51.36 MB / 446.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