Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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) 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(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 184 kB / 8.135 MB, free: 2.207 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.232/1.232, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009079/0.0009072, allocations: 111.3 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.968e-06/9.988e-06, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2389, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.27/6.509, allocations: 3.025 GB / 3.403 GB, free: 76.23 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02175/6.531, allocations: 11.21 MB / 3.414 GB, free: 64.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.4848/7.016, allocations: 110.6 MB / 3.522 GB, free: 91.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.603e-05/7.016, allocations: 3.875 kB / 3.522 GB, free: 91.59 MB / 442.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.005514/7.021, allocations: 1.142 MB / 3.523 GB, free: 90.87 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/7.021, allocations: 7.938 kB / 3.523 GB, free: 90.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001538/7.023, allocations: 200.5 kB / 3.523 GB, free: 90.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003043/7.023, allocations: 251.5 kB / 3.524 GB, free: 90.65 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/7.023, allocations: 15.59 kB / 3.524 GB, free: 90.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.928e-05/7.023, allocations: 18.66 kB / 3.524 GB, free: 90.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005169/7.024, allocations: 337.7 kB / 3.524 GB, free: 90.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003755/7.024, allocations: 279.8 kB / 3.524 GB, free: 90.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/7.024, allocations: 0.6562 kB / 3.524 GB, free: 90.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/7.024, allocations: 0 / 3.524 GB, free: 90.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/7.024, allocations: 3.969 kB / 3.524 GB, free: 90.57 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/7.026, allocations: 1.327 MB / 3.525 GB, free: 89.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002692/7.026, allocations: 223.5 kB / 3.526 GB, free: 89.63 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/7.026, allocations: 131.7 kB / 3.526 GB, free: 89.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07207/7.098, allocations: 37.45 MB / 3.562 GB, free: 65.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/7.098, allocations: 43.78 kB / 3.562 GB, free: 65.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 2.816e-06/7.098, allocations: 3.938 kB / 3.562 GB, free: 65.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.001924/7.1, allocations: 0.5193 MB / 3.563 GB, free: 65.24 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/7.1, allocations: 55.78 kB / 3.563 GB, free: 65.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/7.101, allocations: 115.7 kB / 3.563 GB, free: 65.07 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/7.101, allocations: 25.7 kB / 3.563 GB, free: 65.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.553e-05/7.101, allocations: 113.7 kB / 3.563 GB, free: 64.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.547e-05/7.101, allocations: 106.8 kB / 3.563 GB, free: 64.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-05/7.101, allocations: 0.9062 kB / 3.563 GB, free: 64.85 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.658e-05/7.101, allocations: 329.4 kB / 3.564 GB, free: 64.53 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/7.101, allocations: 104.5 kB / 3.564 GB, free: 64.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/7.101, allocations: 175.1 kB / 3.564 GB, free: 64.26 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005168/7.102, allocations: 147.3 kB / 3.564 GB, free: 64.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/7.102, allocations: 0 / 3.564 GB, free: 64.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001551/7.103, allocations: 0.5707 MB / 3.565 GB, free: 63.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/7.103, allocations: 8 kB / 3.565 GB, free: 63.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/7.103, allocations: 3.906 kB / 3.565 GB, free: 63.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/7.103, allocations: 4 kB / 3.565 GB, free: 63.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003074/7.104, allocations: 88.64 kB / 3.565 GB, free: 63.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/7.104, allocations: 4 kB / 3.565 GB, free: 63.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/7.104, allocations: 43.45 kB / 3.565 GB, free: 63.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/7.104, allocations: 19.8 kB / 3.565 GB, free: 63.54 MB / 442.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 9.356e-05/7.104, allocations: 112.8 kB / 3.565 GB, free: 63.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006992/7.105, allocations: 234 kB / 3.565 GB, free: 63.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002632/7.107, allocations: 2.265 MB / 3.567 GB, free: 61.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.14e-05/7.107, allocations: 27.44 kB / 3.567 GB, free: 61.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/7.107, allocations: 2.875 kB / 3.567 GB, free: 61.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/7.107, allocations: 0 / 3.567 GB, free: 61.24 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008569/7.108, allocations: 0.8447 MB / 3.568 GB, free: 60.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/7.108, allocations: 0 / 3.568 GB, free: 60.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002732/7.109, allocations: 76.8 kB / 3.568 GB, free: 60.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.789e-06/7.109, allocations: 3.938 kB / 3.568 GB, free: 60.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.454e-05/7.109, allocations: 12.72 kB / 3.568 GB, free: 60.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/7.109, allocations: 4 kB / 3.568 GB, free: 60.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/7.109, allocations: 0 / 3.568 GB, free: 60.39 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003739/7.112, allocations: 2.518 MB / 3.571 GB, free: 58.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.519e-05/7.112, allocations: 124 kB / 3.571 GB, free: 57.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/7.113, allocations: 4.062 kB / 3.571 GB, free: 57.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/7.113, allocations: 23.69 kB / 3.571 GB, free: 57.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/7.113, allocations: 27.53 kB / 3.571 GB, free: 57.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/7.113, allocations: 20.91 kB / 3.571 GB, free: 57.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.673e-05/7.113, allocations: 90.89 kB / 3.571 GB, free: 57.81 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004447/7.117, allocations: 0.9942 MB / 3.572 GB, free: 56.84 MB / 442.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.008171/7.126, allocations: 1.411 MB / 3.573 GB, free: 55.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00106/7.127, allocations: 0.9858 MB / 3.574 GB, free: 54.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/7.127, allocations: 4 kB / 3.574 GB, free: 54.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007591/7.127, allocations: 1.018 MB / 3.575 GB, free: 53.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005512/7.128, allocations: 74.03 kB / 3.575 GB, free: 53.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/7.13, allocations: 1.331 MB / 3.577 GB, free: 52.48 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00037/7.13, allocations: 0.9145 MB / 3.578 GB, free: 51.6 MB / 442.7 MB Notification: Performance of SimCode: time 4.31e-07/7.13, allocations: 0 / 3.578 GB, free: 51.6 MB / 442.7 MB Notification: Performance of Templates: time 0.03863/7.169, allocations: 29.45 MB / 3.606 GB, free: 34.45 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches