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.002629/0.002628, allocations: 184 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.629/3.629, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001861/0.001861, allocations: 92.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006428/0.0006428, allocations: 11.98 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5775/0.5782, allocations: 47.56 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.923/1.501, allocations: 138.8 MB / 0.5013 GB, free: 2.035 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00692/1.508, allocations: 2.371 MB / 0.5036 GB, free: 1.988 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005989/1.509, allocations: 5.781 kB / 0.5036 GB, free: 1.988 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001384/1.51, allocations: 188.7 kB / 0.5038 GB, free: 1.984 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001358/1.512, allocations: 232.6 kB / 0.504 GB, free: 1.98 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00281/1.515, allocations: 419.2 kB / 0.5044 GB, free: 1.977 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001923/1.517, allocations: 0.5784 MB / 0.505 GB, free: 1.969 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006153/1.517, allocations: 204.3 kB / 0.5052 GB, free: 1.945 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004016/1.521, allocations: 0.8002 MB / 0.506 GB, free: 1.938 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009487/1.522, allocations: 260 kB / 0.5062 GB, free: 1.934 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002088/1.523, allocations: 34.11 kB / 0.5063 GB, free: 1.934 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002565/1.525, allocations: 441.2 kB / 0.5067 GB, free: 1.934 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008974/1.526, allocations: 367.4 kB / 0.507 GB, free: 1.934 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005391/1.527, allocations: 194 kB / 0.5072 GB, free: 1.902 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003603/1.53, allocations: 1.178 MB / 0.5084 GB, free: 1.836 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/1.53, allocations: 0.5312 kB / 0.5084 GB, free: 1.836 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.436e-06/1.53, allocations: 1.859 kB / 0.5084 GB, free: 1.836 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.47e-05/1.53, allocations: 0.7812 kB / 0.5084 GB, free: 1.836 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.004572/1.535, allocations: 0.8898 MB / 0.5092 GB, free: 17.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/1.535, allocations: 8.969 kB / 0.5093 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/1.537, allocations: 159.4 kB / 0.5094 GB, free: 17.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002247/1.54, allocations: 476.2 kB / 0.5099 GB, free: 16.99 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/1.54, allocations: 53.19 kB / 0.5099 GB, free: 16.99 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003333/1.54, allocations: 67.33 kB / 0.51 GB, free: 16.99 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004067/1.544, allocations: 0.9405 MB / 0.5109 GB, free: 16.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.522e-05/1.544, allocations: 10.09 kB / 0.5109 GB, free: 16.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/1.545, allocations: 29.47 kB / 0.5109 GB, free: 16.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/1.545, allocations: 45.28 kB / 0.511 GB, free: 16.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003883/1.549, allocations: 0.8653 MB / 0.5118 GB, free: 16.92 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.01513/1.564, allocations: 3.387 MB / 0.5151 GB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002422/1.566, allocations: 0.633 MB / 0.5157 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001512/1.567, allocations: 18.41 kB / 0.5158 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001035/1.567, allocations: 51.38 kB / 0.5158 GB, free: 15.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 5.821e-06/1.567, allocations: 1.156 kB / 0.5158 GB, free: 15.26 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.04095/1.608, allocations: 6.163 MB / 0.5218 GB, free: 13.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.899e-05/1.608, allocations: 67.31 kB / 0.5219 GB, free: 12.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001542/1.609, allocations: 0.5363 MB / 0.5224 GB, free: 12.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004187/1.61, allocations: 44.67 kB / 0.5225 GB, free: 12.83 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000346/1.61, allocations: 318 kB / 0.5228 GB, free: 12.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004268/1.611, allocations: 251.5 kB / 0.523 GB, free: 12.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/1.611, allocations: 15.97 kB / 0.523 GB, free: 12.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002389/1.611, allocations: 336.6 kB / 0.5233 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/1.613, allocations: 444.7 kB / 0.5238 GB, free: 12.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001803/1.615, allocations: 0.5135 MB / 0.5243 GB, free: 12.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001908/1.617, allocations: 0.4954 MB / 0.5248 GB, free: 12.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/1.617, allocations: 3.125 kB / 0.5248 GB, free: 12.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.005186/1.622, allocations: 1.314 MB / 0.526 GB, free: 11.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/1.622, allocations: 9.469 kB / 0.526 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/1.622, allocations: 3.062 kB / 0.526 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/1.624, allocations: 333.8 kB / 0.5264 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/1.626, allocations: 177.3 kB / 0.5265 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01781/1.644, allocations: 10.29 MB / 0.5366 GB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/1.647, allocations: 78.12 kB / 0.5367 GB, free: 2.203 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002957/1.647, allocations: 41.62 kB / 0.5367 GB, free: 2.203 MB / 394.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.00113/1.648, allocations: 280 kB / 0.537 GB, free: 2.062 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004407/1.649, allocations: 67.08 kB / 0.537 GB, free: 2.031 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005276/1.654, allocations: 1.286 MB / 0.5383 GB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/1.654, allocations: 6.125 kB / 0.5383 GB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/1.654, allocations: 0 / 0.5383 GB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004588/1.659, allocations: 1.602 MB / 0.5399 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009408/1.668, allocations: 2.282 MB / 0.5421 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/1.668, allocations: 3.094 kB / 0.5421 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/1.671, allocations: 220.1 kB / 0.5423 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004963/1.672, allocations: 65.73 kB / 0.5424 GB, free: 15.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002901/1.672, allocations: 39.72 kB / 0.5424 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002763/1.675, allocations: 1.447 MB / 0.5438 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/1.675, allocations: 2.906 kB / 0.5438 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006721/1.682, allocations: 1.628 MB / 0.5454 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007524/1.683, allocations: 146.2 kB / 0.5455 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/1.683, allocations: 31.33 kB / 0.5456 GB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002756/1.686, allocations: 73.25 kB / 0.5456 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003831/1.687, allocations: 58.55 kB / 0.5457 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003745/1.687, allocations: 62.03 kB / 0.5458 GB, free: 13.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00113/1.688, allocations: 401.6 kB / 0.5461 GB, free: 13.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.688, allocations: 3.188 kB / 0.5461 GB, free: 13.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003086/1.691, allocations: 338.5 kB / 0.5465 GB, free: 13.79 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.003871/1.695, allocations: 433.5 kB / 0.5469 GB, free: 13.58 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006956/1.702, allocations: 1.859 MB / 0.5487 GB, free: 12.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.655e-05/1.702, allocations: 0 / 0.5487 GB, free: 12.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002909/1.705, allocations: 0.6898 MB / 0.5494 GB, free: 12.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006874/1.712, allocations: 490.2 kB / 0.5498 GB, free: 12.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/1.723, allocations: 2.614 MB / 0.5524 GB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001385/1.725, allocations: 0.9888 MB / 0.5534 GB, free: 9.273 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/1.726, allocations: 93.16 kB / 0.5535 GB, free: 9.188 MB / 410.7 MB Notification: Performance of SimCode: time 2.275e-06/1.726, allocations: 0 / 0.5535 GB, free: 9.188 MB / 410.7 MB Notification: Performance of Templates: time 0.08622/1.812, allocations: 25.86 MB / 0.5787 GB, free: 15.39 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/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_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches