Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Thermal.HVAC.ControlledLiquidHeater_lim.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.ControlledLiquidHeater_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Thermal.HVAC.ControlledLiquidHeater_lim") translateModel(AES.ProcessComponents.Thermal.HVAC.ControlledLiquidHeater_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Thermal.HVAC.ControlledLiquidHeater_lim") [/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.09205/0.09205, allocations: 21.61 MB / 36.56 MB, free: 1.09 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.0009011/0.0009011, allocations: 183.1 kB / 42.83 MB, free: 3.789 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.21/1.21, allocations: 223.2 MB / 272.1 MB, free: 1.742 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.0009206/0.0009206, allocations: 98.81 kB / 328.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003077, allocations: 8 kB / 397 MB, free: 46.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07548/0.0758, allocations: 55.83 MB / 452.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2645/0.3404, allocations: 79.44 MB / 0.5198 GB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.3406, allocations: 74.3 kB / 0.5199 GB, free: 13.05 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.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.ControlledLiquidHeater_lim. 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.003013/0.3436, allocations: 1.447 MB / 0.5213 GB, free: 12.67 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3436, allocations: 0 / 0.5213 GB, free: 12.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.3436, allocations: 7.812 kB / 0.5213 GB, free: 12.66 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003102/0.3439, allocations: 392.4 kB / 0.5217 GB, free: 12.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.677e-05/0.344, allocations: 7.656 kB / 0.5217 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.754e-05/0.344, allocations: 15.62 kB / 0.5217 GB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002252/0.3442, allocations: 219.7 kB / 0.5219 GB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/0.3443, allocations: 33.17 kB / 0.522 GB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.3443, allocations: 7.844 kB / 0.522 GB, free: 12.03 MB / 362.7 MB Error: An independent subset of the model has imbalanced number of equations (18) and variables (17). variables: xpi Ti oTo oTi Ec Pc Tfo Tfi hbo hao hbi hai w pwh_b.h pwh_b.w pwh_a.h pwh_a.w equations: 1 : hao = 4186.0 * Tfo 2 : hbo = 4186.0 * Tfo 3 : 4186.0 * Tfi = hai 4 : 1046500.0 * der(Tfo) = Pc + 4186.0 * w * (Tfi - Tfo) 5 : Ti = if w > 0.0 then 250.0 / w else 30.0 6 : 0.0 = if ON then Pc - max(0.0, min(Pmax, xpi + 34883.33333333334 * (To - Tfo))) else Pc 7 : 0.0 = if ON then xpi + Ti * der(xpi) - Pc else der(xpi) 8 : Pc = der(Ec) 9 : oTi = Tfi 10 : oTo = Tfo 11 : 0.0 = pwh_a.w + pwh_b.w 12 : w = pwh_a.w 13 : hai = pwh_a.h 14 : hao = pwh_a.h 15 : hbi = pwh_b.h 16 : hbo = pwh_b.h 17 : pwh_a.w = 0.0 18 : pwh_b.w = 0.0 Notification: Performance of preOpt clockPartitioning (simulation) : time 0.0002178/0.3445, allocations: 113.1 kB / 0.5221 GB, free: 12.01 MB / 362.7 MB Error: pre-optimization module clockPartitioning (simulation) failed.