Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [: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.002581/0.00258, allocations: 171.7 kB / 8.144 MB, free: 2.148 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.842/1.842, allocations: 205.2 MB / 213.8 MB, free: 13.94 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.001501/0.0015, allocations: 77.94 kB / 261.7 MB, free: 13.65 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.533e-05/1.534e-05, allocations: 4 kB / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2774, allocations: 47.56 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.749/7.027, allocations: 3.02 GB / 3.373 GB, free: 26.92 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03334/7.06, allocations: 10.97 MB / 3.384 GB, free: 18.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.7073/7.767, allocations: 109.5 MB / 3.491 GB, free: 80.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.674e-05/7.767, allocations: 4 kB / 3.491 GB, free: 80.48 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.006234/7.774, allocations: 1.14 MB / 3.492 GB, free: 79.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/7.774, allocations: 8.031 kB / 3.492 GB, free: 79.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002218/7.776, allocations: 203.9 kB / 3.492 GB, free: 79.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004305/7.776, allocations: 253.3 kB / 3.492 GB, free: 78.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/7.777, allocations: 7.906 kB / 3.492 GB, free: 78.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.167e-05/7.777, allocations: 16 kB / 3.492 GB, free: 78.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008798/7.778, allocations: 346.2 kB / 3.493 GB, free: 78.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006101/7.778, allocations: 271.5 kB / 3.493 GB, free: 78.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/7.778, allocations: 8 kB / 3.493 GB, free: 78.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.421e-05/7.778, allocations: 4 kB / 3.493 GB, free: 78.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/7.778, allocations: 4 kB / 3.493 GB, free: 78.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002139/7.78, allocations: 1.324 MB / 3.494 GB, free: 77.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004975/7.781, allocations: 222.6 kB / 3.494 GB, free: 76.87 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/7.781, allocations: 129.1 kB / 3.495 GB, free: 76.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1341/7.915, allocations: 37.45 MB / 3.531 GB, free: 37.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/7.915, allocations: 31.59 kB / 3.531 GB, free: 37.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.076e-06/7.915, allocations: 0 / 3.531 GB, free: 37.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.002601/7.918, allocations: 0.523 MB / 3.532 GB, free: 37.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/7.918, allocations: 55.41 kB / 3.532 GB, free: 37.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/7.918, allocations: 110.6 kB / 3.532 GB, free: 36.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/7.918, allocations: 29.7 kB / 3.532 GB, free: 36.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.346e-05/7.918, allocations: 186.9 kB / 3.532 GB, free: 36.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.371e-05/7.918, allocations: 102.4 kB / 3.532 GB, free: 36.58 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/7.919, allocations: 0 / 3.532 GB, free: 36.58 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.565e-05/7.919, allocations: 326.8 kB / 3.532 GB, free: 36.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/7.919, allocations: 108 kB / 3.533 GB, free: 36.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/7.919, allocations: 179.6 kB / 3.533 GB, free: 35.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008258/7.92, allocations: 136.2 kB / 3.533 GB, free: 35.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/7.92, allocations: 5.031 kB / 3.533 GB, free: 35.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002465/7.923, allocations: 0.575 MB / 3.533 GB, free: 35.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/7.923, allocations: 4 kB / 3.533 GB, free: 35.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/7.923, allocations: 0 / 3.533 GB, free: 35.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/7.923, allocations: 4 kB / 3.533 GB, free: 35.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006174/7.923, allocations: 84.14 kB / 3.534 GB, free: 35.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/7.923, allocations: 11.91 kB / 3.534 GB, free: 35.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/7.924, allocations: 27.77 kB / 3.534 GB, free: 35.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-05/7.924, allocations: 23.98 kB / 3.534 GB, free: 35.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001118/7.924, allocations: 41.86 kB / 3.534 GB, free: 35.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001091/7.925, allocations: 231.6 kB / 3.534 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003657/7.929, allocations: 2.26 MB / 3.536 GB, free: 32.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.182e-05/7.929, allocations: 31.86 kB / 3.536 GB, free: 32.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/7.929, allocations: 0 / 3.536 GB, free: 32.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/7.929, allocations: 3.984 kB / 3.536 GB, free: 32.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/7.93, allocations: 0.8473 MB / 3.537 GB, free: 31.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/7.93, allocations: 3.984 kB / 3.537 GB, free: 31.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/7.931, allocations: 71.91 kB / 3.537 GB, free: 31.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/7.931, allocations: 0 / 3.537 GB, free: 31.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/7.931, allocations: 15.98 kB / 3.537 GB, free: 31.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/7.931, allocations: 0 / 3.537 GB, free: 31.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/7.931, allocations: 0 / 3.537 GB, free: 31.54 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006278/7.937, allocations: 2.511 MB / 3.539 GB, free: 29.01 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/7.937, allocations: 120.4 kB / 3.54 GB, free: 28.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.211e-05/7.937, allocations: 3.984 kB / 3.54 GB, free: 28.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003753/7.938, allocations: 15.91 kB / 3.54 GB, free: 28.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/7.938, allocations: 31.94 kB / 3.54 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.734e-05/7.938, allocations: 20.06 kB / 3.54 GB, free: 28.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.223e-05/7.938, allocations: 99.14 kB / 3.54 GB, free: 28.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005197/7.943, allocations: 0.9911 MB / 3.541 GB, free: 27.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01064/7.954, allocations: 1.407 MB / 3.542 GB, free: 26.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001512/7.955, allocations: 0.9933 MB / 3.543 GB, free: 25.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/7.955, allocations: 0 / 3.543 GB, free: 25.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/7.957, allocations: 1.021 MB / 3.544 GB, free: 24.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000976/7.958, allocations: 68.61 kB / 3.544 GB, free: 24.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/7.96, allocations: 1.346 MB / 3.545 GB, free: 22.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000518/7.961, allocations: 0.9195 MB / 3.546 GB, free: 21.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/7.961, allocations: 0 / 3.546 GB, free: 21.96 MB / 426.7 MB Notification: Performance of Templates: time 0.2042/8.165, allocations: 22.95 MB / 3.569 GB, free: 127.5 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches