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.001333/0.001333, allocations: 105.9 kB / 16.93 MB, free: 5.781 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.001398/0.001398, allocations: 191.6 kB / 17.86 MB, free: 5.156 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.663/1.663, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2394/0.2394, allocations: 43.53 MB / 314.6 MB, free: 0.5352 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.001802/0.001802, allocations: 71.22 kB / 383.4 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.13, allocations: 57.79 MB / 441.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5053/0.6354, allocations: 183.1 MB / 0.6096 GB, free: 7.621 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009795/0.6453, allocations: 6.972 MB / 0.6165 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008904/0.6462, allocations: 20.31 kB / 0.6165 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.6475, allocations: 432.5 kB / 0.6169 GB, free: 2.258 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005109/0.6526, allocations: 2.023 MB / 0.6189 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004356/0.657, allocations: 1.701 MB / 0.6205 GB, free: 15.57 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002792/0.6598, allocations: 2.234 MB / 0.6227 GB, free: 14.33 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.6609, allocations: 0.7601 MB / 0.6234 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0042/0.6651, allocations: 1.926 MB / 0.6253 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002802/0.6679, allocations: 1.581 MB / 0.6269 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002195/0.6682, allocations: 100 kB / 0.627 GB, free: 10.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003497/0.6717, allocations: 1.626 MB / 0.6286 GB, free: 9.066 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006222/0.6723, allocations: 0.6937 MB / 0.6292 GB, free: 8.371 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.6734, allocations: 0.7548 MB / 0.63 GB, free: 7.613 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005333/0.6788, allocations: 2.762 MB / 0.6327 GB, free: 4.844 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.6788, allocations: 0 / 0.6327 GB, free: 4.844 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.6788, allocations: 0 / 0.6327 GB, free: 4.844 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.141e-05/0.6788, allocations: 4 kB / 0.6327 GB, free: 4.84 MB / 446.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.005605/0.6845, allocations: 1.688 MB / 0.6343 GB, free: 3.102 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.6845, allocations: 11.89 kB / 0.6343 GB, free: 3.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002554/0.6871, allocations: 310.3 kB / 0.6346 GB, free: 2.785 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001868/0.689, allocations: 0.7377 MB / 0.6353 GB, free: 2.004 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.6892, allocations: 141.3 kB / 0.6355 GB, free: 1.852 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002613/0.6894, allocations: 107.9 kB / 0.6356 GB, free: 1.746 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00468/0.6941, allocations: 1.849 MB / 0.6374 GB, free: 15.83 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.888e-05/0.6942, allocations: 4 kB / 0.6374 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/0.6944, allocations: 40 kB / 0.6374 GB, free: 15.79 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.6946, allocations: 101.9 kB / 0.6375 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003977/0.6985, allocations: 1.694 MB / 0.6392 GB, free: 13.99 MB / 462.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.01963/0.7182, allocations: 7.04 MB / 0.6461 GB, free: 6.477 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002881/0.7211, allocations: 0.8672 MB / 0.6469 GB, free: 5.605 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.7225, allocations: 450.3 kB / 0.6473 GB, free: 5.164 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003125/0.7229, allocations: 147.7 kB / 0.6475 GB, free: 5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001786/0.7231, allocations: 47.12 kB / 0.6475 GB, free: 4.941 MB / 462.1 MB Notification: Performance of pre-optimization done (n=60): time 3.747e-06/0.7231, allocations: 0 / 0.6475 GB, free: 4.941 MB / 462.1 MB Notification: Performance of matching and sorting (n=72): time 0.02135/0.7444, allocations: 4.239 MB / 0.6517 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.7446, allocations: 119.4 kB / 0.6518 GB, free: 492 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002518/0.7471, allocations: 1.101 MB / 0.6529 GB, free: 15.35 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001998/0.7474, allocations: 41.7 kB / 0.6529 GB, free: 15.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006708/0.748, allocations: 0.5261 MB / 0.6534 GB, free: 14.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003918/0.7484, allocations: 260.3 kB / 0.6537 GB, free: 14.52 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006176/0.7491, allocations: 218.5 kB / 0.6539 GB, free: 14.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.7493, allocations: 349.9 kB / 0.6542 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001787/0.7511, allocations: 0.5758 MB / 0.6548 GB, free: 13.38 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002161/0.7533, allocations: 0.876 MB / 0.6556 GB, free: 12.38 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003794/0.7571, allocations: 1.447 MB / 0.657 GB, free: 10.82 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-06/0.7571, allocations: 4 kB / 0.657 GB, free: 10.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.006244/0.7634, allocations: 1.996 MB / 0.659 GB, free: 8.809 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.7635, allocations: 8 kB / 0.659 GB, free: 8.801 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/0.7635, allocations: 8 kB / 0.659 GB, free: 8.793 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009289/0.7728, allocations: 1.34 MB / 0.6603 GB, free: 7.449 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.7741, allocations: 135.8 kB / 0.6604 GB, free: 7.316 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003465/0.7776, allocations: 1.928 MB / 0.6623 GB, free: 5.363 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.7787, allocations: 43.97 kB / 0.6624 GB, free: 5.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.7788, allocations: 63.98 kB / 0.6624 GB, free: 5.258 MB / 478.1 MB 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.0006948/0.7795, allocations: 405.3 kB / 0.6628 GB, free: 4.852 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.7797, allocations: 106.8 kB / 0.6629 GB, free: 4.746 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002463/0.7822, allocations: 1.398 MB / 0.6643 GB, free: 3.336 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.7822, allocations: 8 kB / 0.6643 GB, free: 3.328 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.7822, allocations: 4 kB / 0.6643 GB, free: 3.324 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.7822, allocations: 4.172 kB / 0.6643 GB, free: 3.32 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004003/0.7863, allocations: 2.688 MB / 0.6669 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.7863, allocations: 11.91 kB / 0.6669 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001857/0.7881, allocations: 311.7 kB / 0.6672 GB, free: 256 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000193/0.7883, allocations: 80.62 kB / 0.6673 GB, free: 172 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.197e-05/0.7884, allocations: 35.98 kB / 0.6673 GB, free: 136 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002437/0.7909, allocations: 3.033 MB / 0.6703 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7909, allocations: 4.156 kB / 0.6703 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002937/0.7938, allocations: 1.895 MB / 0.6721 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006023/0.7945, allocations: 335.6 kB / 0.6725 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/0.7947, allocations: 27.98 kB / 0.6725 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009286/0.7956, allocations: 51.95 kB / 0.6725 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.7958, allocations: 60.58 kB / 0.6726 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.7959, allocations: 67.88 kB / 0.6727 GB, free: 10.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001012/0.7969, allocations: 0.7931 MB / 0.6734 GB, free: 9.547 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7969, allocations: 0 / 0.6734 GB, free: 9.547 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001631/0.7986, allocations: 0.5271 MB / 0.674 GB, free: 9.02 MB / 494.1 MB 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.002453/0.801, allocations: 0.795 MB / 0.6747 GB, free: 8.219 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003358/0.8044, allocations: 1.798 MB / 0.6765 GB, free: 6.422 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/0.8044, allocations: 4.656 kB / 0.6765 GB, free: 6.414 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001751/0.8062, allocations: 0.8497 MB / 0.6773 GB, free: 5.551 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003403/0.8096, allocations: 0.7691 MB / 0.6781 GB, free: 4.785 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00518/0.8148, allocations: 3.003 MB / 0.681 GB, free: 1.742 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008687/0.8157, allocations: 1.176 MB / 0.6822 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005073/0.8162, allocations: 111.4 kB / 0.6823 GB, free: 436 kB / 494.1 MB Notification: Performance of SimCode: time 8.81e-07/0.8162, allocations: 0 / 0.6823 GB, free: 436 kB / 494.1 MB Notification: Performance of Templates: time 0.04242/0.8586, allocations: 32.54 MB / 0.714 GB, free: 15.88 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches