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.WaterIF97OnePhase_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.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_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.002614/0.002614, allocations: 177.6 kB / 8.145 MB, free: 2.082 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.711/1.711, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001841/0.001841, allocations: 94.05 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3237/0.3237, allocations: 43.47 MB / 353.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.212e-05/1.233e-05, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3694, allocations: 58.84 MB / 476.6 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.115/6.484, allocations: 2.795 GB / 3.26 GB, free: 96.43 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/6.485, allocations: 94.03 kB / 3.26 GB, free: 96.43 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.097/8.581, allocations: 0.4897 GB / 3.75 GB, free: 49.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.309e-05/8.581, allocations: 26.12 kB / 3.75 GB, free: 49.95 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.007736/8.589, allocations: 1.712 MB / 3.752 GB, free: 48.97 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/8.589, allocations: 9 kB / 3.752 GB, free: 48.97 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003909/8.593, allocations: 346.4 kB / 3.752 GB, free: 48.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/8.595, allocations: 0.6014 MB / 3.753 GB, free: 48.52 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/8.595, allocations: 92.5 kB / 3.753 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/8.595, allocations: 37.11 kB / 3.753 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001851/8.597, allocations: 0.6594 MB / 3.753 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002102/8.599, allocations: 0.9067 MB / 3.754 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.716e-05/8.599, allocations: 3.438 kB / 3.754 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001292/8.6, allocations: 3.812 kB / 3.754 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.62e-05/8.6, allocations: 50.84 kB / 3.754 GB, free: 47.69 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4781/9.078, allocations: 83.1 MB / 3.835 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005798/9.078, allocations: 226.6 kB / 3.836 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003794/9.079, allocations: 161.1 kB / 3.836 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1418/9.221, allocations: 38.42 MB / 3.873 GB, free: 85.03 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/9.221, allocations: 41.78 kB / 3.873 GB, free: 84.99 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=33): time 3.386e-06/9.221, allocations: 0 / 3.873 GB, free: 84.99 MB / 0.5105 GB Notification: Performance of matching and sorting (n=37): time 0.00821/9.229, allocations: 1.36 MB / 3.875 GB, free: 84.63 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.44e-05/9.229, allocations: 133.8 kB / 3.875 GB, free: 84.48 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/9.23, allocations: 0.4899 MB / 3.875 GB, free: 84.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001005/9.231, allocations: 25.7 kB / 3.875 GB, free: 84.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/9.231, allocations: 410.8 kB / 3.876 GB, free: 84.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/9.231, allocations: 139.1 kB / 3.876 GB, free: 83.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/9.231, allocations: 0 / 3.876 GB, free: 83.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001157/9.231, allocations: 338 kB / 3.876 GB, free: 83.67 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008105/9.232, allocations: 218.4 kB / 3.876 GB, free: 83.67 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/9.233, allocations: 0.5555 MB / 3.877 GB, free: 83.24 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/9.235, allocations: 331.6 kB / 3.877 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/9.235, allocations: 0 / 3.877 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004896/9.24, allocations: 0.98 MB / 3.878 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/9.24, allocations: 3.656 kB / 3.878 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/9.24, allocations: 16.59 kB / 3.878 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004245/9.24, allocations: 60.58 kB / 3.878 GB, free: 83.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00327/9.244, allocations: 273.7 kB / 3.879 GB, free: 83.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002698/9.246, allocations: 1.97 MB / 3.88 GB, free: 81.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/9.248, allocations: 47.44 kB / 3.881 GB, free: 81.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/9.248, allocations: 39.06 kB / 3.881 GB, free: 81.36 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,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) * 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.0003039/9.248, allocations: 58.3 kB / 3.881 GB, free: 81.32 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001839/9.25, allocations: 266.4 kB / 3.881 GB, free: 81.29 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004438/9.254, allocations: 1.766 MB / 3.883 GB, free: 81.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.909e-05/9.254, allocations: 22.17 kB / 3.883 GB, free: 81.14 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/9.254, allocations: 0 / 3.883 GB, free: 81.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/9.254, allocations: 11.8 kB / 3.883 GB, free: 81.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006185/9.261, allocations: 2.665 MB / 3.885 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/9.261, allocations: 1.5 kB / 3.885 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002416/9.263, allocations: 169.2 kB / 3.885 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005348/9.264, allocations: 79.91 kB / 3.885 GB, free: 80.74 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.368e-05/9.264, allocations: 7.266 kB / 3.885 GB, free: 80.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00257/9.266, allocations: 2.02 MB / 3.887 GB, free: 78.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/9.266, allocations: 2.938 kB / 3.887 GB, free: 78.95 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005745/9.272, allocations: 2.066 MB / 3.889 GB, free: 78.71 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005844/9.273, allocations: 234.7 kB / 3.89 GB, free: 78.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/9.273, allocations: 7.625 kB / 3.89 GB, free: 78.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/9.274, allocations: 52.14 kB / 3.89 GB, free: 78.57 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.632e-05/9.274, allocations: 31.06 kB / 3.89 GB, free: 78.56 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.06e-05/9.274, allocations: 23.81 kB / 3.89 GB, free: 78.56 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000645/9.275, allocations: 356.4 kB / 3.89 GB, free: 78.47 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005733/9.281, allocations: 1.11 MB / 3.891 GB, free: 78.47 MB / 0.5105 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.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * 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.009795/9.29, allocations: 1.715 MB / 3.893 GB, free: 78.26 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003617/9.294, allocations: 1.113 MB / 3.894 GB, free: 78.25 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/9.294, allocations: 4.812 kB / 3.894 GB, free: 78.25 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002663/9.297, allocations: 0.8916 MB / 3.895 GB, free: 78.24 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/9.299, allocations: 259.5 kB / 3.895 GB, free: 78.23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/9.303, allocations: 1.66 MB / 3.897 GB, free: 77.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009346/9.304, allocations: 1.144 MB / 3.898 GB, free: 77.09 MB / 0.5105 GB Notification: Performance of SimCode: time 1.272e-06/9.304, allocations: 0 / 3.898 GB, free: 77.09 MB / 0.5105 GB Notification: Performance of Templates: time 0.07046/9.375, allocations: 38.62 MB / 3.936 GB, free: 73.84 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches