Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 178.3 kB / 8.518 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.4 MB / 230.3 MB, free: 7.762 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009524/0.0009525, allocations: 84.75 kB / 281.2 MB, free: 5.523 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.183/0.183, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.923e-06/6.944e-06, allocations: 0 / 444 MB, free: 15.63 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1422, allocations: 61.91 MB / 0.4941 GB, free: 1.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.397/5.539, allocations: 2.8 GB / 3.294 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/5.54, allocations: 89.25 kB / 3.294 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.577/7.116, allocations: 0.4944 GB / 3.788 GB, free: 56.86 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001273/7.116, allocations: 21.27 kB / 3.788 GB, free: 56.85 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.009219/7.126, allocations: 1.768 MB / 3.79 GB, free: 55.87 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/7.126, allocations: 8.531 kB / 3.79 GB, free: 55.87 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003106/7.129, allocations: 349.7 kB / 3.79 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/7.131, allocations: 0.592 MB / 3.791 GB, free: 55.42 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/7.131, allocations: 96.89 kB / 3.791 GB, free: 55.35 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/7.131, allocations: 40.03 kB / 3.791 GB, free: 55.35 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001657/7.133, allocations: 0.7108 MB / 3.792 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/7.135, allocations: 0.9053 MB / 3.793 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/7.135, allocations: 5.781 kB / 3.793 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/7.135, allocations: 7.797 kB / 3.793 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.747e-05/7.135, allocations: 46.25 kB / 3.793 GB, free: 54.58 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1049/7.24, allocations: 52.88 MB / 3.844 GB, free: 7.895 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004587/7.24, allocations: 249.8 kB / 3.845 GB, free: 7.645 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/7.241, allocations: 188.9 kB / 3.845 GB, free: 7.457 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01615/7.257, allocations: 8.087 MB / 3.853 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.983e-05/7.257, allocations: 35.19 kB / 3.853 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=37): time 1.994e-06/7.257, allocations: 0 / 3.853 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=41): time 0.004774/7.262, allocations: 1.442 MB / 3.854 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/7.262, allocations: 132.5 kB / 3.854 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008597/7.263, allocations: 493.9 kB / 3.855 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.663e-05/7.263, allocations: 29.7 kB / 3.855 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/7.263, allocations: 362.5 kB / 3.855 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/7.263, allocations: 142 kB / 3.855 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/7.263, allocations: 0 / 3.855 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001784/7.263, allocations: 374.8 kB / 3.856 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004163/7.264, allocations: 241.5 kB / 3.856 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006357/7.264, allocations: 0.5617 MB / 3.856 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007987/7.265, allocations: 336.5 kB / 3.857 GB, free: 10 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/7.265, allocations: 4 kB / 3.857 GB, free: 10 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002692/7.268, allocations: 1.108 MB / 3.858 GB, free: 8.883 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/7.268, allocations: 4 kB / 3.858 GB, free: 8.879 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/7.268, allocations: 8 kB / 3.858 GB, free: 8.871 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002262/7.268, allocations: 60.83 kB / 3.858 GB, free: 8.809 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/7.27, allocations: 308.2 kB / 3.858 GB, free: 8.508 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/7.272, allocations: 1.987 MB / 3.86 GB, free: 6.387 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009216/7.273, allocations: 87.91 kB / 3.86 GB, free: 6.301 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.122e-05/7.273, allocations: 47.98 kB / 3.86 GB, free: 6.254 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002186/7.273, allocations: 144.6 kB / 3.86 GB, free: 6.105 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009234/7.274, allocations: 266.8 kB / 3.861 GB, free: 5.848 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002412/7.276, allocations: 1.806 MB / 3.862 GB, free: 4.035 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/7.276, allocations: 27.97 kB / 3.862 GB, free: 4.008 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/7.276, allocations: 0 / 3.862 GB, free: 4.008 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/7.276, allocations: 11.89 kB / 3.862 GB, free: 3.996 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003719/7.28, allocations: 2.75 MB / 3.865 GB, free: 1.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/7.28, allocations: 0 / 3.865 GB, free: 1.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/7.281, allocations: 199.8 kB / 3.865 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000276/7.281, allocations: 88.69 kB / 3.865 GB, free: 0.8945 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/7.282, allocations: 4 kB / 3.865 GB, free: 0.8906 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1928/7.474, allocations: 2.014 MB / 3.867 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/7.474, allocations: 4.25 kB / 3.867 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002553/7.477, allocations: 2.17 MB / 3.87 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003545/7.477, allocations: 232.1 kB / 3.87 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/7.477, allocations: 9.906 kB / 3.87 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005243/7.478, allocations: 48.58 kB / 3.87 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.103e-05/7.478, allocations: 36.2 kB / 3.87 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.913e-05/7.478, allocations: 24.69 kB / 3.87 GB, free: 124 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0003914/7.479, allocations: 356.5 kB / 3.87 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005852/7.484, allocations: 1.118 MB / 3.871 GB, free: 123.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005757/7.49, allocations: 1.727 MB / 3.873 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001944/7.492, allocations: 1.16 MB / 3.874 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/7.492, allocations: 0 / 3.874 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/7.494, allocations: 0.9338 MB / 3.875 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/7.495, allocations: 262.4 kB / 3.875 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/7.497, allocations: 1.658 MB / 3.877 GB, free: 123.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000554/7.498, allocations: 1.15 MB / 3.878 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of SimCode: time 3.01e-07/7.498, allocations: 0 / 3.878 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of Templates: time 0.04605/7.544, allocations: 38.75 MB / 3.916 GB, free: 122.2 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches