Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Thermal.HVAC.StratifiedTank_2zones.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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) 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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: "" <> buildModelFMU(AES.ProcessComponents.Thermal.HVAC.StratifiedTank_2zones,fileNamePrefix="AES_AES_ProcessComponents_Thermal_HVAC_StratifiedTank_2zones",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Thermal.HVAC.StratifiedTank_2zones,fileNamePrefix="AES_AES_ProcessComponents_Thermal_HVAC_StratifiedTank_2zones",fmuType="me",version="2.0",platforms={"static"}) [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1337/0.1337, allocations: 21.61 MB / 36.56 MB, free: 1.074 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 189.5 kB / 42.83 MB, free: 3.781 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 272.1 MB, free: 1.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009268/0.0009267, allocations: 105.4 kB / 328.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000464/0.0004638, allocations: 8 kB / 397.1 MB, free: 46.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1309, allocations: 55.82 MB / 452.9 MB, free: 6.516 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3591/0.4901, allocations: 79.98 MB / 0.5204 GB, free: 12.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.4903, allocations: 74.44 kB / 0.5205 GB, free: 12.77 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/HVAC/StratifiedTank_2zones.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: AES.ProcessComponents.Thermal.HVAC.StratifiedTank_2zones. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.00535/0.4957, allocations: 2.062 MB / 0.5225 GB, free: 12.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.4957, allocations: 0.6562 kB / 0.5225 GB, free: 12.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.4957, allocations: 3.969 kB / 0.5225 GB, free: 12.38 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.000611/0.4963, allocations: 448.7 kB / 0.5229 GB, free: 11.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.4964, allocations: 11.59 kB / 0.523 GB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.409e-05/0.4964, allocations: 40.67 kB / 0.523 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.568e-05/0.4965, allocations: 19.34 kB / 0.523 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.4966, allocations: 184.9 kB / 0.5232 GB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-05/0.4967, allocations: 57.91 kB / 0.5232 GB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.4968, allocations: 15.22 kB / 0.5233 GB, free: 11.7 MB / 362.7 MB Error: An independent subset of the model has imbalanced number of equations (16) and variables (15). variables: Ecold Ehot Mcold Mhot Tcold Thot lcold coldIn.h coldIn.w hotOut.h hotOut.w coldOut.h coldOut.w hotIn.h hotIn.w equations: 1 : 0.0 = coldIn.w + coldOut.w + hotIn.w + hotOut.w 2 : Mcold = ro * Abase * lcold 3 : Mhot = ro * Abase * (H - lcold) 4 : Ecold = Mcold * cp * Tcold 5 : Ehot = Mhot * cp * Thot 6 : 0.0 = if lcold < 0.0 and coldIn.w + coldOut.w < 0.0 then hotOut.h - cp * Thot else if lcold > H and coldIn.w + coldOut.w > 0.0 then hotOut.h - cp * Tcold else hotOut.h - cp * Thot 7 : 0.0 = if lcold < 0.0 and coldIn.w + coldOut.w < 0.0 then hotIn.h - cp * Thot else if lcold > H and coldIn.w + coldOut.w > 0.0 then hotIn.h - cp * Tcold else hotIn.h - cp * Thot 8 : 0.0 = if lcold < 0.0 and coldIn.w + coldOut.w < 0.0 then coldOut.h - cp * Thot else if lcold > H and coldIn.w + coldOut.w > 0.0 then coldOut.h - cp * Tcold else coldOut.h - cp * Tcold 9 : 0.0 = if lcold < 0.0 and coldIn.w + coldOut.w < 0.0 then coldIn.h - cp * Thot else if lcold > H and coldIn.w + coldOut.w > 0.0 then coldIn.h - cp * Tcold else coldIn.h - cp * Tcold 10 : 0.0 = if lcold < 0.0 and coldIn.w + coldOut.w < 0.0 then der(Ehot) - (hotIn.w * smooth(0, hotIn.h) + hotOut.w * smooth(0, hotOut.h) + coldIn.w * smooth(0, coldIn.h) + coldOut.w * smooth(0, coldOut.h)) else if lcold > H and coldIn.w + coldOut.w > 0.0 then der(Ehot) else der(Ehot) - (hotIn.w * smooth(0, hotIn.h) + hotOut.w * smooth(0, hotOut.h) + Gmix * (Tcold - Thot)) 11 : 0.0 = if lcold < 0.0 and coldIn.w + coldOut.w < 0.0 then der(Ecold) else if lcold > H and coldIn.w + coldOut.w > 0.0 then der(Ecold) - (coldIn.w * smooth(0, coldIn.h) + coldOut.w * smooth(0, coldOut.h) + hotIn.w * smooth(0, hotIn.h) + hotOut.w * smooth(0, hotOut.h)) else der(Ecold) - (coldIn.w * smooth(0, coldIn.h) + coldOut.w * smooth(0, coldOut.h) + Gmix * (Thot - Tcold)) 12 : 0.0 = if lcold < 0.0 and coldIn.w + coldOut.w < 0.0 then der(Mcold) else if lcold > H and coldIn.w + coldOut.w > 0.0 then der(Mcold) else der(Mcold) - (coldIn.w + coldOut.w) 13 : hotIn.w = 0.0 14 : coldOut.w = 0.0 15 : hotOut.w = 0.0 16 : coldIn.w = 0.0 Notification: Performance of preOpt clockPartitioning (simulation) : time 0.0008844/0.4977, allocations: 480.6 kB / 0.5237 GB, free: 11.67 MB / 362.7 MB Error: pre-optimization module clockPartitioning (simulation) failed.