Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002569/0.002569, allocations: 182.1 kB / 8.147 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.2 MB / 213.7 MB, free: 8.59 MB / 178.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001245/0.001244, allocations: 81.58 kB / 261.7 MB, free: 5.133 MB / 210.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2559/0.2559, allocations: 43.48 MB / 353.2 MB, free: 11.42 MB / 306.8 MB Notification: Performance of FrontEnd - loaded program: time 1.17e-05/1.185e-05, allocations: 0 / 417.7 MB, free: 68.58 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.0965, allocations: 58.86 MB / 476.6 MB, free: 9.668 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.134/6.23, allocations: 2.795 GB / 3.26 GB, free: 112.5 MB / 0.5027 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/6.231, allocations: 90.06 kB / 3.26 GB, free: 112.5 MB / 0.5027 GB Notification: Performance of FrontEnd: time 2.12/8.35, allocations: 0.4896 GB / 3.75 GB, free: 59.69 MB / 0.5027 GB Notification: Performance of Transformations before backend: time 7.317e-05/8.35, allocations: 25.73 kB / 3.75 GB, free: 59.68 MB / 0.5027 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.008151/8.358, allocations: 1.774 MB / 3.752 GB, free: 58.73 MB / 0.5027 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/8.358, allocations: 9.688 kB / 3.752 GB, free: 58.73 MB / 0.5027 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003847/8.362, allocations: 335.5 kB / 3.752 GB, free: 58.67 MB / 0.5027 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001902/8.364, allocations: 0.6036 MB / 3.753 GB, free: 58.29 MB / 0.5027 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/8.364, allocations: 101.9 kB / 3.753 GB, free: 58.21 MB / 0.5027 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/8.365, allocations: 34.06 kB / 3.753 GB, free: 58.21 MB / 0.5027 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001994/8.367, allocations: 0.7116 MB / 3.753 GB, free: 57.98 MB / 0.5027 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/8.369, allocations: 0.8963 MB / 3.754 GB, free: 57.46 MB / 0.5027 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.703e-05/8.369, allocations: 10.69 kB / 3.754 GB, free: 57.46 MB / 0.5027 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/8.369, allocations: 7.906 kB / 3.754 GB, free: 57.46 MB / 0.5027 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.632e-05/8.369, allocations: 41.03 kB / 3.754 GB, free: 57.45 MB / 0.5027 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1789/8.548, allocations: 52.87 MB / 3.806 GB, free: 17.06 MB / 0.5027 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006258/8.549, allocations: 257.9 kB / 3.806 GB, free: 16.82 MB / 0.5027 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004311/8.549, allocations: 187.5 kB / 3.806 GB, free: 16.65 MB / 0.5027 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02827/8.577, allocations: 8.072 MB / 3.814 GB, free: 8.535 MB / 0.5027 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/8.577, allocations: 39.41 kB / 3.814 GB, free: 8.488 MB / 0.5027 GB Notification: Performance of pre-optimization done (n=37): time 2.846e-06/8.577, allocations: 0 / 3.814 GB, free: 8.488 MB / 0.5027 GB Notification: Performance of matching and sorting (n=41): time 0.005984/8.583, allocations: 1.438 MB / 3.816 GB, free: 23.07 MB / 0.5183 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.841e-05/8.584, allocations: 136.5 kB / 3.816 GB, free: 22.9 MB / 0.5183 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008747/8.584, allocations: 497.1 kB / 3.816 GB, free: 22.41 MB / 0.5183 GB Notification: Performance of collectPreVariables (initialization): time 8.324e-05/8.585, allocations: 25.7 kB / 3.816 GB, free: 22.38 MB / 0.5183 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/8.585, allocations: 397 kB / 3.817 GB, free: 21.99 MB / 0.5183 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/8.585, allocations: 145.9 kB / 3.817 GB, free: 21.84 MB / 0.5183 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.369e-05/8.585, allocations: 0 / 3.817 GB, free: 21.84 MB / 0.5183 GB Notification: Performance of setup shared object (initialization): time 0.0001582/8.585, allocations: 346.8 kB / 3.817 GB, free: 21.5 MB / 0.5183 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006001/8.586, allocations: 245.5 kB / 3.817 GB, free: 21.25 MB / 0.5183 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007543/8.587, allocations: 0.5551 MB / 3.818 GB, free: 20.55 MB / 0.5183 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/8.588, allocations: 348.5 kB / 3.818 GB, free: 20.21 MB / 0.5183 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/8.588, allocations: 3.281 kB / 3.818 GB, free: 20.21 MB / 0.5183 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0037/8.591, allocations: 1.074 MB / 3.819 GB, free: 19.13 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/8.591, allocations: 11.28 kB / 3.819 GB, free: 19.12 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/8.591, allocations: 8 kB / 3.819 GB, free: 19.11 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003231/8.592, allocations: 60.83 kB / 3.819 GB, free: 19.05 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/8.594, allocations: 311.7 kB / 3.82 GB, free: 18.75 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/8.597, allocations: 1.974 MB / 3.822 GB, free: 16.64 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/8.598, allocations: 71.94 kB / 3.822 GB, free: 16.57 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/8.598, allocations: 47.98 kB / 3.822 GB, free: 16.52 MB / 0.5183 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.0002469/8.598, allocations: 73.28 kB / 3.822 GB, free: 16.45 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/8.6, allocations: 263 kB / 3.822 GB, free: 16.19 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003084/8.603, allocations: 1.806 MB / 3.824 GB, free: 14.39 MB / 0.5183 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-05/8.603, allocations: 23.97 kB / 3.824 GB, free: 14.36 MB / 0.5183 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/8.603, allocations: 0 / 3.824 GB, free: 14.36 MB / 0.5183 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/8.603, allocations: 7.922 kB / 3.824 GB, free: 14.36 MB / 0.5183 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005425/8.608, allocations: 2.765 MB / 3.827 GB, free: 11.53 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/8.608, allocations: 0 / 3.827 GB, free: 11.53 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002061/8.61, allocations: 195.8 kB / 3.827 GB, free: 11.34 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004806/8.611, allocations: 84.69 kB / 3.827 GB, free: 11.25 MB / 0.5183 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.964e-05/8.611, allocations: 4 kB / 3.827 GB, free: 11.25 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00252/8.613, allocations: 2.03 MB / 3.829 GB, free: 9.086 MB / 0.5183 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/8.613, allocations: 0 / 3.829 GB, free: 9.086 MB / 0.5183 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005132/8.619, allocations: 2.174 MB / 3.831 GB, free: 6.875 MB / 0.5183 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006753/8.619, allocations: 233.8 kB / 3.831 GB, free: 6.629 MB / 0.5183 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/8.62, allocations: 0 / 3.831 GB, free: 6.629 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009813/8.621, allocations: 51.92 kB / 3.831 GB, free: 6.578 MB / 0.5183 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/8.621, allocations: 47.86 kB / 3.831 GB, free: 6.531 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.07e-05/8.621, allocations: 23.98 kB / 3.831 GB, free: 6.508 MB / 0.5183 GB Notification: Performance of sort global known variables: time 0.0007596/8.622, allocations: 354.9 kB / 3.832 GB, free: 6.16 MB / 0.5183 GB Notification: Performance of remove unused functions: time 0.006381/8.628, allocations: 1.115 MB / 3.833 GB, free: 5.047 MB / 0.5183 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.01136/8.639, allocations: 1.725 MB / 3.834 GB, free: 3.5 MB / 0.5183 GB Notification: Performance of simCode: created initialization part: time 0.004324/8.644, allocations: 1.154 MB / 3.836 GB, free: 2.348 MB / 0.5183 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/8.644, allocations: 4 kB / 3.836 GB, free: 2.344 MB / 0.5183 GB Notification: Performance of simCode: created simulation system equations: time 0.003194/8.647, allocations: 0.9277 MB / 3.836 GB, free: 1.414 MB / 0.5183 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002828/8.65, allocations: 267.2 kB / 3.837 GB, free: 1.16 MB / 0.5183 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.203/8.853, allocations: 1.69 MB / 3.838 GB, free: 126.7 MB / 0.5183 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009547/8.854, allocations: 1.145 MB / 3.839 GB, free: 126 MB / 0.5183 GB Notification: Performance of SimCode: time 1.252e-06/8.854, allocations: 3.531 kB / 3.839 GB, free: 126 MB / 0.5183 GB Notification: Performance of Templates: time 0.07295/8.927, allocations: 38.99 MB / 3.878 GB, free: 124.9 MB / 0.5183 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches