Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 175 kB / 16.72 MB, free: 5.082 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.22/1.22, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.000688/0.000688, allocations: 104.8 kB / 271.2 MB, free: 8.242 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.2775/0.2775, allocations: 43.56 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003439/0.0003441, allocations: 12 kB / 432 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.093, allocations: 58.85 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.3002/0.3932, allocations: 167.2 MB / 0.6426 GB, free: 15.64 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.007371/0.4007, allocations: 6.628 MB / 0.6491 GB, free: 8.996 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006856/0.4014, allocations: 27.75 kB / 0.6491 GB, free: 8.969 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008947/0.4023, allocations: 350 kB / 0.6494 GB, free: 8.625 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.003807/0.4061, allocations: 1.8 MB / 0.6512 GB, free: 6.824 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003168/0.4093, allocations: 1.4 MB / 0.6526 GB, free: 5.441 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.002363/0.4117, allocations: 2.564 MB / 0.6551 GB, free: 2.875 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006055/0.4123, allocations: 474.5 kB / 0.6555 GB, free: 2.418 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003201/0.4155, allocations: 1.781 MB / 0.6573 GB, free: 0.6328 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.4178, allocations: 1.562 MB / 0.6588 GB, free: 15.06 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001355/0.418, allocations: 36 kB / 0.6588 GB, free: 15.03 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003232/0.4212, allocations: 2.122 MB / 0.6609 GB, free: 12.9 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003893/0.4216, allocations: 414.9 kB / 0.6613 GB, free: 12.5 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005722/0.4222, allocations: 0.5191 MB / 0.6618 GB, free: 11.97 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00177/0.424, allocations: 1.656 MB / 0.6634 GB, free: 10.31 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.424, allocations: 4 kB / 0.6634 GB, free: 10.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.424, allocations: 7.938 kB / 0.6634 GB, free: 10.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.424, allocations: 0 / 0.6634 GB, free: 10.3 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002172/0.4262, allocations: 1.208 MB / 0.6646 GB, free: 9.039 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.4262, allocations: 8.031 kB / 0.6646 GB, free: 9.031 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/0.4274, allocations: 286.6 kB / 0.6649 GB, free: 8.75 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008495/0.4282, allocations: 0.609 MB / 0.6655 GB, free: 8.102 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-05/0.4283, allocations: 116.6 kB / 0.6656 GB, free: 7.977 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.4285, allocations: 71.92 kB / 0.6657 GB, free: 7.906 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.4301, allocations: 1.256 MB / 0.6669 GB, free: 6.582 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.4302, allocations: 7.984 kB / 0.6669 GB, free: 6.574 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.4303, allocations: 28 kB / 0.6669 GB, free: 6.547 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.184e-05/0.4304, allocations: 81.2 kB / 0.667 GB, free: 6.469 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.4319, allocations: 1.067 MB / 0.668 GB, free: 5.398 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.005402/0.4373, allocations: 4.9 MB / 0.6728 GB, free: 204 kB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1605/0.5978, allocations: 288.2 kB / 0.6731 GB, free: 151.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.5981, allocations: 145 kB / 0.6732 GB, free: 151.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001753/0.5983, allocations: 134.3 kB / 0.6734 GB, free: 151.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.5984, allocations: 40.55 kB / 0.6734 GB, free: 151.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 2.696e-06/0.5984, allocations: 0.75 kB / 0.6734 GB, free: 151.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.005235/0.6036, allocations: 1.732 MB / 0.6751 GB, free: 151 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.6037, allocations: 138.8 kB / 0.6752 GB, free: 150.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.6049, allocations: 0.9298 MB / 0.6761 GB, free: 150.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.6049, allocations: 35.7 kB / 0.6762 GB, free: 150.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.6052, allocations: 0.5606 MB / 0.6767 GB, free: 150.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.43e-05/0.6053, allocations: 130.6 kB / 0.6768 GB, free: 150.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-05/0.6053, allocations: 21.06 kB / 0.6769 GB, free: 150.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.6054, allocations: 403.8 kB / 0.6772 GB, free: 149.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.6059, allocations: 270.3 kB / 0.6775 GB, free: 149.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006442/0.6065, allocations: 0.8595 MB / 0.6783 GB, free: 149.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009943/0.6076, allocations: 1.17 MB / 0.6795 GB, free: 148.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-06/0.6076, allocations: 6.984 kB / 0.6795 GB, free: 148.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001779/0.6094, allocations: 1.226 MB / 0.6807 GB, free: 148.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.6094, allocations: 14.55 kB / 0.6807 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.468e-05/0.6094, allocations: 19.25 kB / 0.6807 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.6107, allocations: 288.4 kB / 0.681 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/0.6112, allocations: 203.8 kB / 0.6812 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009673/0.6122, allocations: 0.9196 MB / 0.6821 GB, free: 147.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007541/0.6129, allocations: 71 kB / 0.6822 GB, free: 147.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.082e-05/0.613, allocations: 68.45 kB / 0.6822 GB, free: 147.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003997/0.6134, allocations: 343.2 kB / 0.6825 GB, free: 147.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.6136, allocations: 96.41 kB / 0.6826 GB, free: 147.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008649/0.6144, allocations: 484.1 kB / 0.6831 GB, free: 147.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.6144, allocations: 2.938 kB / 0.6831 GB, free: 147.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.6145, allocations: 6.625 kB / 0.6831 GB, free: 147.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.6145, allocations: 1.031 kB / 0.6831 GB, free: 147.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.6159, allocations: 1.122 MB / 0.6842 GB, free: 146.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.6159, allocations: 0 / 0.6842 GB, free: 146.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008915/0.6168, allocations: 177.8 kB / 0.6844 GB, free: 146.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-05/0.6169, allocations: 30.41 kB / 0.6844 GB, free: 146.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.6169, allocations: 14.25 kB / 0.6844 GB, free: 146.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001304/0.6182, allocations: 2.676 MB / 0.687 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.6182, allocations: 0 / 0.687 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008105/0.6191, allocations: 0.6949 MB / 0.6877 GB, free: 143.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.6193, allocations: 212.6 kB / 0.6879 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.839e-05/0.6194, allocations: 6.969 kB / 0.6879 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004043/0.6198, allocations: 23.2 kB / 0.6879 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.6199, allocations: 32.66 kB / 0.688 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.5e-05/0.62, allocations: 22.3 kB / 0.688 GB, free: 143.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006299/0.6206, allocations: 0.6106 MB / 0.6886 GB, free: 143.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6206, allocations: 0 / 0.6886 GB, free: 143.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00132/0.6219, allocations: 433.9 kB / 0.689 GB, free: 143.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,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 (33): * Single equations (assignments): 31 * 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.001988/0.6239, allocations: 0.7581 MB / 0.6897 GB, free: 143 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.6252, allocations: 0.6626 MB / 0.6904 GB, free: 142.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.6253, allocations: 1 kB / 0.6904 GB, free: 142.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008387/0.6261, allocations: 363.2 kB / 0.6907 GB, free: 142.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/0.6279, allocations: 399.7 kB / 0.6911 GB, free: 142.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.63, allocations: 1.954 MB / 0.693 GB, free: 141.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.6304, allocations: 1.033 MB / 0.694 GB, free: 140.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.6306, allocations: 75.02 kB / 0.6941 GB, free: 140.7 MB / 490.7 MB Notification: Performance of SimCode: time 6.11e-07/0.6306, allocations: 7.125 kB / 0.6941 GB, free: 140.6 MB / 490.7 MB Notification: Performance of Templates: time 0.02586/0.6564, allocations: 23.18 MB / 0.7167 GB, free: 135.3 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches