Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage") translateModel(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7855/0.7855, allocations: 141.8 MB / 149.1 MB, free: 2.734 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 183.3 kB / 182 MB, free: 14.63 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.726/1.726, allocations: 221.3 MB / 436 MB, free: 7.668 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001038, allocations: 97.8 kB / 0.507 GB, free: 24.54 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001914/0.001914, allocations: 269.3 kB / 0.5885 GB, free: 10.85 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.477e-06/9.507e-06, allocations: 0 / 0.6759 GB, free: 1.223 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6472/0.6473, allocations: 82.76 MB / 0.7567 GB, free: 111.5 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8789/1.526, allocations: 371.5 MB / 1.12 GB, free: 8.559 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/1.527, allocations: 86.02 kB / 1.12 GB, free: 8.516 MB / 0.6513 GB Notification: Performance of FrontEnd: time 3.099/4.626, allocations: 0.8505 GB / 1.97 GB, free: 21.14 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.000385/4.626, allocations: 83.92 kB / 1.97 GB, free: 21.05 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 631 * Number of variables: 631 Notification: Performance of Generate backend data structure: time 0.006992/4.633, allocations: 2.859 MB / 1.973 GB, free: 18.12 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/4.633, allocations: 19.89 kB / 1.973 GB, free: 18.1 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002265/4.635, allocations: 387.8 kB / 1.973 GB, free: 17.72 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/4.646, allocations: 3.727 MB / 1.977 GB, free: 13.94 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/4.646, allocations: 83.91 kB / 1.977 GB, free: 13.86 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009964/4.647, allocations: 144 kB / 1.977 GB, free: 13.71 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005404/4.652, allocations: 2.321 MB / 1.979 GB, free: 11.39 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006665/4.659, allocations: 2.813 MB / 1.982 GB, free: 8.438 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.084e-05/4.659, allocations: 7.938 kB / 1.982 GB, free: 8.43 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004734/4.66, allocations: 11.98 kB / 1.982 GB, free: 8.418 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.199e-05/4.66, allocations: 75.84 kB / 1.982 GB, free: 8.344 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3747/5.034, allocations: 12.16 MB / 1.994 GB, free: 147.9 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002192/5.037, allocations: 1.493 MB / 1.996 GB, free: 147.9 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/5.038, allocations: 1.018 MB / 1.997 GB, free: 147.9 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000644/5.038, allocations: 1.009 MB / 1.998 GB, free: 146.8 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/5.04, allocations: 0.8197 MB / 1.998 GB, free: 146.7 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=132): time 4.539e-06/5.04, allocations: 3.062 kB / 1.998 GB, free: 146.7 MB / 0.7138 GB Notification: Performance of matching and sorting (n=132): time 0.002894/5.043, allocations: 1.518 MB / 2 GB, free: 146.6 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/5.043, allocations: 65.81 kB / 2 GB, free: 146.6 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/5.045, allocations: 1.821 MB / 2.002 GB, free: 146.4 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001721/5.045, allocations: 28.61 kB / 2.002 GB, free: 146.3 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001008/5.046, allocations: 1.003 MB / 2.003 GB, free: 146 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005689/5.047, allocations: 451.8 kB / 2.003 GB, free: 145.8 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.215e-05/5.047, allocations: 0 / 2.003 GB, free: 145.8 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001142/5.047, allocations: 373.3 kB / 2.004 GB, free: 145.5 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000822/5.048, allocations: 0.6589 MB / 2.004 GB, free: 145.5 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/5.049, allocations: 1.178 MB / 2.005 GB, free: 144.9 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/5.051, allocations: 0.9538 MB / 2.006 GB, free: 144.9 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/5.051, allocations: 6.781 kB / 2.006 GB, free: 144.9 MB / 0.7138 GB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003455/5.054, allocations: 2.076 MB / 2.008 GB, free: 144.7 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/5.054, allocations: 3.906 kB / 2.008 GB, free: 144.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/5.054, allocations: 15.34 kB / 2.008 GB, free: 144.7 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.578e-05/5.054, allocations: 27.09 kB / 2.008 GB, free: 144.7 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/5.056, allocations: 418.5 kB / 2.009 GB, free: 144.7 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.038e-05/5.056, allocations: 36.5 kB / 2.009 GB, free: 144.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/5.058, allocations: 245.5 kB / 2.009 GB, free: 144.7 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/5.058, allocations: 84.38 kB / 2.009 GB, free: 144.7 MB / 0.7138 GB Warning: Assuming fixed start value for the following 7 variables: storage.vol_HX_1.dynBal.U:VARIABLE(start = storage.vol_HX_1.dynBal.fluidVolume * storage.vol_HX_1.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_HX_1$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_HX_1$dynBal.Medium.setState_pTX(storage.vol_HX_1.dynBal.p_start, storage.vol_HX_1.dynBal.T_start, {})) + (-273.15 + storage.vol_HX_1.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_top.dynBal.U:VARIABLE(start = storage.vol_top.dynBal.fluidVolume * storage.vol_top.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_top$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_top$dynBal.Medium.setState_pTX(storage.vol_top.dynBal.p_start, storage.vol_top.dynBal.T_start, {})) + (-273.15 + storage.vol_top.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_bot.dynBal.U:VARIABLE(start = storage.vol_bot.dynBal.fluidVolume * storage.vol_bot.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_bot$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_bot$dynBal.Medium.setState_pTX(storage.vol_bot.dynBal.p_start, storage.vol_bot.dynBal.T_start, {})) + (-273.15 + storage.vol_bot.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol[4].dynBal.U:VARIABLE(start = storage.vol[4].dynBal.fluidVolume * storage.vol[4].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[4].dynBal.p_start, storage.vol[4].dynBal.T_start, {})) + (-273.15 + storage.vol[4].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[3].dynBal.U:VARIABLE(start = storage.vol[3].dynBal.fluidVolume * storage.vol[3].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[3].dynBal.p_start, storage.vol[3].dynBal.T_start, {})) + (-273.15 + storage.vol[3].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[2].dynBal.U:VARIABLE(start = storage.vol[2].dynBal.fluidVolume * storage.vol[2].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[2].dynBal.p_start, storage.vol[2].dynBal.T_start, {})) + (-273.15 + storage.vol[2].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[1].dynBal.U:VARIABLE(start = storage.vol[1].dynBal.fluidVolume * storage.vol[1].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[1].dynBal.p_start, storage.vol[1].dynBal.T_start, {})) + (-273.15 + storage.vol[1].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.m_flow1.T_start,m_flow1.T_start,$PRE.m_flow1.count,m_flow1.count,$PRE.m_flow2.T_start,m_flow2.T_start,$PRE.m_flow2.count,m_flow2.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 2 * 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.0006581/5.059, allocations: 379 kB / 2.009 GB, free: 144.5 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005438/5.059, allocations: 212.4 kB / 2.01 GB, free: 144.4 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003155/5.063, allocations: 1.761 MB / 2.011 GB, free: 144.3 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/5.063, allocations: 14.38 kB / 2.011 GB, free: 144.3 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/5.063, allocations: 0 / 2.011 GB, free: 144.3 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001884/5.065, allocations: 1.405 MB / 2.013 GB, free: 144.2 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007951/5.073, allocations: 4.256 MB / 2.017 GB, free: 143.8 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/5.073, allocations: 0 / 2.017 GB, free: 143.8 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/5.074, allocations: 277.2 kB / 2.017 GB, free: 143.8 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.385e-05/5.074, allocations: 7.375 kB / 2.017 GB, free: 143.8 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.708e-05/5.074, allocations: 24 kB / 2.017 GB, free: 143.8 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/5.074, allocations: 4.938 kB / 2.017 GB, free: 143.8 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/5.074, allocations: 3.625 kB / 2.017 GB, free: 143.8 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004281/5.078, allocations: 2.824 MB / 2.02 GB, free: 143.3 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001881/5.08, allocations: 0.5659 MB / 2.021 GB, free: 143.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004793/5.081, allocations: 14.14 kB / 2.021 GB, free: 143.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001894/5.083, allocations: 141.7 kB / 2.021 GB, free: 143.1 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/5.083, allocations: 99.16 kB / 2.021 GB, free: 143.1 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/5.083, allocations: 66.53 kB / 2.021 GB, free: 143.1 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.002019/5.085, allocations: 1.39 MB / 2.022 GB, free: 143 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.00407/5.089, allocations: 0.9504 MB / 2.023 GB, free: 142.9 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (storage.vol[1].dynBal.U,storage.vol[2].dynBal.U,storage.vol[3].dynBal.U,storage.vol[4].dynBal.U,storage.vol_bot.dynBal.U,storage.vol_top.dynBal.U,storage.vol_HX_1.dynBal.U) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,m_flow1.T_start,m_flow1.count,m_flow2.T_start,m_flow2.count) * Number of discrete states: 2 (m_flow1.count,m_flow2.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 4 * 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.001886/5.091, allocations: 0.7589 MB / 2.024 GB, free: 142.8 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002757/5.094, allocations: 1.705 MB / 2.026 GB, free: 142.7 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/5.094, allocations: 192 / 2.026 GB, free: 142.7 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0009884/5.095, allocations: 0.7848 MB / 2.026 GB, free: 142.7 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00577/5.1, allocations: 1.076 MB / 2.027 GB, free: 142.7 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/5.112, allocations: 4.537 MB / 2.032 GB, free: 141.8 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002552/5.114, allocations: 2.459 MB / 2.034 GB, free: 141 MB / 0.7138 GB Notification: Performance of SimCode: time 1.082e-06/5.114, allocations: 0 / 2.034 GB, free: 141 MB / 0.7138 GB Notification: Performance of Templates: time 0.07113/5.186, allocations: 44.08 MB / 2.077 GB, free: 139.6 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.sim & ./BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage.pipe 2>&1)