Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") [: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.001331/0.001331, allocations: 182.7 kB / 8.523 MB, free: 1.781 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.347/1.347, allocations: 221.4 MB / 230.3 MB, free: 7.746 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.0009704/0.0009705, allocations: 92.67 kB / 281.2 MB, free: 5.504 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.1894/0.1894, allocations: 44.16 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.683e-06/6.703e-06, allocations: 224 / 444.1 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1236, allocations: 61.9 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.436/5.559, allocations: 2.798 GB / 3.292 GB, free: 159.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/5.56, allocations: 95.17 kB / 3.292 GB, free: 159.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.586/7.146, allocations: 0.4921 GB / 3.784 GB, free: 63.11 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.46e-05/7.146, allocations: 19.03 kB / 3.784 GB, free: 63.11 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.009262/7.155, allocations: 1.703 MB / 3.786 GB, free: 62.18 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/7.155, allocations: 7.656 kB / 3.786 GB, free: 62.18 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003105/7.158, allocations: 244.1 kB / 3.786 GB, free: 62.12 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/7.16, allocations: 0.5833 MB / 3.787 GB, free: 61.75 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/7.16, allocations: 93.22 kB / 3.787 GB, free: 61.68 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/7.161, allocations: 37.56 kB / 3.787 GB, free: 61.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001684/7.162, allocations: 0.6323 MB / 3.788 GB, free: 61.47 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/7.164, allocations: 0.8902 MB / 3.789 GB, free: 60.94 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/7.164, allocations: 3.938 kB / 3.789 GB, free: 60.94 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/7.164, allocations: 3.719 kB / 3.789 GB, free: 60.94 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-05/7.164, allocations: 46.39 kB / 3.789 GB, free: 60.93 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.146/7.31, allocations: 67.63 MB / 3.855 GB, free: 6.492 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004544/7.311, allocations: 226 kB / 3.855 GB, free: 6.262 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/7.311, allocations: 156.8 kB / 3.855 GB, free: 6.105 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3183/7.629, allocations: 47.23 MB / 3.901 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/7.63, allocations: 41.16 kB / 3.901 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=31): time 2.324e-06/7.63, allocations: 0 / 3.901 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=36): time 0.004658/7.634, allocations: 1.367 MB / 3.902 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/7.634, allocations: 136.2 kB / 3.903 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009598/7.635, allocations: 0.4926 MB / 3.903 GB, free: 114 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.03e-05/7.635, allocations: 25.7 kB / 3.903 GB, free: 114 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/7.636, allocations: 383.8 kB / 3.903 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/7.636, allocations: 128.2 kB / 3.904 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/7.636, allocations: 0 / 3.904 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001158/7.636, allocations: 376.3 kB / 3.904 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/7.636, allocations: 230.1 kB / 3.904 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/7.637, allocations: 0.5776 MB / 3.905 GB, free: 113 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007593/7.638, allocations: 342.8 kB / 3.905 GB, free: 113 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/7.638, allocations: 3.719 kB / 3.905 GB, free: 113 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002171/7.64, allocations: 1.034 MB / 3.906 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/7.64, allocations: 6.969 kB / 3.906 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/7.64, allocations: 11.44 kB / 3.906 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/7.64, allocations: 72.75 kB / 3.906 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/7.641, allocations: 276 kB / 3.906 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/7.643, allocations: 2.032 MB / 3.908 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007457/7.644, allocations: 42.44 kB / 3.908 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.851e-05/7.644, allocations: 48.27 kB / 3.908 GB, free: 111.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * 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 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001852/7.644, allocations: 144.4 kB / 3.909 GB, free: 111 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005911/7.644, allocations: 208.3 kB / 3.909 GB, free: 111 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00221/7.647, allocations: 1.675 MB / 3.91 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/7.647, allocations: 21.97 kB / 3.91 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/7.647, allocations: 0 / 3.91 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/7.647, allocations: 7.484 kB / 3.91 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003274/7.65, allocations: 2.537 MB / 3.913 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/7.65, allocations: 0 / 3.913 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008752/7.651, allocations: 168 kB / 3.913 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000301/7.651, allocations: 116.6 kB / 3.913 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/7.651, allocations: 6.969 kB / 3.913 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001478/7.653, allocations: 2.116 MB / 3.915 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/7.653, allocations: 0 / 3.915 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002224/7.655, allocations: 1.973 MB / 3.917 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003517/7.655, allocations: 216.9 kB / 3.917 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.788e-05/7.655, allocations: 3.375 kB / 3.917 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/7.656, allocations: 21.58 kB / 3.917 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.061e-05/7.656, allocations: 20.22 kB / 3.917 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/7.656, allocations: 23.72 kB / 3.918 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0003892/7.656, allocations: 358.3 kB / 3.918 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005556/7.662, allocations: 1.124 MB / 3.919 GB, free: 108.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007076/7.669, allocations: 1.741 MB / 3.921 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00213/7.671, allocations: 1.101 MB / 3.922 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/7.671, allocations: 2.75 kB / 3.922 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001371/7.673, allocations: 0.8703 MB / 3.923 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/7.674, allocations: 240.8 kB / 3.923 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/7.676, allocations: 1.545 MB / 3.924 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006265/7.677, allocations: 1.129 MB / 3.925 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of SimCode: time 2.3e-07/7.677, allocations: 0 / 3.925 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.05152/7.728, allocations: 37.44 MB / 3.962 GB, free: 105.5 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches