Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007699/0.0007696, allocations: 91.8 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003047, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2032, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3207/0.5239, allocations: 159.5 MB / 0.5215 GB, free: 1.148 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.5274, allocations: 3.563 MB / 0.525 GB, free: 1.055 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/0.5277, allocations: 4.906 kB / 0.525 GB, free: 1.055 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005332/0.5282, allocations: 162.5 kB / 0.5252 GB, free: 1.047 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006037/0.5288, allocations: 339.7 kB / 0.5255 GB, free: 1.027 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.5299, allocations: 408.5 kB / 0.5259 GB, free: 1.016 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001253/0.5312, allocations: 1.298 MB / 0.5272 GB, free: 1.012 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.5315, allocations: 202.1 kB / 0.5273 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002484/0.534, allocations: 1.118 MB / 0.5284 GB, free: 0.957 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004736/0.5345, allocations: 463.8 kB / 0.5289 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.202e-05/0.5346, allocations: 29.09 kB / 0.5289 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.5357, allocations: 0.6335 MB / 0.5295 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.536, allocations: 419.1 kB / 0.5299 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.5362, allocations: 198.2 kB / 0.5301 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.5372, allocations: 1.224 MB / 0.5313 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.5373, allocations: 0 / 0.5313 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5373, allocations: 2.531 kB / 0.5313 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.5373, allocations: 1.75 kB / 0.5313 GB, free: 0.8477 MB / 378.7 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.001378/0.5387, allocations: 0.8939 MB / 0.5322 GB, free: 16.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.5387, allocations: 8.719 kB / 0.5322 GB, free: 16.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005737/0.5393, allocations: 161.8 kB / 0.5324 GB, free: 16.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005683/0.5399, allocations: 467.7 kB / 0.5328 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.5399, allocations: 55.55 kB / 0.5329 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.023e-05/0.54, allocations: 73.66 kB / 0.5329 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.5413, allocations: 0.9457 MB / 0.5338 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.5413, allocations: 3.094 kB / 0.5338 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.379e-05/0.5414, allocations: 32.12 kB / 0.5339 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.084e-05/0.5414, allocations: 42.23 kB / 0.5339 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.5424, allocations: 0.8666 MB / 0.5348 GB, free: 15.52 MB / 394.7 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.004574/0.547, allocations: 3.447 MB / 0.5381 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006938/0.5477, allocations: 0.6322 MB / 0.5387 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004018/0.5481, allocations: 362.1 kB / 0.5391 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.5482, allocations: 25.28 kB / 0.5391 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.5482, allocations: 41.22 kB / 0.5392 GB, free: 13.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 2.334e-06/0.5482, allocations: 6.75 kB / 0.5392 GB, free: 13.18 MB / 394.7 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.01334/0.5616, allocations: 6.218 MB / 0.5452 GB, free: 10.21 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/0.5616, allocations: 60 kB / 0.5453 GB, free: 10.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005657/0.5622, allocations: 0.5374 MB / 0.5458 GB, free: 9.965 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.543e-05/0.5623, allocations: 43.67 kB / 0.5459 GB, free: 9.934 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.5625, allocations: 282.3 kB / 0.5461 GB, free: 9.758 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.5626, allocations: 256.6 kB / 0.5464 GB, free: 9.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.249e-05/0.5627, allocations: 14.09 kB / 0.5464 GB, free: 9.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5628, allocations: 369.7 kB / 0.5467 GB, free: 9.238 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005339/0.5634, allocations: 443.9 kB / 0.5472 GB, free: 9.172 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005987/0.564, allocations: 0.5101 MB / 0.5477 GB, free: 9.043 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006375/0.5646, allocations: 0.5031 MB / 0.5482 GB, free: 8.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5646, allocations: 0 / 0.5482 GB, free: 8.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001751/0.5664, allocations: 1.34 MB / 0.5495 GB, free: 8.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.5664, allocations: 8.906 kB / 0.5495 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.5664, allocations: 2.281 kB / 0.5495 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005273/0.567, allocations: 332 kB / 0.5498 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009083/0.5679, allocations: 181.2 kB / 0.55 GB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007335/0.5752, allocations: 10.23 MB / 0.56 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007254/0.576, allocations: 83.56 kB / 0.56 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.587e-05/0.5761, allocations: 43.67 kB / 0.5601 GB, free: 14.82 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004165/0.5765, allocations: 272.9 kB / 0.5603 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.5766, allocations: 62.75 kB / 0.5604 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.5784, allocations: 1.293 MB / 0.5617 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.5784, allocations: 11.86 kB / 0.5617 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.5784, allocations: 0 / 0.5617 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001535/0.58, allocations: 1.609 MB / 0.5632 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.583, allocations: 2.266 MB / 0.5655 GB, free: 11.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.583, allocations: 0 / 0.5655 GB, free: 11.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.5841, allocations: 221.2 kB / 0.5657 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.5843, allocations: 75.11 kB / 0.5657 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.231e-05/0.5844, allocations: 38.59 kB / 0.5658 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.5855, allocations: 1.431 MB / 0.5672 GB, free: 9.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5855, allocations: 2.531 kB / 0.5672 GB, free: 9.918 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00202/0.5876, allocations: 1.593 MB / 0.5687 GB, free: 8.816 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/0.5878, allocations: 154.5 kB / 0.5689 GB, free: 8.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.5879, allocations: 26.81 kB / 0.5689 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007343/0.5886, allocations: 73.28 kB / 0.569 GB, free: 8.578 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.715e-05/0.5887, allocations: 58.64 kB / 0.569 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.5888, allocations: 64.69 kB / 0.5691 GB, free: 8.473 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004189/0.5893, allocations: 403.4 kB / 0.5695 GB, free: 8.172 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.403e-06/0.5893, allocations: 0 / 0.5695 GB, free: 8.172 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001056/0.5903, allocations: 358.2 kB / 0.5698 GB, free: 7.852 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001358/0.5917, allocations: 441.2 kB / 0.5702 GB, free: 7.449 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002159/0.5939, allocations: 1.866 MB / 0.5721 GB, free: 5.867 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5939, allocations: 2.734 kB / 0.5721 GB, free: 5.867 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008467/0.5947, allocations: 0.6797 MB / 0.5727 GB, free: 5.375 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002179/0.5969, allocations: 0.4964 MB / 0.5732 GB, free: 4.961 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003763/0.6007, allocations: 2.618 MB / 0.5758 GB, free: 2.574 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/0.6012, allocations: 0.9696 MB / 0.5767 GB, free: 1.613 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.6016, allocations: 92.59 kB / 0.5768 GB, free: 1.527 MB / 410.7 MB Notification: Performance of SimCode: time 4.61e-07/0.6016, allocations: 8 kB / 0.5768 GB, free: 1.52 MB / 410.7 MB Notification: Performance of Templates: time 0.03006/0.6316, allocations: 26.65 MB / 0.6028 GB, free: 6.926 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/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_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches