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: "" <> buildModelFMU(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorageChargeDischargeCycle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorageChargeDischargeCycle",fmuType="me",version="2.0",platforms={"static"}) [: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.7032/0.7032, allocations: 141.8 MB / 149.1 MB, free: 3.812 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.001147/0.001147, allocations: 178.2 kB / 181.9 MB, free: 15.58 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.393/1.393, allocations: 221.3 MB / 436 MB, free: 8.711 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.000958/0.0009579, allocations: 95.31 kB / 0.507 GB, free: 24.29 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001827/0.001827, allocations: 285.9 kB / 0.5885 GB, free: 11.78 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1883/0.1902, allocations: 89.63 MB / 0.676 GB, free: 2.059 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.5708, allocations: 82.76 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6445/1.215, allocations: 372.4 MB / 1.12 GB, free: 9.516 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/1.216, allocations: 86.78 kB / 1.121 GB, free: 9.477 MB / 0.6513 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 2.415/3.631, allocations: 0.855 GB / 1.975 GB, free: 28.27 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/3.631, allocations: 8 kB / 1.976 GB, free: 28.26 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001882/3.633, allocations: 391.8 kB / 1.976 GB, free: 27.87 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007749/3.641, allocations: 3.76 MB / 1.98 GB, free: 24.07 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/3.641, allocations: 80 kB / 1.98 GB, free: 23.99 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007103/3.642, allocations: 147.9 kB / 1.98 GB, free: 23.85 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004795/3.646, allocations: 2.368 MB / 1.982 GB, free: 21.47 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005127/3.651, allocations: 2.876 MB / 1.985 GB, free: 18.46 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.373e-05/3.652, allocations: 4 kB / 1.985 GB, free: 18.46 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002242/3.652, allocations: 4 kB / 1.985 GB, free: 18.45 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.605e-05/3.652, allocations: 75.92 kB / 1.985 GB, free: 18.38 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01424/3.666, allocations: 12.29 MB / 1.997 GB, free: 5.688 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001855/3.668, allocations: 1.531 MB / 1.998 GB, free: 4.152 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/3.669, allocations: 1.071 MB / 2 GB, free: 3.078 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005576/3.67, allocations: 1.014 MB / 2 GB, free: 1.844 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001049/3.671, allocations: 0.8783 MB / 2.001 GB, free: 0.9492 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=134): time 3.546e-06/3.671, allocations: 0 / 2.001 GB, free: 0.9492 MB / 0.6982 GB Notification: Performance of matching and sorting (n=134): time 0.264/3.935, allocations: 1.607 MB / 2.003 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/3.935, allocations: 96.3 kB / 2.003 GB, free: 134.2 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00255/3.937, allocations: 1.865 MB / 2.005 GB, free: 134 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0002144/3.938, allocations: 28.75 kB / 2.005 GB, free: 134 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008781/3.939, allocations: 1.022 MB / 2.006 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.000534/3.939, allocations: 451 kB / 2.006 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.327e-05/3.939, allocations: 2.75 kB / 2.006 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 9.536e-05/3.939, allocations: 372.2 kB / 2.007 GB, free: 133.3 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008133/3.94, allocations: 0.6945 MB / 2.007 GB, free: 133.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009796/3.941, allocations: 1.223 MB / 2.009 GB, free: 132.6 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/3.942, allocations: 0.9969 MB / 2.009 GB, free: 132.6 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/3.942, allocations: 3.812 kB / 2.01 GB, free: 132.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.002882/3.945, allocations: 2.15 MB / 2.012 GB, free: 132.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/3.945, allocations: 7.094 kB / 2.012 GB, free: 132.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/3.945, allocations: 14.16 kB / 2.012 GB, free: 132.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.683e-05/3.945, allocations: 35.75 kB / 2.012 GB, free: 132.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/3.947, allocations: 412.3 kB / 2.012 GB, free: 132.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/3.947, allocations: 34.78 kB / 2.012 GB, free: 132.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/3.949, allocations: 226.1 kB / 2.012 GB, free: 132.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/3.949, allocations: 85.27 kB / 2.012 GB, free: 132.4 MB / 0.6982 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.0005214/3.949, allocations: 411.3 kB / 2.013 GB, free: 132.2 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/3.95, allocations: 216.3 kB / 2.013 GB, free: 132.1 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002644/3.952, allocations: 1.863 MB / 2.015 GB, free: 132 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/3.952, allocations: 13.12 kB / 2.015 GB, free: 132 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/3.952, allocations: 0 / 2.015 GB, free: 132 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001884/3.954, allocations: 1.505 MB / 2.016 GB, free: 131.9 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006018/3.96, allocations: 4.416 MB / 2.021 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/3.96, allocations: 0 / 2.021 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/3.961, allocations: 257.6 kB / 2.021 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/3.961, allocations: 9.938 kB / 2.021 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.695e-05/3.961, allocations: 26.64 kB / 2.021 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/3.961, allocations: 6.625 kB / 2.021 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/3.961, allocations: 3.062 kB / 2.021 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003259/3.965, allocations: 2.987 MB / 2.024 GB, free: 131 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004507/3.969, allocations: 4.49 MB / 2.028 GB, free: 130.1 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/3.97, allocations: 0.5897 MB / 2.029 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003367/3.971, allocations: 11.19 kB / 2.029 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/3.972, allocations: 124.8 kB / 2.029 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/3.972, allocations: 83.98 kB / 2.029 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/3.972, allocations: 71.48 kB / 2.029 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001572/3.974, allocations: 1.426 MB / 2.03 GB, free: 129.8 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003141/3.977, allocations: 1.078 MB / 2.031 GB, free: 129.7 MB / 0.6982 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.001155/3.978, allocations: 0.7865 MB / 2.032 GB, free: 129.6 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001929/3.98, allocations: 1.739 MB / 2.034 GB, free: 129.6 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/3.98, allocations: 6 kB / 2.034 GB, free: 129.6 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0008723/3.981, allocations: 0.865 MB / 2.035 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00427/3.985, allocations: 1.082 MB / 2.036 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00713/3.992, allocations: 4.652 MB / 2.04 GB, free: 128.6 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/3.995, allocations: 2.49 MB / 2.043 GB, free: 127.8 MB / 0.6982 GB Notification: Performance of SimCode: time 7.11e-07/3.995, allocations: 0 / 2.043 GB, free: 127.8 MB / 0.6982 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorageChargeDischargeCycle_fmu --startTime=0 --stopTime=200000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorageChargeDischargeCycle.fmu > BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle.pipe 2>&1)