Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 180 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008922/0.000892, allocations: 97.05 kB / 270.9 MB, free: 8.34 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3777/0.3777, allocations: 43.56 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004117/0.0004118, allocations: 16 kB / 431.4 MB, free: 5.887 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1465, allocations: 58.83 MB / 490.2 MB, free: 10.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5333/0.6799, allocations: 167 MB / 0.6418 GB, free: 15.96 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.6921, allocations: 6.614 MB / 0.6483 GB, free: 9.336 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.6934, allocations: 23.81 kB / 0.6483 GB, free: 9.312 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.6949, allocations: 306.1 kB / 0.6486 GB, free: 9.012 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006867/0.7018, allocations: 1.625 MB / 0.6502 GB, free: 7.387 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006269/0.7081, allocations: 1.244 MB / 0.6514 GB, free: 6.156 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.004405/0.7125, allocations: 2.648 MB / 0.654 GB, free: 3.504 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.7142, allocations: 0.6362 MB / 0.6546 GB, free: 2.875 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005125/0.7193, allocations: 1.732 MB / 0.6563 GB, free: 1.141 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004117/0.7234, allocations: 1.695 MB / 0.658 GB, free: 15.44 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005052/0.724, allocations: 56 kB / 0.658 GB, free: 15.38 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004491/0.7285, allocations: 1.455 MB / 0.6594 GB, free: 13.93 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.7297, allocations: 0.6703 MB / 0.6601 GB, free: 13.25 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.731, allocations: 297.1 kB / 0.6604 GB, free: 12.96 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004097/0.7351, allocations: 2.046 MB / 0.6624 GB, free: 10.91 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.7351, allocations: 0 / 0.6624 GB, free: 10.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.7351, allocations: 0 / 0.6624 GB, free: 10.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.15e-05/0.7352, allocations: 0 / 0.6624 GB, free: 10.91 MB / 490.7 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.004298/0.7395, allocations: 1.419 MB / 0.6638 GB, free: 9.438 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.7396, allocations: 16.02 kB / 0.6638 GB, free: 9.422 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001855/0.7414, allocations: 310.2 kB / 0.6641 GB, free: 9.117 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.7433, allocations: 0.7302 MB / 0.6648 GB, free: 8.348 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.7436, allocations: 137.4 kB / 0.6649 GB, free: 8.199 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003817/0.744, allocations: 107.9 kB / 0.665 GB, free: 8.094 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004037/0.748, allocations: 1.834 MB / 0.6668 GB, free: 6.191 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.523e-05/0.7481, allocations: 11.89 kB / 0.6668 GB, free: 6.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002582/0.7483, allocations: 47.98 kB / 0.6669 GB, free: 6.133 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001662/0.7485, allocations: 93.89 kB / 0.667 GB, free: 6.043 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003338/0.7519, allocations: 1.706 MB / 0.6686 GB, free: 4.336 MB / 490.7 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.3326/1.084, allocations: 6.919 MB / 0.6754 GB, free: 148.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/1.086, allocations: 0.8484 MB / 0.6762 GB, free: 148.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009239/1.087, allocations: 438.5 kB / 0.6766 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002329/1.087, allocations: 147.9 kB / 0.6768 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.412e-05/1.088, allocations: 48.95 kB / 0.6768 GB, free: 148.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=60): time 5.14e-06/1.088, allocations: 0 / 0.6768 GB, free: 148.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=72): time 0.01252/1.1, allocations: 4.136 MB / 0.6809 GB, free: 147.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/1.1, allocations: 109.1 kB / 0.681 GB, free: 147.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001557/1.102, allocations: 1.102 MB / 0.682 GB, free: 147 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/1.102, allocations: 43.67 kB / 0.6821 GB, free: 147 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003437/1.102, allocations: 0.5232 MB / 0.6826 GB, free: 146.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/1.102, allocations: 267.7 kB / 0.6829 GB, free: 146.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-05/1.103, allocations: 18.97 kB / 0.6829 GB, free: 146.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/1.103, allocations: 347.2 kB / 0.6832 GB, free: 146 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008703/1.104, allocations: 0.5734 MB / 0.6838 GB, free: 145.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/1.105, allocations: 0.8632 MB / 0.6846 GB, free: 145.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009788/1.106, allocations: 0.6859 MB / 0.6853 GB, free: 145 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.106, allocations: 6.719 kB / 0.6853 GB, free: 145 MB / 490.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003249/1.109, allocations: 1.974 MB / 0.6872 GB, free: 144.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/1.109, allocations: 9.062 kB / 0.6872 GB, free: 144.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/1.109, allocations: 12.89 kB / 0.6872 GB, free: 144.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004616/1.113, allocations: 1.391 MB / 0.6886 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005632/1.114, allocations: 142.2 kB / 0.6887 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002779/1.117, allocations: 1.923 MB / 0.6906 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/1.118, allocations: 105.7 kB / 0.6907 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/1.118, allocations: 66.88 kB / 0.6908 GB, free: 143 MB / 490.7 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.000817/1.119, allocations: 398.2 kB / 0.6911 GB, free: 142.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/1.119, allocations: 115.5 kB / 0.6913 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/1.122, allocations: 1.383 MB / 0.6926 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/1.122, allocations: 16.48 kB / 0.6926 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/1.122, allocations: 5.016 kB / 0.6926 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/1.122, allocations: 3.281 kB / 0.6926 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003717/1.125, allocations: 2.661 MB / 0.6952 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/1.125, allocations: 4.906 kB / 0.6952 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00168/1.127, allocations: 327.8 kB / 0.6955 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002002/1.127, allocations: 67.38 kB / 0.6956 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.557e-05/1.127, allocations: 38.78 kB / 0.6956 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002021/1.129, allocations: 2.832 MB / 0.6984 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.129, allocations: 3.75 kB / 0.6984 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/1.132, allocations: 1.876 MB / 0.7002 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006528/1.133, allocations: 344.8 kB / 0.7006 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/1.133, allocations: 29.3 kB / 0.7006 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009002/1.134, allocations: 89.89 kB / 0.7007 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/1.134, allocations: 60.11 kB / 0.7007 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/1.134, allocations: 69.38 kB / 0.7008 GB, free: 137.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009592/1.135, allocations: 0.7877 MB / 0.7016 GB, free: 136.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.135, allocations: 0 / 0.7016 GB, free: 136.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001593/1.137, allocations: 0.5131 MB / 0.7021 GB, free: 136.7 MB / 490.7 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.001985/1.139, allocations: 0.6813 MB / 0.7027 GB, free: 136.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002437/1.141, allocations: 1.459 MB / 0.7042 GB, free: 136.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/1.141, allocations: 5.031 kB / 0.7042 GB, free: 136.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/1.142, allocations: 0.8407 MB / 0.705 GB, free: 135.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002989/1.145, allocations: 0.7229 MB / 0.7057 GB, free: 135.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005079/1.151, allocations: 3.441 MB / 0.7091 GB, free: 133.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/1.151, allocations: 1.175 MB / 0.7102 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/1.152, allocations: 111.7 kB / 0.7103 GB, free: 133.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/1.152, allocations: 0 / 0.7103 GB, free: 133.1 MB / 490.7 MB Notification: Performance of Templates: time 0.05247/1.204, allocations: 32.2 MB / 0.7418 GB, free: 115.1 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches