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.001164/0.001164, allocations: 107.1 kB / 17.58 MB, free: 5.531 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.001329/0.001329, allocations: 191.9 kB / 18.51 MB, free: 4.613 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.381/1.381, allocations: 205.1 MB / 224.4 MB, free: 12.34 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.001789/0.00179, allocations: 51.94 kB / 280.7 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1081, allocations: 46.63 MB / 327.3 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3473/0.4554, allocations: 175.5 MB / 0.491 GB, free: 7.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004416/0.4598, allocations: 3.831 MB / 0.4947 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.4601, allocations: 4 kB / 0.4947 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000691/0.4608, allocations: 246.7 kB / 0.495 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005965/0.4614, allocations: 362.1 kB / 0.4953 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.4628, allocations: 0.5428 MB / 0.4959 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.4638, allocations: 1.103 MB / 0.4969 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000368/0.4642, allocations: 286.4 kB / 0.4972 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002271/0.4665, allocations: 1.281 MB / 0.4985 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004583/0.4669, allocations: 402.7 kB / 0.4988 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.4671, allocations: 64 kB / 0.4989 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.4681, allocations: 0.5848 MB / 0.4995 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003322/0.4685, allocations: 439 kB / 0.4999 GB, free: 14.45 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004746/0.469, allocations: 494.2 kB / 0.5004 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001438/0.4704, allocations: 1.558 MB / 0.5019 GB, free: 12.41 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4704, allocations: 4 kB / 0.5019 GB, free: 12.4 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4704, allocations: 0 / 0.5019 GB, free: 12.4 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.4704, allocations: 0 / 0.5019 GB, free: 12.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.001563/0.472, allocations: 1.061 MB / 0.5029 GB, free: 11.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4721, allocations: 16.03 kB / 0.5029 GB, free: 11.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006301/0.4727, allocations: 147.1 kB / 0.5031 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006354/0.4733, allocations: 484.7 kB / 0.5035 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.739e-05/0.4734, allocations: 50.12 kB / 0.5036 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.4735, allocations: 71.91 kB / 0.5037 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.4749, allocations: 0.9513 MB / 0.5046 GB, free: 9.539 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.4749, allocations: 0 / 0.5046 GB, free: 9.539 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-05/0.475, allocations: 32 kB / 0.5046 GB, free: 9.508 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.512e-05/0.4751, allocations: 41.98 kB / 0.5047 GB, free: 9.465 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.4762, allocations: 0.8667 MB / 0.5055 GB, free: 8.598 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.004934/0.4812, allocations: 3.503 MB / 0.5089 GB, free: 4.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007709/0.482, allocations: 0.6346 MB / 0.5095 GB, free: 4.176 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004398/0.4824, allocations: 366.2 kB / 0.5099 GB, free: 3.816 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.394e-05/0.4825, allocations: 24.52 kB / 0.5099 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.4825, allocations: 47.88 kB / 0.51 GB, free: 3.738 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 1.844e-06/0.4825, allocations: 0 / 0.51 GB, free: 3.738 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.01414/0.4966, allocations: 6.212 MB / 0.516 GB, free: 13.13 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.4967, allocations: 67.94 kB / 0.5161 GB, free: 13.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006162/0.4973, allocations: 0.5525 MB / 0.5166 GB, free: 12.49 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.851e-05/0.4974, allocations: 41.7 kB / 0.5167 GB, free: 12.44 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002019/0.4976, allocations: 276.6 kB / 0.5169 GB, free: 12.17 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.4978, allocations: 252.3 kB / 0.5172 GB, free: 11.92 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002405/0.4981, allocations: 142.7 kB / 0.5173 GB, free: 11.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.4982, allocations: 370.8 kB / 0.5177 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006025/0.4989, allocations: 449.7 kB / 0.5181 GB, free: 10.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000676/0.4995, allocations: 0.5116 MB / 0.5186 GB, free: 10.44 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.5009, allocations: 0.9681 MB / 0.5195 GB, free: 9.453 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.501, allocations: 4 kB / 0.5195 GB, free: 9.449 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001992/0.503, allocations: 1.343 MB / 0.5209 GB, free: 8.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.503, allocations: 4 kB / 0.5209 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.503, allocations: 4.156 kB / 0.5209 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005902/0.5036, allocations: 338.6 kB / 0.5212 GB, free: 7.707 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009532/0.5046, allocations: 179.8 kB / 0.5214 GB, free: 7.531 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007988/0.5126, allocations: 10.96 MB / 0.5321 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005947/0.5132, allocations: 20.02 kB / 0.5321 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.431e-05/0.5133, allocations: 47.98 kB / 0.5321 GB, free: 11.5 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.000454/0.5137, allocations: 281.5 kB / 0.5324 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.5139, allocations: 67.28 kB / 0.5325 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.5159, allocations: 1.29 MB / 0.5337 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.5159, allocations: 12 kB / 0.5337 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.5159, allocations: 0 / 0.5337 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001639/0.5175, allocations: 1.598 MB / 0.5353 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.5207, allocations: 2.276 MB / 0.5375 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.5207, allocations: 0 / 0.5375 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.5218, allocations: 215.7 kB / 0.5377 GB, free: 5.496 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/0.522, allocations: 76.77 kB / 0.5378 GB, free: 5.418 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.184e-05/0.5221, allocations: 39.97 kB / 0.5378 GB, free: 5.379 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.5233, allocations: 1.535 MB / 0.5393 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.5233, allocations: 4.031 kB / 0.5393 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.5255, allocations: 1.601 MB / 0.5409 GB, free: 2.074 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.5257, allocations: 140.3 kB / 0.541 GB, free: 1.918 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.5258, allocations: 35.97 kB / 0.5411 GB, free: 1.883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/0.5265, allocations: 39.91 kB / 0.5411 GB, free: 1.844 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.5266, allocations: 56.58 kB / 0.5412 GB, free: 1.785 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.64e-05/0.5267, allocations: 63.94 kB / 0.5412 GB, free: 1.723 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004116/0.5271, allocations: 403.1 kB / 0.5416 GB, free: 1.328 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5271, allocations: 0 / 0.5416 GB, free: 1.328 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001017/0.5281, allocations: 343.9 kB / 0.5419 GB, free: 0.9922 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.001492/0.5296, allocations: 0.4922 MB / 0.5424 GB, free: 500 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.219/0.7487, allocations: 2.096 MB / 0.5445 GB, free: 71.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.7487, allocations: 2.438 kB / 0.5445 GB, free: 71.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.7498, allocations: 0.6844 MB / 0.5451 GB, free: 71.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/0.7523, allocations: 0.4936 MB / 0.5456 GB, free: 71.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.7564, allocations: 2.205 MB / 0.5478 GB, free: 71.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.7569, allocations: 0.9731 MB / 0.5487 GB, free: 70.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00106/0.758, allocations: 281.3 kB / 0.549 GB, free: 70.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.7583, allocations: 84.53 kB / 0.5491 GB, free: 70.46 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.7583, allocations: 5.844 kB / 0.5491 GB, free: 70.46 MB / 446.1 MB Notification: Performance of Templates: time 0.03385/0.7921, allocations: 26.32 MB / 0.5748 GB, free: 61.64 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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