Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Media.TestsWithFluid.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="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.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="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 203.7 kB / 16.79 MB, free: 6.84 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.452/1.452, allocations: 205.1 MB / 222.6 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3676/0.3676, allocations: 43.49 MB / 313.5 MB, free: 8.555 MB / 254.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.00163/0.00163, allocations: 63.91 kB / 382 MB, free: 8.742 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1522, allocations: 57.79 MB / 439.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5158/0.6681, allocations: 181.7 MB / 0.6069 GB, free: 6.512 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009774/0.6779, allocations: 7.19 MB / 0.614 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.6791, allocations: 27.75 kB / 0.614 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.6807, allocations: 386.1 kB / 0.6143 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005702/0.6864, allocations: 1.839 MB / 0.6161 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004792/0.6912, allocations: 1.536 MB / 0.6176 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004782/0.696, allocations: 3.237 MB / 0.6208 GB, free: 8.297 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.6972, allocations: 0.6647 MB / 0.6215 GB, free: 7.637 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005002/0.7022, allocations: 1.813 MB / 0.6232 GB, free: 5.824 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003442/0.7057, allocations: 1.671 MB / 0.6249 GB, free: 4.148 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002412/0.7059, allocations: 59.94 kB / 0.6249 GB, free: 4.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004469/0.7104, allocations: 2.05 MB / 0.6269 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007288/0.7111, allocations: 0.6429 MB / 0.6275 GB, free: 1.391 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.7122, allocations: 0.7001 MB / 0.6282 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3822/1.094, allocations: 2.852 MB / 0.631 GB, free: 9.195 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.505e-06/1.094, allocations: 2 kB / 0.631 GB, free: 9.195 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/1.095, allocations: 2 kB / 0.631 GB, free: 9.195 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.253e-05/1.095, allocations: 0.5625 kB / 0.631 GB, free: 9.195 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.004456/1.099, allocations: 1.687 MB / 0.6327 GB, free: 8.527 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.957e-05/1.099, allocations: 11.03 kB / 0.6327 GB, free: 8.527 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001692/1.101, allocations: 304.9 kB / 0.633 GB, free: 8.465 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00135/1.102, allocations: 0.7392 MB / 0.6337 GB, free: 8.176 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/1.102, allocations: 140.2 kB / 0.6338 GB, free: 8.109 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/1.103, allocations: 114.2 kB / 0.6339 GB, free: 8.105 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003014/1.106, allocations: 1.844 MB / 0.6357 GB, free: 7.902 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/1.106, allocations: 4.562 kB / 0.6357 GB, free: 7.902 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001542/1.106, allocations: 47.22 kB / 0.6358 GB, free: 7.902 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/1.106, allocations: 94.47 kB / 0.6359 GB, free: 7.902 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002667/1.109, allocations: 1.7 MB / 0.6375 GB, free: 7.891 MB / 494.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.009891/1.118, allocations: 6.994 MB / 0.6444 GB, free: 4.359 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/1.12, allocations: 0.8857 MB / 0.6452 GB, free: 4.324 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006739/1.121, allocations: 449.2 kB / 0.6457 GB, free: 4.316 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002273/1.121, allocations: 142.9 kB / 0.6458 GB, free: 4.223 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.323e-05/1.121, allocations: 48.03 kB / 0.6458 GB, free: 4.184 MB / 494.1 MB Notification: Performance of pre-optimization done (n=60): time 2.725e-06/1.121, allocations: 0 / 0.6458 GB, free: 4.184 MB / 494.1 MB Notification: Performance of matching and sorting (n=72): time 0.01247/1.133, allocations: 4.246 MB / 0.65 GB, free: 3.363 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.966e-05/1.133, allocations: 111.7 kB / 0.6501 GB, free: 3.238 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002816/1.136, allocations: 1.108 MB / 0.6512 GB, free: 19.08 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002123/1.137, allocations: 43.98 kB / 0.6512 GB, free: 19.05 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004582/1.137, allocations: 0.519 MB / 0.6517 GB, free: 18.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002981/1.137, allocations: 267.2 kB / 0.652 GB, free: 18.65 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004558/1.138, allocations: 212.3 kB / 0.6522 GB, free: 18.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001814/1.138, allocations: 346.5 kB / 0.6525 GB, free: 18.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/1.139, allocations: 0.5832 MB / 0.6531 GB, free: 18.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/1.141, allocations: 0.8727 MB / 0.6539 GB, free: 18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002438/1.143, allocations: 1.443 MB / 0.6553 GB, free: 17.68 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/1.143, allocations: 2.594 kB / 0.6553 GB, free: 17.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004149/1.147, allocations: 2.002 MB / 0.6573 GB, free: 17.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/1.147, allocations: 9.344 kB / 0.6573 GB, free: 17.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.678e-05/1.147, allocations: 12.25 kB / 0.6573 GB, free: 17.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005689/1.153, allocations: 1.319 MB / 0.6586 GB, free: 17.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008298/1.154, allocations: 147.1 kB / 0.6587 GB, free: 17.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003819/1.158, allocations: 1.92 MB / 0.6606 GB, free: 16.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/1.159, allocations: 110.7 kB / 0.6607 GB, free: 16.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/1.16, allocations: 66.39 kB / 0.6608 GB, free: 16.95 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.001296/1.161, allocations: 407.4 kB / 0.6612 GB, free: 16.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006577/1.162, allocations: 112.9 kB / 0.6613 GB, free: 16.76 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003327/1.165, allocations: 1.391 MB / 0.6626 GB, free: 16.68 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/1.165, allocations: 7.594 kB / 0.6626 GB, free: 16.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/1.165, allocations: 3.688 kB / 0.6627 GB, free: 16.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/1.165, allocations: 7.453 kB / 0.6627 GB, free: 16.67 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005982/1.171, allocations: 2.688 MB / 0.6653 GB, free: 16.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/1.171, allocations: 3.75 kB / 0.6653 GB, free: 16.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/1.173, allocations: 328.5 kB / 0.6656 GB, free: 16.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00021/1.173, allocations: 67.86 kB / 0.6657 GB, free: 16.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/1.173, allocations: 36.98 kB / 0.6657 GB, free: 16.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002732/1.176, allocations: 2.842 MB / 0.6685 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.176, allocations: 1.203 kB / 0.6685 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00412/1.18, allocations: 1.905 MB / 0.6703 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009741/1.181, allocations: 324.9 kB / 0.6706 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003617/1.181, allocations: 34.14 kB / 0.6707 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/1.183, allocations: 79.44 kB / 0.6708 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/1.183, allocations: 63.58 kB / 0.6708 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/1.183, allocations: 63.69 kB / 0.6709 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001433/1.184, allocations: 0.7932 MB / 0.6717 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.094e-06/1.184, allocations: 4 kB / 0.6717 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002927/1.187, allocations: 0.5258 MB / 0.6722 GB, free: 13.19 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.003142/1.191, allocations: 0.8073 MB / 0.673 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002973/1.194, allocations: 1.461 MB / 0.6744 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.194, allocations: 4.109 kB / 0.6744 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00169/1.195, allocations: 0.8612 MB / 0.6752 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003954/1.199, allocations: 0.7298 MB / 0.6759 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006095/1.205, allocations: 3.29 MB / 0.6792 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/1.207, allocations: 1.178 MB / 0.6803 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002064/1.209, allocations: 411.5 kB / 0.6807 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005971/1.209, allocations: 109.1 kB / 0.6808 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of SimCode: time 1.803e-06/1.209, allocations: 0 / 0.6808 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of Templates: time 0.06701/1.276, allocations: 38.15 MB / 0.7181 GB, free: 8.727 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches