Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0009085/0.0009089, allocations: 99.33 kB / 16.98 MB, free: 6.398 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.0009435/0.0009436, allocations: 183.8 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2152/0.2152, allocations: 44.22 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003545, allocations: 8 kB / 409.5 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1438, allocations: 61.92 MB / 471.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5033/0.6472, allocations: 143.8 MB / 0.6008 GB, free: 2.121 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01083/0.6581, allocations: 6.558 MB / 0.6073 GB, free: 11.55 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.6594, allocations: 19.81 kB / 0.6073 GB, free: 11.54 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.6608, allocations: 330.4 kB / 0.6076 GB, free: 11.21 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005016/0.6658, allocations: 1.288 MB / 0.6088 GB, free: 9.922 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003852/0.6697, allocations: 1.105 MB / 0.6099 GB, free: 8.824 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002767/0.6725, allocations: 1.247 MB / 0.6111 GB, free: 7.574 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.6737, allocations: 0.6629 MB / 0.6118 GB, free: 6.902 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003379/0.6771, allocations: 1.317 MB / 0.6131 GB, free: 5.582 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00317/0.6803, allocations: 1.43 MB / 0.6145 GB, free: 4.148 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.6805, allocations: 56 kB / 0.6145 GB, free: 4.094 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002825/0.6833, allocations: 1.034 MB / 0.6155 GB, free: 3.059 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006606/0.684, allocations: 0.5925 MB / 0.6161 GB, free: 2.465 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004456/0.6845, allocations: 293.1 kB / 0.6164 GB, free: 2.172 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002717/0.6872, allocations: 1.916 MB / 0.6183 GB, free: 264 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.6872, allocations: 0 / 0.6183 GB, free: 264 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6872, allocations: 0 / 0.6183 GB, free: 264 kB / 446.1 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.6872, allocations: 0 / 0.6183 GB, free: 264 kB / 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.003461/0.6907, allocations: 1.443 MB / 0.6197 GB, free: 14.76 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.6908, allocations: 8.562 kB / 0.6197 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001494/0.6923, allocations: 326.2 kB / 0.62 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.6937, allocations: 0.7185 MB / 0.6207 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.6939, allocations: 141.4 kB / 0.6208 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/0.6941, allocations: 103.9 kB / 0.6209 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002884/0.697, allocations: 1.833 MB / 0.6227 GB, free: 11.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.697, allocations: 9.75 kB / 0.6227 GB, free: 11.51 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/0.6972, allocations: 43.98 kB / 0.6228 GB, free: 11.47 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/0.6973, allocations: 97.89 kB / 0.6229 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002681/0.7, allocations: 1.71 MB / 0.6245 GB, free: 9.664 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.01077/0.7108, allocations: 6.862 MB / 0.6312 GB, free: 2.328 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.7122, allocations: 0.7995 MB / 0.632 GB, free: 1.523 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001657/0.7124, allocations: 93.66 kB / 0.6321 GB, free: 1.414 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.628e-05/0.7125, allocations: 51.12 kB / 0.6322 GB, free: 1.355 MB / 462.1 MB Notification: Performance of pre-optimization done (n=60): time 3.406e-06/0.7125, allocations: 0 / 0.6322 GB, free: 1.355 MB / 462.1 MB Notification: Performance of matching and sorting (n=72): time 0.01183/0.7244, allocations: 4.181 MB / 0.6362 GB, free: 13.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.7245, allocations: 115.5 kB / 0.6363 GB, free: 12.96 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.7262, allocations: 1.089 MB / 0.6374 GB, free: 11.85 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001587/0.7264, allocations: 45.7 kB / 0.6375 GB, free: 11.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004849/0.7268, allocations: 0.53 MB / 0.638 GB, free: 11.26 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002533/0.7271, allocations: 260.3 kB / 0.6382 GB, free: 11 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-05/0.7272, allocations: 20 kB / 0.6382 GB, free: 10.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.7274, allocations: 345.9 kB / 0.6386 GB, free: 10.64 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009558/0.7283, allocations: 0.5914 MB / 0.6391 GB, free: 10.05 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.7295, allocations: 0.876 MB / 0.64 GB, free: 9.051 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.7307, allocations: 0.7095 MB / 0.6407 GB, free: 8.344 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.7307, allocations: 4 kB / 0.6407 GB, free: 8.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003552/0.7343, allocations: 2.016 MB / 0.6427 GB, free: 6.312 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.7343, allocations: 8 kB / 0.6427 GB, free: 6.305 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.7343, allocations: 8 kB / 0.6427 GB, free: 6.297 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005217/0.7396, allocations: 1.421 MB / 0.6441 GB, free: 4.879 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007105/0.7403, allocations: 143.7 kB / 0.6442 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/0.7435, allocations: 1.932 MB / 0.6461 GB, free: 2.777 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.7449, allocations: 115.7 kB / 0.6462 GB, free: 2.664 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.7451, allocations: 63.98 kB / 0.6463 GB, free: 2.602 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0008469/0.7459, allocations: 393.4 kB / 0.6466 GB, free: 2.207 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.7462, allocations: 114.7 kB / 0.6467 GB, free: 2.094 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/0.7488, allocations: 1.5 MB / 0.6482 GB, free: 0.582 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.7489, allocations: 8 kB / 0.6482 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/0.7489, allocations: 0 / 0.6482 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.7489, allocations: 7.984 kB / 0.6482 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004793/0.7537, allocations: 2.7 MB / 0.6509 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.7537, allocations: 0 / 0.6509 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/0.7555, allocations: 327.6 kB / 0.6512 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.7557, allocations: 72.72 kB / 0.6512 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.866e-05/0.7558, allocations: 36.17 kB / 0.6513 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002461/0.7583, allocations: 2.848 MB / 0.6541 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7583, allocations: 8 kB / 0.6541 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003093/0.7614, allocations: 1.924 MB / 0.6559 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009423/0.7624, allocations: 347.7 kB / 0.6563 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002228/0.7626, allocations: 31.94 kB / 0.6563 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009479/0.7635, allocations: 87.83 kB / 0.6564 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.7637, allocations: 56.56 kB / 0.6564 GB, free: 7.766 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.7638, allocations: 63.95 kB / 0.6565 GB, free: 7.703 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001084/0.7649, allocations: 0.793 MB / 0.6573 GB, free: 6.898 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7649, allocations: 0 / 0.6573 GB, free: 6.898 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001542/0.7665, allocations: 479.9 kB / 0.6577 GB, free: 6.43 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001934/0.7684, allocations: 0.5729 MB / 0.6583 GB, free: 5.859 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002938/0.7714, allocations: 1.477 MB / 0.6597 GB, free: 4.387 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.7714, allocations: 0.6562 kB / 0.6597 GB, free: 4.387 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001748/0.7732, allocations: 0.8701 MB / 0.6606 GB, free: 3.508 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003756/0.7769, allocations: 0.7096 MB / 0.6613 GB, free: 2.809 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005475/0.7824, allocations: 3.375 MB / 0.6646 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008877/0.7833, allocations: 1.188 MB / 0.6657 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001883/0.7852, allocations: 485.5 kB / 0.6662 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003846/0.7856, allocations: 119.4 kB / 0.6663 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/0.7856, allocations: 3.938 kB / 0.6663 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.05616/0.8418, allocations: 36.49 MB / 0.702 GB, free: 9.336 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches