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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07302/0.07302, allocations: 17.69 MB / 33.63 MB, free: 1.617 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001449/0.001449, allocations: 178.2 kB / 38.92 MB, free: 8.246 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.4 MB / 249.5 MB, free: 2.359 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008864/0.0008865, allocations: 96.75 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004595/0.0004594, allocations: 8 kB / 366.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2812, allocations: 51.98 MB / 418.9 MB, free: 24.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.3906, allocations: 78.46 MB / 497.4 MB, free: 9.824 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.391, allocations: 71.94 kB / 497.5 MB, free: 9.754 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.006614/0.3976, allocations: 2.027 MB / 499.5 MB, free: 7.727 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3976, allocations: 4 kB / 499.5 MB, free: 7.723 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.3976, allocations: 0 / 499.5 MB, free: 7.723 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.0006972/0.3983, allocations: 443.2 kB / 499.9 MB, free: 7.238 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.3984, allocations: 15.98 kB / 499.9 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.439e-05/0.3985, allocations: 16.75 kB / 500 MB, free: 7.207 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/0.3987, allocations: 192.2 kB / 0.4884 GB, free: 6.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.3988, allocations: 50.25 kB / 0.4885 GB, free: 6.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.3988, allocations: 8.375 kB / 0.4885 GB, free: 6.918 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.001065/0.3999, allocations: 487.9 kB / 0.4889 GB, free: 6.434 MB / 362.7 MB Error: pre-optimization module clockPartitioning (simulation) failed.