Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.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.FluidStorageChargeDischargeCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle") translateModel(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle") [: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.7403/0.7403, allocations: 141.8 MB / 149.1 MB, free: 12.46 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 181.3 kB / 181.9 MB, free: 9.18 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.508/1.508, allocations: 221.3 MB / 436 MB, free: 1.496 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.001048/0.001048, allocations: 100.2 kB / 0.507 GB, free: 10.36 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 272.6 kB / 0.5885 GB, free: 7.195 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 9.888e-06/1.005e-05, allocations: 0 / 0.6759 GB, free: 13.57 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6238/0.6239, allocations: 82.77 MB / 0.7567 GB, free: 138.3 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9124/1.536, allocations: 372.4 MB / 1.12 GB, free: 14.41 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000381/1.537, allocations: 91.45 kB / 1.12 GB, free: 14.36 MB / 0.6669 GB Notification: Performance of FrontEnd: time 3.79/5.327, allocations: 0.8521 GB / 1.973 GB, free: 63.39 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0003674/5.327, allocations: 85.52 kB / 1.973 GB, free: 63.39 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: 640 * Number of variables: 640 Notification: Performance of Generate backend data structure: time 0.007395/5.335, allocations: 2.841 MB / 1.975 GB, free: 62.43 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/5.335, allocations: 11.5 kB / 1.975 GB, free: 62.43 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002025/5.337, allocations: 388.4 kB / 1.976 GB, free: 62.25 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009034/5.346, allocations: 3.756 MB / 1.979 GB, free: 61.89 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/5.346, allocations: 82.81 kB / 1.98 GB, free: 61.89 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001058/5.347, allocations: 148 kB / 1.98 GB, free: 61.89 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006321/5.353, allocations: 2.363 MB / 1.982 GB, free: 61.88 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004835/5.358, allocations: 2.867 MB / 1.985 GB, free: 61.51 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.681e-05/5.358, allocations: 15.5 kB / 1.985 GB, free: 61.5 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002254/5.359, allocations: 5.625 kB / 1.985 GB, free: 61.5 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.513e-05/5.359, allocations: 75.98 kB / 1.985 GB, free: 61.5 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01798/5.377, allocations: 12.29 MB / 1.997 GB, free: 56.8 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00235/5.379, allocations: 1.537 MB / 1.998 GB, free: 56.77 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/5.38, allocations: 1.055 MB / 1.999 GB, free: 56.75 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000844/5.381, allocations: 1.013 MB / 2 GB, free: 55.62 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001338/5.383, allocations: 0.8782 MB / 2.001 GB, free: 55.53 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=134): time 4.218e-06/5.383, allocations: 0 / 2.001 GB, free: 55.53 MB / 0.7138 GB Notification: Performance of matching and sorting (n=134): time 0.003211/5.386, allocations: 1.611 MB / 2.003 GB, free: 55.36 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/5.386, allocations: 100.2 kB / 2.003 GB, free: 55.27 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002779/5.389, allocations: 1.859 MB / 2.005 GB, free: 55.05 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001933/5.389, allocations: 29.55 kB / 2.005 GB, free: 55.02 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001062/5.39, allocations: 1.018 MB / 2.006 GB, free: 54.44 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006336/5.391, allocations: 454.2 kB / 2.006 GB, free: 54.15 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/5.391, allocations: 0 / 2.006 GB, free: 54.15 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001297/5.391, allocations: 384.8 kB / 2.007 GB, free: 53.84 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008933/5.392, allocations: 0.6922 MB / 2.007 GB, free: 53.84 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/5.393, allocations: 1.219 MB / 2.008 GB, free: 53.23 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/5.394, allocations: 0.9976 MB / 2.009 GB, free: 53.2 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/5.394, allocations: 6.375 kB / 2.009 GB, free: 53.2 MB / 0.7138 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003582/5.398, allocations: 2.158 MB / 2.012 GB, free: 53.04 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/5.398, allocations: 6.438 kB / 2.012 GB, free: 53.04 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/5.398, allocations: 14.38 kB / 2.012 GB, free: 53.04 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.533e-05/5.398, allocations: 27.62 kB / 2.012 GB, free: 53.04 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/5.399, allocations: 406.1 kB / 2.012 GB, free: 53.04 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.337e-05/5.399, allocations: 33.44 kB / 2.012 GB, free: 53.04 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002416/5.402, allocations: 234.2 kB / 2.012 GB, free: 52.94 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/5.402, allocations: 89.3 kB / 2.012 GB, free: 52.94 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: 71 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,consumptionProfile.a,consumptionProfile.b,consumptionProfile.last,$PRE.consumptionProfile.nextEvent,consumptionProfile.nextEvent,consumptionProfile.nextEventScaled,$PRE.logicControl.y,logicControl.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 1 * 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.0006763/5.403, allocations: 409.1 kB / 2.013 GB, free: 52.74 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004346/5.403, allocations: 216.3 kB / 2.013 GB, free: 52.63 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/5.407, allocations: 1.865 MB / 2.015 GB, free: 52.54 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.84e-05/5.407, allocations: 16.16 kB / 2.015 GB, free: 52.54 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/5.407, allocations: 0 / 2.015 GB, free: 52.54 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002014/5.409, allocations: 1.497 MB / 2.016 GB, free: 52.45 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008162/5.417, allocations: 4.42 MB / 2.02 GB, free: 52 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/5.417, allocations: 3.5 kB / 2.02 GB, free: 52 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/5.418, allocations: 258.2 kB / 2.021 GB, free: 52 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.457e-05/5.418, allocations: 6.156 kB / 2.021 GB, free: 52 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.721e-05/5.418, allocations: 25.23 kB / 2.021 GB, free: 52 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.146e-06/5.418, allocations: 8.594 kB / 2.021 GB, free: 52 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/5.418, allocations: 1.969 kB / 2.021 GB, free: 52 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004034/5.422, allocations: 2.997 MB / 2.024 GB, free: 51.51 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/5.424, allocations: 0.5837 MB / 2.024 GB, free: 51.29 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004088/5.424, allocations: 18.67 kB / 2.024 GB, free: 51.29 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/5.426, allocations: 127.7 kB / 2.024 GB, free: 51.28 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/5.426, allocations: 73.36 kB / 2.024 GB, free: 51.28 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/5.426, allocations: 77.11 kB / 2.025 GB, free: 51.27 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0021/5.428, allocations: 1.422 MB / 2.026 GB, free: 51.13 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.003311/5.432, allocations: 0.9737 MB / 2.027 GB, free: 50.95 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: 7 ($whenCondition1,consumptionProfile.a,consumptionProfile.b,consumptionProfile.last,consumptionProfile.nextEvent,consumptionProfile.nextEventScaled,logicControl.y) * Number of discrete states: 7 (consumptionProfile.nextEvent,consumptionProfile.last,consumptionProfile.nextEventScaled,consumptionProfile.b,consumptionProfile.a,$whenCondition1,logicControl.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.001613/5.433, allocations: 0.7791 MB / 2.028 GB, free: 50.77 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002688/5.436, allocations: 1.74 MB / 2.029 GB, free: 50.71 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/5.436, allocations: 192 / 2.029 GB, free: 50.71 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0009723/5.437, allocations: 0.8628 MB / 2.03 GB, free: 50.68 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005817/5.443, allocations: 1.087 MB / 2.031 GB, free: 50.65 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009032/5.452, allocations: 4.641 MB / 2.036 GB, free: 49.72 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002535/5.454, allocations: 2.478 MB / 2.038 GB, free: 48.97 MB / 0.7138 GB Notification: Performance of SimCode: time 9.52e-07/5.454, allocations: 0 / 2.038 GB, free: 48.97 MB / 0.7138 GB Notification: Performance of Templates: time 0.07355/5.528, allocations: 44.2 MB / 2.081 GB, free: 46.91 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.sim & ./BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe 2>&1)