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.001308/0.001309, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.00141/0.00141, allocations: 191 kB / 19.29 MB, free: 3.848 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.309/1.309, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001212/0.001212, allocations: 47.92 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08396/0.08518, allocations: 46.61 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3213/0.4065, allocations: 175.5 MB / 0.4924 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004542/0.4111, allocations: 3.838 MB / 0.4962 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.4113, allocations: 4 kB / 0.4962 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008403/0.4122, allocations: 250.6 kB / 0.4964 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006422/0.4128, allocations: 366.1 kB / 0.4968 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.4143, allocations: 0.5325 MB / 0.4973 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.4156, allocations: 1.095 MB / 0.4983 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003556/0.416, allocations: 288.2 kB / 0.4986 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002594/0.4186, allocations: 1.286 MB / 0.4999 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005319/0.4191, allocations: 410.7 kB / 0.5003 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.522e-05/0.4192, allocations: 68 kB / 0.5003 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000941/0.4202, allocations: 483.1 kB / 0.5008 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003801/0.4205, allocations: 447 kB / 0.5012 GB, free: 14.03 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004995/0.4211, allocations: 490.3 kB / 0.5017 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001505/0.4226, allocations: 1.543 MB / 0.5032 GB, free: 12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4226, allocations: 0 / 0.5032 GB, free: 12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4226, allocations: 4 kB / 0.5032 GB, free: 12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.4226, allocations: 0 / 0.5032 GB, free: 12 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.001664/0.4243, allocations: 1.061 MB / 0.5042 GB, free: 10.89 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.4243, allocations: 8.031 kB / 0.5042 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006393/0.425, allocations: 151 kB / 0.5044 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007658/0.4257, allocations: 480.8 kB / 0.5048 GB, free: 10.22 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.4258, allocations: 53.3 kB / 0.5049 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.4259, allocations: 71.91 kB / 0.505 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.4273, allocations: 0.9552 MB / 0.5059 GB, free: 9.137 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.4274, allocations: 0 / 0.5059 GB, free: 9.137 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.014e-05/0.4274, allocations: 31.94 kB / 0.5059 GB, free: 9.105 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.656e-05/0.4275, allocations: 45.98 kB / 0.506 GB, free: 9.059 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.4287, allocations: 0.8667 MB / 0.5068 GB, free: 8.191 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.004995/0.4337, allocations: 3.387 MB / 0.5101 GB, free: 4.527 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000828/0.4346, allocations: 0.6385 MB / 0.5108 GB, free: 3.879 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004516/0.435, allocations: 366.2 kB / 0.5111 GB, free: 3.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.952e-05/0.4351, allocations: 16.53 kB / 0.5111 GB, free: 3.504 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/0.4351, allocations: 55 kB / 0.5112 GB, free: 3.441 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.385e-06/0.4351, allocations: 0 / 0.5112 GB, free: 3.441 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.01394/0.4491, allocations: 6.071 MB / 0.5171 GB, free: 12.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.4491, allocations: 60 kB / 0.5172 GB, free: 12.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006115/0.4497, allocations: 0.5525 MB / 0.5177 GB, free: 12.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.09e-05/0.4498, allocations: 41.7 kB / 0.5177 GB, free: 12.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.45, allocations: 276.6 kB / 0.518 GB, free: 12.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.4502, allocations: 252.3 kB / 0.5182 GB, free: 11.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002447/0.4505, allocations: 150.7 kB / 0.5184 GB, free: 11.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4506, allocations: 362.8 kB / 0.5187 GB, free: 11.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006126/0.4512, allocations: 449.7 kB / 0.5192 GB, free: 10.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006644/0.4519, allocations: 0.5193 MB / 0.5197 GB, free: 10.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.4532, allocations: 0.9681 MB / 0.5206 GB, free: 9.301 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4532, allocations: 4 kB / 0.5206 GB, free: 9.297 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001949/0.4552, allocations: 1.347 MB / 0.5219 GB, free: 7.914 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.4552, allocations: 8 kB / 0.5219 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4552, allocations: 0 / 0.5219 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005732/0.4558, allocations: 338.7 kB / 0.5223 GB, free: 7.551 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009827/0.4568, allocations: 179.8 kB / 0.5224 GB, free: 7.375 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007901/0.4647, allocations: 10.95 MB / 0.5331 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005145/0.4652, allocations: 24.02 kB / 0.5331 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-05/0.4653, allocations: 47.98 kB / 0.5332 GB, free: 11.35 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.0003986/0.4657, allocations: 281.5 kB / 0.5335 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.4659, allocations: 67.28 kB / 0.5335 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.4679, allocations: 1.283 MB / 0.5348 GB, free: 9.684 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4679, allocations: 12 kB / 0.5348 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.4679, allocations: 0 / 0.5348 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001693/0.4696, allocations: 1.61 MB / 0.5364 GB, free: 7.902 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/0.473, allocations: 2.253 MB / 0.5386 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4731, allocations: 4.094 kB / 0.5386 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.4742, allocations: 219.7 kB / 0.5388 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/0.4744, allocations: 76.66 kB / 0.5388 GB, free: 5.281 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.456e-05/0.4745, allocations: 39.97 kB / 0.5389 GB, free: 5.242 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.4758, allocations: 1.531 MB / 0.5404 GB, free: 3.566 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.4758, allocations: 3.984 kB / 0.5404 GB, free: 3.562 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002287/0.4781, allocations: 1.591 MB / 0.5419 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.4783, allocations: 148.3 kB / 0.5421 GB, free: 1.785 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.4784, allocations: 27.98 kB / 0.5421 GB, free: 1.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000622/0.4791, allocations: 39.91 kB / 0.5421 GB, free: 1.719 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.4792, allocations: 56.58 kB / 0.5422 GB, free: 1.664 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.4793, allocations: 59.95 kB / 0.5423 GB, free: 1.605 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004355/0.4797, allocations: 407.1 kB / 0.5426 GB, free: 1.207 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4797, allocations: 0 / 0.5426 GB, free: 1.207 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001082/0.4808, allocations: 339.9 kB / 0.543 GB, free: 0.875 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.001251/0.4821, allocations: 494.7 kB / 0.5434 GB, free: 388 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1327/0.6148, allocations: 1.876 MB / 0.5453 GB, free: 180.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.6148, allocations: 2.75 kB / 0.5453 GB, free: 180.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.6164, allocations: 0.6864 MB / 0.5459 GB, free: 180.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004034/0.6204, allocations: 0.4995 MB / 0.5464 GB, free: 180 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006021/0.6265, allocations: 2.195 MB / 0.5486 GB, free: 179.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008246/0.6273, allocations: 0.9758 MB / 0.5495 GB, free: 178.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001598/0.6289, allocations: 274.7 kB / 0.5498 GB, free: 178.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004586/0.6294, allocations: 89.45 kB / 0.5499 GB, free: 178.6 MB / 446.1 MB Notification: Performance of SimCode: time 7.42e-07/0.6294, allocations: 0 / 0.5499 GB, free: 178.6 MB / 446.1 MB Notification: Performance of Templates: time 0.04651/0.6759, allocations: 26.69 MB / 0.5759 GB, free: 160.2 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 -s cvode -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/jenkins1/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/jenkins1/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