Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.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 3.2.3+maint.om/package.mo): time 0.002461/0.00246, allocations: 178 kB / 8.15 MB, free: 2.152 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.991/1.991, allocations: 205.2 MB / 213.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 94.44 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.257e-06/9.418e-06, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2412, allocations: 47.56 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.802/6.043, allocations: 2.741 GB / 3.094 GB, free: 85.46 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/6.044, allocations: 99.86 kB / 3.094 GB, free: 85.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.776/7.82, allocations: 423.7 MB / 3.508 GB, free: 46.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.268e-05/7.82, allocations: 11.59 kB / 3.508 GB, free: 46.69 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006535/7.826, allocations: 1.25 MB / 3.509 GB, free: 45.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/7.826, allocations: 11.22 kB / 3.509 GB, free: 45.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003115/7.829, allocations: 174.7 kB / 3.51 GB, free: 45.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/7.83, allocations: 315.9 kB / 3.51 GB, free: 45.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.278e-05/7.83, allocations: 14.78 kB / 3.51 GB, free: 45.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.594e-05/7.83, allocations: 18.66 kB / 3.51 GB, free: 45.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001109/7.832, allocations: 301.7 kB / 3.51 GB, free: 45.53 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/7.833, allocations: 367.8 kB / 3.511 GB, free: 45.31 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.516e-05/7.833, allocations: 0 / 3.511 GB, free: 45.31 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.821e-05/7.833, allocations: 3.906 kB / 3.511 GB, free: 45.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/7.833, allocations: 14.78 kB / 3.511 GB, free: 45.31 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005208/7.838, allocations: 2.567 MB / 3.513 GB, free: 43.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005851/7.839, allocations: 177.7 kB / 3.513 GB, free: 43.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/7.839, allocations: 117.2 kB / 3.513 GB, free: 42.99 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001391/7.84, allocations: 0.5488 MB / 3.514 GB, free: 42.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/7.841, allocations: 30.56 kB / 3.514 GB, free: 42.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 3.887e-06/7.841, allocations: 10.09 kB / 3.514 GB, free: 42.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.005542/7.846, allocations: 0.9473 MB / 3.515 GB, free: 41.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/7.846, allocations: 59.22 kB / 3.515 GB, free: 41.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/7.847, allocations: 204.9 kB / 3.515 GB, free: 41.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.191e-05/7.847, allocations: 25.7 kB / 3.515 GB, free: 41.69 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/7.847, allocations: 232.7 kB / 3.515 GB, free: 41.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/7.847, allocations: 114.2 kB / 3.516 GB, free: 41.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.84e-05/7.847, allocations: 0 / 3.516 GB, free: 41.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.811e-05/7.847, allocations: 326.3 kB / 3.516 GB, free: 41.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004129/7.847, allocations: 104.3 kB / 3.516 GB, free: 41.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004774/7.848, allocations: 202.3 kB / 3.516 GB, free: 40.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007821/7.849, allocations: 130.4 kB / 3.516 GB, free: 40.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/7.849, allocations: 0 / 3.516 GB, free: 40.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003377/7.852, allocations: 0.5473 MB / 3.517 GB, free: 40.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/7.852, allocations: 7.469 kB / 3.517 GB, free: 40.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/7.852, allocations: 3.906 kB / 3.517 GB, free: 40.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005405/7.853, allocations: 76.06 kB / 3.517 GB, free: 40.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008854/7.854, allocations: 104 kB / 3.517 GB, free: 40.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/7.856, allocations: 2.363 MB / 3.519 GB, free: 38.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008989/7.857, allocations: 56.86 kB / 3.519 GB, free: 38.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.241e-05/7.857, allocations: 24.78 kB / 3.519 GB, free: 38.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000174/7.858, allocations: 37.11 kB / 3.519 GB, free: 38.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/7.859, allocations: 141 kB / 3.52 GB, free: 38.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002618/7.861, allocations: 0.9665 MB / 3.52 GB, free: 37.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/7.861, allocations: 22.61 kB / 3.52 GB, free: 37.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/7.861, allocations: 0 / 3.52 GB, free: 37.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001862/7.863, allocations: 1.074 MB / 3.522 GB, free: 36.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/7.867, allocations: 1.562 MB / 3.523 GB, free: 35.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/7.867, allocations: 3.938 kB / 3.523 GB, free: 35.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007987/7.868, allocations: 78.41 kB / 3.523 GB, free: 35.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004828/7.868, allocations: 69.89 kB / 3.523 GB, free: 35.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.763e-05/7.868, allocations: 3.875 kB / 3.523 GB, free: 35.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006198/7.869, allocations: 0.6221 MB / 3.524 GB, free: 35.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/7.869, allocations: 7.844 kB / 3.524 GB, free: 35.05 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003156/7.872, allocations: 1.132 MB / 3.525 GB, free: 34.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/7.872, allocations: 129.3 kB / 3.525 GB, free: 34.22 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/7.873, allocations: 3.469 kB / 3.525 GB, free: 34.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008954/7.873, allocations: 51.14 kB / 3.525 GB, free: 34.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/7.874, allocations: 32.27 kB / 3.525 GB, free: 34.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.386e-05/7.874, allocations: 15.7 kB / 3.525 GB, free: 34.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004274/7.874, allocations: 214.2 kB / 3.525 GB, free: 34.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005873/7.88, allocations: 0.8772 MB / 3.526 GB, free: 33.85 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 6 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,volume.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01194/7.892, allocations: 1.491 MB / 3.528 GB, free: 32.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001522/7.894, allocations: 0.6074 MB / 3.528 GB, free: 31.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/7.894, allocations: 0 / 3.528 GB, free: 31.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009221/7.895, allocations: 428.2 kB / 3.529 GB, free: 31.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/7.896, allocations: 135.8 kB / 3.529 GB, free: 31.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/7.898, allocations: 0.8512 MB / 3.53 GB, free: 30.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004782/7.899, allocations: 0.8773 MB / 3.53 GB, free: 29.74 MB / 426.7 MB Notification: Performance of SimCode: time 1.192e-06/7.899, allocations: 0 / 3.53 GB, free: 29.74 MB / 426.7 MB Notification: Performance of Templates: time 0.04807/7.947, allocations: 26.28 MB / 3.556 GB, free: 4.023 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches