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.001233/0.001233, allocations: 104.2 kB / 17.03 MB, free: 6.129 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.001196/0.001196, allocations: 196.1 kB / 17.96 MB, free: 5.215 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.435/1.435, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2121/0.2121, allocations: 43.54 MB / 314.7 MB, free: 468 kB / 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.001474/0.001475, allocations: 67.38 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1151, allocations: 57.8 MB / 442 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4202/0.5354, allocations: 183.1 MB / 0.6104 GB, free: 7.797 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008359/0.5437, allocations: 6.964 MB / 0.6172 GB, free: 2.148 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006091/0.5444, allocations: 20.91 kB / 0.6172 GB, free: 2.141 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.5454, allocations: 436.9 kB / 0.6176 GB, free: 1.785 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.5496, allocations: 2.015 MB / 0.6196 GB, free: 320 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003727/0.5534, allocations: 1.721 MB / 0.6213 GB, free: 15.08 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002367/0.5558, allocations: 2.218 MB / 0.6235 GB, free: 13.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009221/0.5567, allocations: 0.7604 MB / 0.6242 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004061/0.5608, allocations: 1.922 MB / 0.6261 GB, free: 12.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002987/0.5638, allocations: 1.585 MB / 0.6276 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002128/0.564, allocations: 100 kB / 0.6277 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003173/0.5672, allocations: 1.602 MB / 0.6293 GB, free: 8.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006004/0.5678, allocations: 0.6781 MB / 0.6299 GB, free: 8.07 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008413/0.5687, allocations: 0.7587 MB / 0.6307 GB, free: 7.309 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003242/0.5719, allocations: 2.735 MB / 0.6334 GB, free: 4.566 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.5719, allocations: 3.938 kB / 0.6334 GB, free: 4.562 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.5719, allocations: 7.938 kB / 0.6334 GB, free: 4.555 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.572, allocations: 0 / 0.6334 GB, free: 4.555 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.003117/0.5751, allocations: 1.677 MB / 0.635 GB, free: 2.828 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.5751, allocations: 11.89 kB / 0.635 GB, free: 2.816 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001439/0.5766, allocations: 318.2 kB / 0.6353 GB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001467/0.5781, allocations: 0.7728 MB / 0.6361 GB, free: 1.688 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.5782, allocations: 141.3 kB / 0.6362 GB, free: 1.535 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.5784, allocations: 107.9 kB / 0.6363 GB, free: 1.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.581, allocations: 1.833 MB / 0.6381 GB, free: 15.53 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.581, allocations: 4 kB / 0.6381 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.5812, allocations: 47.98 kB / 0.6382 GB, free: 15.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.827e-05/0.5813, allocations: 97.95 kB / 0.6382 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.5838, allocations: 1.694 MB / 0.6399 GB, free: 13.69 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.009257/0.593, allocations: 6.912 MB / 0.6466 GB, free: 6.301 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.5943, allocations: 0.875 MB / 0.6475 GB, free: 5.422 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006398/0.595, allocations: 454.3 kB / 0.6479 GB, free: 4.977 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001726/0.5951, allocations: 139.6 kB / 0.6481 GB, free: 4.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.5952, allocations: 47.12 kB / 0.6481 GB, free: 4.762 MB / 462.1 MB Notification: Performance of pre-optimization done (n=60): time 2.194e-06/0.5952, allocations: 3.938 kB / 0.6481 GB, free: 4.758 MB / 462.1 MB Notification: Performance of matching and sorting (n=72): time 0.01039/0.6056, allocations: 4.103 MB / 0.6521 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.6057, allocations: 111.5 kB / 0.6522 GB, free: 448 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/0.607, allocations: 1.109 MB / 0.6533 GB, free: 15.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.6072, allocations: 45.7 kB / 0.6534 GB, free: 15.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003833/0.6076, allocations: 0.5184 MB / 0.6539 GB, free: 14.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.6078, allocations: 272.3 kB / 0.6541 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003443/0.6081, allocations: 206.5 kB / 0.6543 GB, free: 14.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.6083, allocations: 349.9 kB / 0.6547 GB, free: 13.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000898/0.6092, allocations: 0.5875 MB / 0.6552 GB, free: 13.32 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.6102, allocations: 0.8643 MB / 0.6561 GB, free: 12.33 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001908/0.6122, allocations: 1.454 MB / 0.6575 GB, free: 10.77 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.6122, allocations: 5.125 kB / 0.6575 GB, free: 10.77 MB / 478.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003111/0.6153, allocations: 1.996 MB / 0.6594 GB, free: 8.754 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.6153, allocations: 11.98 kB / 0.6595 GB, free: 8.742 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.6154, allocations: 8.844 kB / 0.6595 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00451/0.6199, allocations: 1.312 MB / 0.6607 GB, free: 7.418 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006412/0.6205, allocations: 151.7 kB / 0.6609 GB, free: 7.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002726/0.6233, allocations: 1.924 MB / 0.6628 GB, free: 5.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008962/0.6242, allocations: 43.97 kB / 0.6628 GB, free: 5.277 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.6243, allocations: 63.98 kB / 0.6629 GB, free: 5.215 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.000607/0.6249, allocations: 397.4 kB / 0.6633 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.6251, allocations: 115.6 kB / 0.6634 GB, free: 4.703 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00238/0.6275, allocations: 1.395 MB / 0.6647 GB, free: 3.297 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.6275, allocations: 8 kB / 0.6647 GB, free: 3.289 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.6276, allocations: 3.938 kB / 0.6647 GB, free: 3.285 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.6276, allocations: 7.984 kB / 0.6647 GB, free: 3.277 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/0.6316, allocations: 2.68 MB / 0.6674 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.6316, allocations: 3.938 kB / 0.6674 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001796/0.6335, allocations: 324.2 kB / 0.6677 GB, free: 216 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001897/0.6337, allocations: 76.66 kB / 0.6677 GB, free: 136 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.988e-05/0.6338, allocations: 39.97 kB / 0.6678 GB, free: 96 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002464/0.6362, allocations: 3.029 MB / 0.6707 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6362, allocations: 0 / 0.6707 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002809/0.6391, allocations: 1.904 MB / 0.6726 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008269/0.6399, allocations: 331.6 kB / 0.6729 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.6401, allocations: 27.92 kB / 0.6729 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008512/0.6409, allocations: 47.95 kB / 0.673 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.6411, allocations: 68.56 kB / 0.6731 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.6412, allocations: 63.95 kB / 0.6731 GB, free: 10.31 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009969/0.6422, allocations: 0.7892 MB / 0.6739 GB, free: 9.512 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6423, allocations: 0 / 0.6739 GB, free: 9.512 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001614/0.6439, allocations: 0.5193 MB / 0.6744 GB, free: 8.992 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.00239/0.6463, allocations: 0.7907 MB / 0.6752 GB, free: 8.199 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00299/0.6493, allocations: 1.474 MB / 0.6766 GB, free: 6.727 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.6493, allocations: 4.719 kB / 0.6766 GB, free: 6.723 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.6509, allocations: 0.8574 MB / 0.6774 GB, free: 5.852 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002962/0.6539, allocations: 0.7746 MB / 0.6782 GB, free: 5.082 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004755/0.6587, allocations: 2.883 MB / 0.681 GB, free: 2.164 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007578/0.6595, allocations: 1.168 MB / 0.6822 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001136/0.6606, allocations: 421.8 kB / 0.6826 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/0.661, allocations: 107.4 kB / 0.6827 GB, free: 456 kB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.661, allocations: 0 / 0.6827 GB, free: 456 kB / 494.1 MB Notification: Performance of Templates: time 0.05719/0.7182, allocations: 39.98 MB / 0.7217 GB, free: 8.457 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 -s gbode -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