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: 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_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_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 106.8 kB / 17.15 MB, free: 6.305 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.001199/0.001199, allocations: 198 kB / 18.07 MB, free: 5.41 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.481/1.481, allocations: 205.1 MB / 223.9 MB, free: 12.38 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.001168/0.001168, allocations: 51.92 kB / 280 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1243, allocations: 46.64 MB / 326.6 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4542/0.5786, allocations: 173.5 MB / 0.4884 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004632/0.5832, allocations: 3.882 MB / 0.4921 GB, free: 6.234 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000193/0.5836, allocations: 4 kB / 0.4921 GB, free: 6.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008985/0.5845, allocations: 215 kB / 0.4924 GB, free: 6.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006966/0.5852, allocations: 350.3 kB / 0.4927 GB, free: 5.676 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001774/0.587, allocations: 0.4956 MB / 0.4932 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001558/0.5885, allocations: 1.59 MB / 0.4947 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003524/0.5889, allocations: 239.3 kB / 0.495 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00321/0.5921, allocations: 1.213 MB / 0.4961 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006212/0.5927, allocations: 458.7 kB / 0.4966 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.5928, allocations: 44 kB / 0.4966 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.5944, allocations: 0.7758 MB / 0.4974 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003819/0.5948, allocations: 411 kB / 0.4978 GB, free: 476 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005046/0.5954, allocations: 470.2 kB / 0.4982 GB, free: 4 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001714/0.5971, allocations: 1.589 MB / 0.4998 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.5971, allocations: 3.984 kB / 0.4998 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.5971, allocations: 7.938 kB / 0.4998 GB, free: 14.4 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.5971, allocations: 0 / 0.4998 GB, free: 14.4 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.001661/0.5988, allocations: 1.061 MB / 0.5008 GB, free: 13.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.5988, allocations: 12.03 kB / 0.5008 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006462/0.5995, allocations: 143.1 kB / 0.501 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006779/0.6002, allocations: 480.7 kB / 0.5014 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.249e-05/0.6002, allocations: 53.25 kB / 0.5015 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.6004, allocations: 71.98 kB / 0.5015 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.6019, allocations: 0.9474 MB / 0.5025 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.738e-05/0.6019, allocations: 3.906 kB / 0.5025 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-05/0.602, allocations: 32 kB / 0.5025 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-05/0.6021, allocations: 41.98 kB / 0.5025 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.6033, allocations: 0.8667 MB / 0.5034 GB, free: 10.61 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.005496/0.6088, allocations: 3.476 MB / 0.5068 GB, free: 6.852 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008381/0.6097, allocations: 0.6307 MB / 0.5074 GB, free: 6.215 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004599/0.6101, allocations: 370.1 kB / 0.5077 GB, free: 5.852 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.008e-05/0.6102, allocations: 24.48 kB / 0.5078 GB, free: 5.828 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.6102, allocations: 50.98 kB / 0.5078 GB, free: 5.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.625e-06/0.6102, allocations: 0 / 0.5078 GB, free: 5.77 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.01547/0.6257, allocations: 6.208 MB / 0.5139 GB, free: 15.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.6258, allocations: 64 kB / 0.5139 GB, free: 15.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007468/0.6266, allocations: 0.5447 MB / 0.5145 GB, free: 14.54 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.664e-05/0.6267, allocations: 45.7 kB / 0.5145 GB, free: 14.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/0.6269, allocations: 276.6 kB / 0.5148 GB, free: 14.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.6271, allocations: 248.3 kB / 0.515 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002556/0.6274, allocations: 154.5 kB / 0.5152 GB, free: 13.81 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.6276, allocations: 370.8 kB / 0.5155 GB, free: 13.44 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007104/0.6283, allocations: 441.8 kB / 0.5159 GB, free: 13.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007111/0.6291, allocations: 0.5155 MB / 0.5164 GB, free: 12.47 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.6305, allocations: 0.972 MB / 0.5174 GB, free: 11.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.6305, allocations: 0 / 0.5174 GB, free: 11.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002071/0.6326, allocations: 1.347 MB / 0.5187 GB, free: 10.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.6327, allocations: 4.625 kB / 0.5187 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.6327, allocations: 4.156 kB / 0.5187 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006256/0.6333, allocations: 330.6 kB / 0.519 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009749/0.6343, allocations: 183.8 kB / 0.5192 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009115/0.6434, allocations: 10.24 MB / 0.5292 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007593/0.6442, allocations: 83.81 kB / 0.5293 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.015e-05/0.6443, allocations: 43.98 kB / 0.5293 GB, free: 14.25 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.0005031/0.6448, allocations: 273.5 kB / 0.5296 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.645, allocations: 67.28 kB / 0.5297 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002149/0.6471, allocations: 1.283 MB / 0.5309 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.6472, allocations: 11.98 kB / 0.5309 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.6472, allocations: 0 / 0.5309 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001818/0.649, allocations: 1.61 MB / 0.5325 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.6524, allocations: 2.276 MB / 0.5347 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.6524, allocations: 0 / 0.5347 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.6535, allocations: 211.8 kB / 0.5349 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002106/0.6537, allocations: 68.73 kB / 0.535 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.592e-05/0.6538, allocations: 44.06 kB / 0.535 GB, free: 8.133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.6552, allocations: 1.432 MB / 0.5364 GB, free: 6.566 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6552, allocations: 3.938 kB / 0.5364 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.6574, allocations: 1.594 MB / 0.538 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001977/0.6576, allocations: 140.4 kB / 0.5381 GB, free: 4.789 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.6578, allocations: 31.92 kB / 0.5381 GB, free: 4.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007246/0.6585, allocations: 79.78 kB / 0.5382 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.6587, allocations: 56.52 kB / 0.5383 GB, free: 4.621 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.6588, allocations: 59.95 kB / 0.5383 GB, free: 4.562 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000538/0.6593, allocations: 407 kB / 0.5387 GB, free: 4.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6593, allocations: 4 kB / 0.5387 GB, free: 4.156 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001541/0.6609, allocations: 343.9 kB / 0.5391 GB, free: 3.82 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.001796/0.6627, allocations: 0.5027 MB / 0.5395 GB, free: 3.309 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.6655, allocations: 1.87 MB / 0.5414 GB, free: 1.352 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.6655, allocations: 0 / 0.5414 GB, free: 1.352 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000945/0.6664, allocations: 0.6858 MB / 0.542 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.6687, allocations: 490.4 kB / 0.5425 GB, free: 180 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1863/0.855, allocations: 2.472 MB / 0.5449 GB, free: 179.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006934/0.8557, allocations: 0.9797 MB / 0.5459 GB, free: 178.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001282/0.857, allocations: 279.9 kB / 0.5461 GB, free: 178.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002767/0.8573, allocations: 88.19 kB / 0.5462 GB, free: 178.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8573, allocations: 0 / 0.5462 GB, free: 178.8 MB / 446.1 MB Notification: Performance of Templates: time 0.04095/0.8983, allocations: 25.34 MB / 0.571 GB, free: 163.6 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (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 & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/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_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches