Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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/Modelica 3.1.0+maint.om/package.mo): time 0.8205/0.8205, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001913/0.001913, allocations: 160 kB / 143.7 MB, free: 4.895 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.673e-06/6.713e-06, allocations: 0 / 173.4 MB, free: 23.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05115/0.05117, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.84/2.891, allocations: 1.564 GB / 1.758 GB, free: 36.12 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02218/2.914, allocations: 12.44 MB / 1.77 GB, free: 29.12 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.44/3.354, allocations: 109.6 MB / 1.877 GB, free: 16.09 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/3.354, allocations: 4 kB / 1.877 GB, free: 16.09 MB / 234.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/3.359, allocations: 1.145 MB / 1.878 GB, free: 14.9 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/3.359, allocations: 8.031 kB / 1.878 GB, free: 14.89 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.65e-05/3.359, allocations: 23.72 kB / 1.878 GB, free: 14.87 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/3.36, allocations: 226.8 kB / 1.878 GB, free: 14.61 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.724e-05/3.36, allocations: 12 kB / 1.878 GB, free: 14.59 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.709e-05/3.36, allocations: 12 kB / 1.878 GB, free: 14.58 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00092/3.361, allocations: 0.5631 MB / 1.879 GB, free: 14.02 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005931/3.361, allocations: 370.5 kB / 1.879 GB, free: 13.64 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/3.361, allocations: 3.906 kB / 1.879 GB, free: 13.64 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/3.361, allocations: 0 / 1.879 GB, free: 13.64 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/3.361, allocations: 8 kB / 1.879 GB, free: 13.63 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/3.364, allocations: 1.556 MB / 1.881 GB, free: 11.94 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/3.364, allocations: 179.1 kB / 1.881 GB, free: 11.76 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002617/3.364, allocations: 145.4 kB / 1.881 GB, free: 11.61 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2971/3.661, allocations: 69.2 MB / 1.949 GB, free: 26.08 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.25e-05/3.661, allocations: 37.66 kB / 1.949 GB, free: 26.04 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 2.896e-06/3.661, allocations: 0 / 1.949 GB, free: 26.04 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.002261/3.664, allocations: 0.4937 MB / 1.949 GB, free: 26 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/3.664, allocations: 56.03 kB / 1.949 GB, free: 25.94 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/3.664, allocations: 112.4 kB / 1.949 GB, free: 25.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/3.664, allocations: 25.7 kB / 1.949 GB, free: 25.81 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.17e-05/3.664, allocations: 117.3 kB / 1.949 GB, free: 25.73 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.775e-05/3.664, allocations: 105.5 kB / 1.95 GB, free: 25.68 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/3.664, allocations: 1.219 kB / 1.95 GB, free: 25.68 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/3.664, allocations: 335.5 kB / 1.95 GB, free: 25.36 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/3.664, allocations: 117.8 kB / 1.95 GB, free: 25.35 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/3.665, allocations: 186.9 kB / 1.95 GB, free: 25.28 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/3.666, allocations: 282.5 kB / 1.95 GB, free: 25.27 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/3.666, allocations: 0 / 1.95 GB, free: 25.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001954/3.668, allocations: 0.5373 MB / 1.951 GB, free: 25.23 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/3.668, allocations: 6.875 kB / 1.951 GB, free: 25.23 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/3.668, allocations: 4 kB / 1.951 GB, free: 25.23 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/3.668, allocations: 3.906 kB / 1.951 GB, free: 25.23 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003441/3.668, allocations: 87.16 kB / 1.951 GB, free: 25.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/3.668, allocations: 4.812 kB / 1.951 GB, free: 25.23 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/3.669, allocations: 40.55 kB / 1.951 GB, free: 25.21 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.726e-05/3.669, allocations: 20.89 kB / 1.951 GB, free: 25.21 MB / 250.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 800000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 2000.0))))) max = min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, 1000000000.0))))) start = 700.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real 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.0002052/3.669, allocations: 139.2 kB / 1.951 GB, free: 25.11 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/3.669, allocations: 52.84 kB / 1.951 GB, free: 25.1 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002341/3.671, allocations: 0.9728 MB / 1.952 GB, free: 25.03 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/3.671, allocations: 12.92 kB / 1.952 GB, free: 25.03 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/3.672, allocations: 4.219 kB / 1.952 GB, free: 25.03 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/3.672, allocations: 3.906 kB / 1.952 GB, free: 25.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004893/3.672, allocations: 432.5 kB / 1.953 GB, free: 24.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/3.672, allocations: 3.328 kB / 1.953 GB, free: 24.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/3.672, allocations: 73.61 kB / 1.953 GB, free: 24.86 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/3.672, allocations: 4 kB / 1.953 GB, free: 24.86 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/3.672, allocations: 18.19 kB / 1.953 GB, free: 24.85 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/3.672, allocations: 3 kB / 1.953 GB, free: 24.85 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/3.672, allocations: 0 / 1.953 GB, free: 24.85 MB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00233/3.675, allocations: 1.064 MB / 1.954 GB, free: 24.68 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/3.675, allocations: 104 kB / 1.954 GB, free: 24.58 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.12e-05/3.675, allocations: 1.594 kB / 1.954 GB, free: 24.58 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/3.675, allocations: 22.45 kB / 1.954 GB, free: 24.57 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.004e-05/3.675, allocations: 25.55 kB / 1.954 GB, free: 24.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/3.675, allocations: 20.7 kB / 1.954 GB, free: 24.57 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.26e-05/3.675, allocations: 85.86 kB / 1.954 GB, free: 24.5 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004814/3.68, allocations: 1.107 MB / 1.955 GB, free: 24.5 MB / 250.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: 3 ($cse3.region3boundary,$cse4.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009171/3.689, allocations: 1.561 MB / 1.957 GB, free: 24.23 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007342/3.69, allocations: 480.6 kB / 1.957 GB, free: 24.22 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/3.69, allocations: 0.5 kB / 1.957 GB, free: 24.22 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003782/3.69, allocations: 355.6 kB / 1.957 GB, free: 24.21 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000567/3.691, allocations: 70.7 kB / 1.958 GB, free: 24.21 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/3.692, allocations: 0.547 MB / 1.958 GB, free: 24.03 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000495/3.693, allocations: 0.8186 MB / 1.959 GB, free: 23.32 MB / 250.7 MB Notification: Performance of SimCode: time 7.01e-07/3.693, allocations: 0 / 1.959 GB, free: 23.32 MB / 250.7 MB Notification: Performance of Templates: time 0.04195/3.735, allocations: 30.03 MB / 1.988 GB, free: 10.64 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)