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.001656/0.001656, allocations: 111.7 kB / 17.28 MB, free: 6.199 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.001908/0.001908, allocations: 185.3 kB / 18.2 MB, free: 5.277 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.395/1.395, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001176/0.001176, allocations: 47.94 kB / 280.2 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1181, allocations: 46.63 MB / 326.8 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4897/0.6078, allocations: 173.2 MB / 500 MB, free: 10.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004728/0.6126, allocations: 3.819 MB / 0.492 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.6129, allocations: 0 / 0.492 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007907/0.6137, allocations: 227 kB / 0.4922 GB, free: 6.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007107/0.6145, allocations: 338.3 kB / 0.4925 GB, free: 5.859 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001371/0.6158, allocations: 0.4929 MB / 0.493 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001156/0.617, allocations: 1.099 MB / 0.4941 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003868/0.6174, allocations: 287.3 kB / 0.4944 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002872/0.6203, allocations: 1.27 MB / 0.4956 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005209/0.6208, allocations: 462.7 kB / 0.496 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.911e-05/0.6209, allocations: 68 kB / 0.4961 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.6221, allocations: 0.7564 MB / 0.4968 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003521/0.6225, allocations: 450.9 kB / 0.4973 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004865/0.623, allocations: 498.2 kB / 0.4977 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001684/0.6247, allocations: 1.628 MB / 0.4993 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.6247, allocations: 0 / 0.4993 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6247, allocations: 0 / 0.4993 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.6247, allocations: 0 / 0.4993 GB, free: 14.88 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.0019/0.6266, allocations: 1.069 MB / 0.5004 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.6267, allocations: 12.03 kB / 0.5004 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006898/0.6274, allocations: 139.1 kB / 0.5005 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006702/0.6281, allocations: 484.7 kB / 0.501 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.6281, allocations: 54.94 kB / 0.501 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.6282, allocations: 67.91 kB / 0.5011 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.6297, allocations: 0.9513 MB / 0.502 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.6297, allocations: 0 / 0.502 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.212e-05/0.6298, allocations: 32 kB / 0.5021 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-05/0.6299, allocations: 45.98 kB / 0.5021 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.6311, allocations: 0.8745 MB / 0.503 GB, free: 11.06 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.005081/0.6362, allocations: 3.469 MB / 0.5063 GB, free: 7.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008062/0.637, allocations: 0.6346 MB / 0.507 GB, free: 6.676 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004479/0.6375, allocations: 366.2 kB / 0.5073 GB, free: 6.316 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.978e-05/0.6375, allocations: 20.55 kB / 0.5073 GB, free: 6.297 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.6376, allocations: 47.06 kB / 0.5074 GB, free: 6.242 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.214e-06/0.6376, allocations: 0 / 0.5074 GB, free: 6.242 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.01484/0.6524, allocations: 6.211 MB / 0.5134 GB, free: 15.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.6525, allocations: 67.94 kB / 0.5135 GB, free: 15.56 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006853/0.6532, allocations: 0.5447 MB / 0.514 GB, free: 15.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.6533, allocations: 45.7 kB / 0.5141 GB, free: 14.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.6535, allocations: 276.5 kB / 0.5143 GB, free: 14.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.6537, allocations: 256.3 kB / 0.5146 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.654, allocations: 142.7 kB / 0.5147 GB, free: 14.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.6541, allocations: 370.8 kB / 0.5151 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/0.6547, allocations: 441.8 kB / 0.5155 GB, free: 13.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006941/0.6554, allocations: 0.5194 MB / 0.516 GB, free: 12.95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.6567, allocations: 0.972 MB / 0.517 GB, free: 11.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.6567, allocations: 0 / 0.517 GB, free: 11.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002033/0.6588, allocations: 1.343 MB / 0.5183 GB, free: 10.58 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.6588, allocations: 8.625 kB / 0.5183 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.6588, allocations: 4.156 kB / 0.5183 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006073/0.6594, allocations: 342.6 kB / 0.5186 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009466/0.6604, allocations: 175.8 kB / 0.5188 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008192/0.6686, allocations: 10.97 MB / 0.5295 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008183/0.6694, allocations: 83.81 kB / 0.5296 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.466e-05/0.6696, allocations: 40 kB / 0.5296 GB, free: 13.95 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.0005717/0.6701, allocations: 273.6 kB / 0.5299 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001868/0.6703, allocations: 67.28 kB / 0.5299 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002079/0.6724, allocations: 1.279 MB / 0.5312 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.6724, allocations: 11.98 kB / 0.5312 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6724, allocations: 0 / 0.5312 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001764/0.6742, allocations: 1.602 MB / 0.5328 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/0.6777, allocations: 2.28 MB / 0.535 GB, free: 8.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.6777, allocations: 0 / 0.535 GB, free: 8.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.6789, allocations: 219.8 kB / 0.5352 GB, free: 7.945 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/0.6791, allocations: 68.73 kB / 0.5353 GB, free: 7.875 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.5e-05/0.6792, allocations: 39.97 kB / 0.5353 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00125/0.6804, allocations: 1.531 MB / 0.5368 GB, free: 6.164 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.6804, allocations: 12.02 kB / 0.5368 GB, free: 6.152 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.6827, allocations: 1.597 MB / 0.5384 GB, free: 4.527 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.683, allocations: 136.4 kB / 0.5385 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/0.6831, allocations: 31.98 kB / 0.5385 GB, free: 4.344 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007623/0.6839, allocations: 79.72 kB / 0.5386 GB, free: 4.266 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.684, allocations: 52.58 kB / 0.5386 GB, free: 4.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.6841, allocations: 59.95 kB / 0.5387 GB, free: 4.152 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004614/0.6846, allocations: 415 kB / 0.5391 GB, free: 3.746 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.92e-07/0.6846, allocations: 0 / 0.5391 GB, free: 3.746 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001274/0.6859, allocations: 339.9 kB / 0.5394 GB, free: 3.414 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.001584/0.6875, allocations: 0.4987 MB / 0.5399 GB, free: 2.902 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.6906, allocations: 2.104 MB / 0.542 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.6906, allocations: 4.062 kB / 0.542 GB, free: 0.707 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008964/0.6915, allocations: 0.6779 MB / 0.5426 GB, free: 16 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1851/0.8766, allocations: 0.4996 MB / 0.5431 GB, free: 180.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.881, allocations: 2.476 MB / 0.5455 GB, free: 180 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005967/0.8817, allocations: 0.975 MB / 0.5465 GB, free: 179.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001109/0.8828, allocations: 278.6 kB / 0.5468 GB, free: 179.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.8831, allocations: 88.81 kB / 0.5468 GB, free: 179.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/0.8831, allocations: 0 / 0.5468 GB, free: 179.2 MB / 446.1 MB Notification: Performance of Templates: time 0.04213/0.9252, allocations: 26.21 MB / 0.5724 GB, free: 162.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 -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