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: translateModel(AES.ProcessComponents.Thermal.HVAC.StratifiedTank_2zones,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Thermal.HVAC.StratifiedTank_2zones") translateModel(AES.ProcessComponents.Thermal.HVAC.StratifiedTank_2zones,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Thermal.HVAC.StratifiedTank_2zones") [/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.0935/0.0935, allocations: 21.62 MB / 36.56 MB, free: 1.066 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.001053/0.001053, allocations: 187.3 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.208/1.208, allocations: 223.2 MB / 272.1 MB, free: 1.414 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.0008031/0.000803, allocations: 103.2 kB / 328.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003172, allocations: 8 kB / 397 MB, free: 46.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08176/0.0821, allocations: 55.81 MB / 452.9 MB, free: 6.66 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2476/0.3298, allocations: 79.99 MB / 0.5204 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001671/0.33, allocations: 72.12 kB / 0.5204 GB, free: 13.09 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.004871/0.3349, allocations: 2.063 MB / 0.5224 GB, free: 12.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3349, allocations: 0 / 0.5224 GB, free: 12.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5e-06/0.3349, allocations: 3.719 kB / 0.5224 GB, free: 12.69 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.0005564/0.3355, allocations: 447.4 kB / 0.5229 GB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3355, allocations: 7.531 kB / 0.5229 GB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.849e-05/0.3356, allocations: 18.94 kB / 0.5229 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.3357, allocations: 181.4 kB / 0.5231 GB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-05/0.3358, allocations: 60.78 kB / 0.5231 GB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.3359, allocations: 7.562 kB / 0.5231 GB, free: 12.06 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.0008759/0.3367, allocations: 482.6 kB / 0.5236 GB, free: 12.04 MB / 362.7 MB Error: pre-optimization module clockPartitioning (simulation) failed.