Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.Tests.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003901/0.003901, allocations: 178 kB / 7.452 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.4/1.4, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001787/0.001787, allocations: 104 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.177e-06/9.207e-06, allocations: 4 kB / 261.8 MB, free: 26.62 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08574/0.08577, allocations: 38.76 MB / 300.5 MB, free: 3.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.707/4.793, allocations: 2.466 GB / 2.759 GB, free: 48.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/4.794, allocations: 90.75 kB / 2.759 GB, free: 48.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.435/6.228, allocations: 416 MB / 3.165 GB, free: 32.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.928e-05/6.228, allocations: 7.594 kB / 3.165 GB, free: 32.29 MB / 362.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.006075/6.235, allocations: 1.185 MB / 3.166 GB, free: 31.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/6.235, allocations: 9.844 kB / 3.166 GB, free: 31.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001786/6.236, allocations: 169.8 kB / 3.167 GB, free: 31.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006192/6.237, allocations: 320.6 kB / 3.167 GB, free: 31.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/6.237, allocations: 11.12 kB / 3.167 GB, free: 31.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/6.237, allocations: 18.44 kB / 3.167 GB, free: 31.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004843/6.238, allocations: 248.3 kB / 3.167 GB, free: 31.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005595/6.238, allocations: 354.8 kB / 3.168 GB, free: 30.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.217e-05/6.238, allocations: 9.719 kB / 3.168 GB, free: 30.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/6.238, allocations: 3.906 kB / 3.168 GB, free: 30.97 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/6.238, allocations: 7.812 kB / 3.168 GB, free: 30.97 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06897/6.307, allocations: 33.25 MB / 3.2 GB, free: 25.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/6.308, allocations: 145.2 kB / 3.2 GB, free: 25.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/6.308, allocations: 99.22 kB / 3.2 GB, free: 25.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2595/6.567, allocations: 30.9 MB / 3.23 GB, free: 79.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.289e-05/6.567, allocations: 36.42 kB / 3.23 GB, free: 79.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 3.467e-06/6.567, allocations: 3.656 kB / 3.23 GB, free: 79.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002762/6.57, allocations: 0.873 MB / 3.231 GB, free: 79.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/6.57, allocations: 55.38 kB / 3.231 GB, free: 79.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/6.57, allocations: 208.7 kB / 3.232 GB, free: 79.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/6.571, allocations: 25.7 kB / 3.232 GB, free: 79.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.757e-05/6.571, allocations: 188.3 kB / 3.232 GB, free: 79.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.501e-05/6.571, allocations: 102.6 kB / 3.232 GB, free: 79.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.326e-05/6.571, allocations: 0 / 3.232 GB, free: 79.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.233e-05/6.571, allocations: 336.2 kB / 3.232 GB, free: 78.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/6.571, allocations: 80.5 kB / 3.232 GB, free: 78.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/6.571, allocations: 210.6 kB / 3.232 GB, free: 78.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/6.571, allocations: 124.9 kB / 3.233 GB, free: 78.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/6.571, allocations: 0 / 3.233 GB, free: 78.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009968/6.572, allocations: 469.4 kB / 3.233 GB, free: 78.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/6.572, allocations: 7.594 kB / 3.233 GB, free: 78.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/6.572, allocations: 3.938 kB / 3.233 GB, free: 78.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002333/6.573, allocations: 56.64 kB / 3.233 GB, free: 78.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/6.573, allocations: 96.8 kB / 3.233 GB, free: 78.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/6.575, allocations: 2.396 MB / 3.236 GB, free: 76.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/6.575, allocations: 24.45 kB / 3.236 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/6.575, allocations: 22.31 kB / 3.236 GB, free: 76.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * 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: 2 * 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: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001125/6.575, allocations: 111.4 kB / 3.236 GB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004101/6.576, allocations: 141.1 kB / 3.236 GB, free: 76.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/6.577, allocations: 0.8332 MB / 3.237 GB, free: 76.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/6.577, allocations: 9.031 kB / 3.237 GB, free: 76.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/6.577, allocations: 0 / 3.237 GB, free: 76.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008312/6.577, allocations: 1.029 MB / 3.238 GB, free: 75.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/6.579, allocations: 1.404 MB / 3.239 GB, free: 75.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/6.579, allocations: 0 / 3.239 GB, free: 75.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002175/6.579, allocations: 55.61 kB / 3.239 GB, free: 75.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000213/6.579, allocations: 69.89 kB / 3.239 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/6.58, allocations: 8.828 kB / 3.239 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002988/6.58, allocations: 0.6186 MB / 3.24 GB, free: 74.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/6.58, allocations: 0 / 3.24 GB, free: 74.87 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001264/6.581, allocations: 1.06 MB / 3.241 GB, free: 74.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/6.581, allocations: 112.6 kB / 3.241 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/6.581, allocations: 3.5 kB / 3.241 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/6.582, allocations: 46.41 kB / 3.241 GB, free: 74.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.472e-05/6.582, allocations: 14.23 kB / 3.241 GB, free: 74.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.095e-05/6.582, allocations: 20.2 kB / 3.241 GB, free: 74.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001116/6.582, allocations: 156.4 kB / 3.241 GB, free: 74.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004148/6.586, allocations: 0.8708 MB / 3.242 GB, free: 74.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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.00421/6.59, allocations: 1.473 MB / 3.243 GB, free: 74.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/6.591, allocations: 0.5681 MB / 3.244 GB, free: 74.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/6.591, allocations: 0.625 kB / 3.244 GB, free: 74.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004099/6.592, allocations: 375.4 kB / 3.244 GB, free: 74.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007732/6.592, allocations: 135.6 kB / 3.244 GB, free: 74.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/6.594, allocations: 0.7523 MB / 3.245 GB, free: 74.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003105/6.594, allocations: 0.8629 MB / 3.246 GB, free: 73.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/6.594, allocations: 0 / 3.246 GB, free: 73.34 MB / 378.7 MB Notification: Performance of Templates: time 0.03958/6.634, allocations: 28.65 MB / 3.274 GB, free: 72.75 MB / 378.7 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1)