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.001379/0.001379, allocations: 177.9 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.482/1.482, allocations: 205.4 MB / 222.6 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.00082/0.0008202, allocations: 99.8 kB / 270.9 MB, free: 8.352 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.5089/0.5089, allocations: 43.56 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004273/0.0004275, allocations: 16 kB / 431.4 MB, free: 6.141 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1663, allocations: 58.84 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.5094/0.6757, allocations: 167.2 MB / 0.642 GB, free: 8 kB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.01165/0.6874, allocations: 6.617 MB / 0.6484 GB, free: 9.379 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001824/0.6893, allocations: 27.75 kB / 0.6485 GB, free: 9.352 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001819/0.6912, allocations: 298.2 kB / 0.6488 GB, free: 9.059 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.006564/0.6978, allocations: 1.608 MB / 0.6503 GB, free: 7.453 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005011/0.7028, allocations: 1.218 MB / 0.6515 GB, free: 6.246 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.004006/0.7068, allocations: 2.551 MB / 0.654 GB, free: 3.691 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.7081, allocations: 457.9 kB / 0.6544 GB, free: 3.25 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005177/0.7133, allocations: 1.705 MB / 0.6561 GB, free: 1.543 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003569/0.7169, allocations: 1.543 MB / 0.6576 GB, free: 15.99 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003995/0.7173, allocations: 36 kB / 0.6576 GB, free: 15.96 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00409/0.7214, allocations: 1.421 MB / 0.659 GB, free: 14.54 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008261/0.7223, allocations: 422.9 kB / 0.6594 GB, free: 14.12 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007062/0.723, allocations: 229.2 kB / 0.6597 GB, free: 13.89 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00325/0.7263, allocations: 1.617 MB / 0.6612 GB, free: 12.27 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.7263, allocations: 0 / 0.6612 GB, free: 12.27 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.7263, allocations: 0 / 0.6612 GB, free: 12.27 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.053e-05/0.7264, allocations: 0 / 0.6612 GB, free: 12.27 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.003522/0.7299, allocations: 1.22 MB / 0.6624 GB, free: 11 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.73, allocations: 12.02 kB / 0.6624 GB, free: 10.99 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/0.7316, allocations: 290.6 kB / 0.6627 GB, free: 10.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/0.733, allocations: 0.59 MB / 0.6633 GB, free: 10.07 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.7332, allocations: 112.7 kB / 0.6634 GB, free: 9.953 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/0.7334, allocations: 67.98 kB / 0.6635 GB, free: 9.887 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/0.7358, allocations: 1.259 MB / 0.6647 GB, free: 8.559 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.7358, allocations: 3.938 kB / 0.6647 GB, free: 8.555 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001643/0.736, allocations: 32 kB / 0.6647 GB, free: 8.523 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001124/0.7361, allocations: 81.27 kB / 0.6648 GB, free: 8.445 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.7379, allocations: 1.063 MB / 0.6658 GB, free: 7.379 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.007428/0.7454, allocations: 4.892 MB / 0.6706 GB, free: 2.188 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005248/0.7459, allocations: 287.3 kB / 0.6709 GB, free: 1.898 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.7462, allocations: 144.8 kB / 0.671 GB, free: 1.754 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001901/0.7464, allocations: 142.8 kB / 0.6712 GB, free: 1.594 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.7465, allocations: 43.03 kB / 0.6712 GB, free: 1.543 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 3.186e-06/0.7465, allocations: 3.938 kB / 0.6712 GB, free: 1.539 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.2855/1.032, allocations: 1.735 MB / 0.6729 GB, free: 151.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/1.032, allocations: 133.6 kB / 0.673 GB, free: 151.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/1.034, allocations: 0.9312 MB / 0.6739 GB, free: 151 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.901e-05/1.034, allocations: 32.67 kB / 0.674 GB, free: 151 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004528/1.034, allocations: 0.5599 MB / 0.6745 GB, free: 150.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/1.034, allocations: 135.3 kB / 0.6747 GB, free: 150.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/1.034, allocations: 21.19 kB / 0.6747 GB, free: 150.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/1.035, allocations: 401.4 kB / 0.6751 GB, free: 150.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005179/1.035, allocations: 268.5 kB / 0.6753 GB, free: 150.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008154/1.036, allocations: 0.8647 MB / 0.6762 GB, free: 149.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007087/1.037, allocations: 451.7 kB / 0.6766 GB, free: 149.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.306e-05/1.037, allocations: 6.719 kB / 0.6766 GB, free: 149.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002268/1.039, allocations: 1.228 MB / 0.6778 GB, free: 149.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/1.039, allocations: 17.78 kB / 0.6778 GB, free: 149.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.793e-05/1.039, allocations: 19.12 kB / 0.6778 GB, free: 149.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001624/1.041, allocations: 291.5 kB / 0.6781 GB, free: 149.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006834/1.041, allocations: 204 kB / 0.6783 GB, free: 149.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/1.043, allocations: 0.9128 MB / 0.6792 GB, free: 148.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/1.044, allocations: 55.95 kB / 0.6792 GB, free: 148.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/1.044, allocations: 71 kB / 0.6793 GB, free: 148.8 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.0005888/1.045, allocations: 345.6 kB / 0.6796 GB, free: 148.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/1.045, allocations: 91.03 kB / 0.6797 GB, free: 148.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/1.046, allocations: 490.4 kB / 0.6802 GB, free: 148.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/1.046, allocations: 2.75 kB / 0.6802 GB, free: 148.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/1.046, allocations: 1.375 kB / 0.6802 GB, free: 148.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/1.046, allocations: 2.578 kB / 0.6802 GB, free: 148.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/1.048, allocations: 1.118 MB / 0.6813 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/1.048, allocations: 0 / 0.6813 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/1.049, allocations: 183.3 kB / 0.6815 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001325/1.05, allocations: 20.64 kB / 0.6815 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/1.05, allocations: 17.33 kB / 0.6815 GB, free: 148.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001835/1.051, allocations: 2.679 MB / 0.6841 GB, free: 145.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/1.051, allocations: 0 / 0.6841 GB, free: 145.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/1.053, allocations: 0.7079 MB / 0.6848 GB, free: 145.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004171/1.053, allocations: 204.8 kB / 0.685 GB, free: 144.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/1.053, allocations: 8.312 kB / 0.685 GB, free: 144.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004492/1.054, allocations: 28.52 kB / 0.685 GB, free: 144.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.869e-05/1.054, allocations: 21.66 kB / 0.6851 GB, free: 144.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/1.054, allocations: 20.23 kB / 0.6851 GB, free: 144.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000759/1.054, allocations: 0.6212 MB / 0.6857 GB, free: 144.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.054, allocations: 0 / 0.6857 GB, free: 144.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001615/1.056, allocations: 429.8 kB / 0.6861 GB, free: 144.6 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.001813/1.058, allocations: 0.6437 MB / 0.6867 GB, free: 144.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001425/1.059, allocations: 0.6674 MB / 0.6874 GB, free: 144.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/1.059, allocations: 3.75 kB / 0.6874 GB, free: 144.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008229/1.06, allocations: 357.2 kB / 0.6877 GB, free: 144.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/1.062, allocations: 416.1 kB / 0.6881 GB, free: 144 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/1.065, allocations: 1.954 MB / 0.69 GB, free: 143 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/1.065, allocations: 1.029 MB / 0.691 GB, free: 142.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/1.066, allocations: 77.56 kB / 0.6911 GB, free: 142.2 MB / 490.7 MB Notification: Performance of SimCode: time 9.52e-07/1.066, allocations: 4 kB / 0.6911 GB, free: 142.2 MB / 490.7 MB Notification: Performance of Templates: time 0.03383/1.099, allocations: 23.13 MB / 0.7137 GB, free: 137.1 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