Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009527/0.0009527, allocations: 194.9 kB / 16.09 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.5 MB / 243.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008283/0.0008285, allocations: 94.11 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3753/0.3753, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002994, allocations: 12 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3696, allocations: 62.96 MB / 0.5159 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.188/0.5576, allocations: 161.7 MB / 0.6738 GB, free: 7.328 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.009223/0.5669, allocations: 6.206 MB / 0.6799 GB, free: 1.109 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.5681, allocations: 23.81 kB / 0.6799 GB, free: 1.086 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.5695, allocations: 370 kB / 0.6803 GB, free: 0.7227 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.3456/0.9151, allocations: 1.596 MB / 0.6818 GB, free: 5.387 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004106/0.9193, allocations: 1.262 MB / 0.683 GB, free: 5.375 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.003654/0.923, allocations: 2.675 MB / 0.6857 GB, free: 5.371 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.924, allocations: 0.6524 MB / 0.6863 GB, free: 5.301 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003463/0.9274, allocations: 1.702 MB / 0.688 GB, free: 5.27 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002726/0.9302, allocations: 1.737 MB / 0.6897 GB, free: 5.238 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001746/0.9304, allocations: 55.47 kB / 0.6897 GB, free: 5.238 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003497/0.9339, allocations: 1.96 MB / 0.6916 GB, free: 5.223 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007399/0.9346, allocations: 0.6677 MB / 0.6923 GB, free: 5.223 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.9359, allocations: 0.7023 MB / 0.693 GB, free: 21.19 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.003043/0.9389, allocations: 2.019 MB / 0.6949 GB, free: 21.07 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.939, allocations: 1.938 kB / 0.6949 GB, free: 21.07 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.633e-06/0.939, allocations: 0 / 0.6949 GB, free: 21.07 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.279e-05/0.939, allocations: 0 / 0.6949 GB, free: 21.07 MB / 0.4948 GB 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.003424/0.9424, allocations: 1.437 MB / 0.6963 GB, free: 20.31 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.9425, allocations: 8.969 kB / 0.6963 GB, free: 20.31 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/0.9439, allocations: 316.1 kB / 0.6966 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.9451, allocations: 0.7443 MB / 0.6974 GB, free: 19.95 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.9453, allocations: 145.2 kB / 0.6975 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.9455, allocations: 104.4 kB / 0.6976 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002979/0.9485, allocations: 1.836 MB / 0.6994 GB, free: 19.68 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.454e-05/0.9485, allocations: 5.688 kB / 0.6994 GB, free: 19.68 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.9487, allocations: 47.09 kB / 0.6995 GB, free: 19.67 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/0.9489, allocations: 98.62 kB / 0.6995 GB, free: 19.67 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003332/0.9522, allocations: 1.703 MB / 0.7012 GB, free: 19.66 MB / 0.4948 GB 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.00983/0.962, allocations: 6.885 MB / 0.7079 GB, free: 16.15 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.9634, allocations: 0.848 MB / 0.7088 GB, free: 16.11 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006971/0.9641, allocations: 446.3 kB / 0.7092 GB, free: 16.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001529/0.9643, allocations: 106.1 kB / 0.7093 GB, free: 16.01 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.9643, allocations: 47.38 kB / 0.7093 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=60): time 2.675e-06/0.9644, allocations: 0 / 0.7093 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of matching and sorting (n=72): time 0.009838/0.9742, allocations: 4.144 MB / 0.7134 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.9743, allocations: 114.3 kB / 0.7135 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.9756, allocations: 1.096 MB / 0.7146 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.9758, allocations: 45.33 kB / 0.7146 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003207/0.9761, allocations: 0.5214 MB / 0.7151 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.9763, allocations: 272.2 kB / 0.7154 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.9764, allocations: 19.16 kB / 0.7154 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.9765, allocations: 346.4 kB / 0.7157 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007985/0.9773, allocations: 0.5716 MB / 0.7163 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009369/0.9783, allocations: 0.8569 MB / 0.7171 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001683/0.9799, allocations: 1.428 MB / 0.7185 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.98, allocations: 3.281 kB / 0.7185 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002731/0.9827, allocations: 1.98 MB / 0.7204 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.9827, allocations: 11.97 kB / 0.7205 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.9827, allocations: 8.5 kB / 0.7205 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004388/0.9871, allocations: 1.419 MB / 0.7218 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000558/0.9877, allocations: 135.5 kB / 0.722 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.9903, allocations: 1.918 MB / 0.7239 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.9914, allocations: 115.2 kB / 0.724 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.9916, allocations: 62.62 kB / 0.724 GB, free: 12.36 MB / 0.4948 GB 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.0007899/0.9924, allocations: 406.2 kB / 0.7244 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/0.9925, allocations: 114.8 kB / 0.7245 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/0.9948, allocations: 1.482 MB / 0.726 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.9948, allocations: 11.16 kB / 0.726 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.9948, allocations: 0 / 0.726 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.9948, allocations: 3.984 kB / 0.726 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003791/0.9986, allocations: 2.677 MB / 0.7286 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.9987, allocations: 0 / 0.7286 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001686/1, allocations: 327.6 kB / 0.7289 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001695/1.001, allocations: 66.12 kB / 0.729 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-05/1.001, allocations: 42.84 kB / 0.729 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002227/1.003, allocations: 2.852 MB / 0.7318 GB, free: 8.117 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.003, allocations: 0 / 0.7318 GB, free: 8.117 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00275/1.006, allocations: 1.887 MB / 0.7336 GB, free: 7.668 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008242/1.006, allocations: 337.7 kB / 0.734 GB, free: 7.484 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000344/1.007, allocations: 27.58 kB / 0.734 GB, free: 7.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/1.008, allocations: 86.34 kB / 0.7341 GB, free: 7.449 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/1.008, allocations: 59.64 kB / 0.7341 GB, free: 7.426 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/1.008, allocations: 68.47 kB / 0.7342 GB, free: 7.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001201/1.01, allocations: 0.7864 MB / 0.735 GB, free: 7.176 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2e-07/1.01, allocations: 0 / 0.735 GB, free: 7.176 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001914/1.011, allocations: 488.8 kB / 0.7354 GB, free: 7.141 MB / 0.4948 GB 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.00267/1.014, allocations: 0.6888 MB / 0.7361 GB, free: 6.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002533/1.017, allocations: 1.454 MB / 0.7375 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.017, allocations: 0.6562 kB / 0.7375 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001534/1.018, allocations: 0.8488 MB / 0.7383 GB, free: 6.375 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/1.022, allocations: 0.7256 MB / 0.7391 GB, free: 5.949 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005974/1.028, allocations: 3.425 MB / 0.7424 GB, free: 2.816 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/1.029, allocations: 1.177 MB / 0.7436 GB, free: 1.672 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005591/1.03, allocations: 115.4 kB / 0.7437 GB, free: 1.559 MB / 0.4948 GB Notification: Performance of SimCode: time 7.92e-07/1.03, allocations: 0 / 0.7437 GB, free: 1.559 MB / 0.4948 GB Notification: Performance of Templates: time 0.04698/1.077, allocations: 31.67 MB / 0.7746 GB, free: 2.203 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches