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 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.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.1207/0.1207, allocations: 21.45 MB / 36.39 MB, free: 1.188 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.001153/0.001153, allocations: 179.4 kB / 42.62 MB, free: 3.984 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.776/1.776, allocations: 205.4 MB / 254.1 MB, free: 15.24 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.0009823/0.0009823, allocations: 89.5 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003616, allocations: 12.12 kB / 373.2 MB, free: 59.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1312, allocations: 52.95 MB / 426.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4212/0.5525, allocations: 78.5 MB / 0.4929 GB, free: 23.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000177/0.5527, allocations: 67.97 kB / 0.4929 GB, free: 23.86 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.003734/0.5565, allocations: 1.409 MB / 0.4943 GB, free: 23.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5565, allocations: 2.969 kB / 0.4943 GB, free: 23.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.5565, allocations: 0 / 0.4943 GB, free: 23.49 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.0004226/0.5569, allocations: 403.3 kB / 0.4947 GB, free: 23.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.557, allocations: 14.86 kB / 0.4947 GB, free: 23.1 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.738e-05/0.5571, allocations: 9.562 kB / 0.4947 GB, free: 23.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.5574, allocations: 211 kB / 0.4949 GB, free: 22.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.027e-05/0.5574, allocations: 39.06 kB / 0.4949 GB, free: 22.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.942e-05/0.5575, allocations: 10.06 kB / 0.495 GB, free: 22.85 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.0003109/0.5578, allocations: 103.2 kB / 0.4951 GB, free: 22.84 MB / 362.7 MB Error: pre-optimization module clockPartitioning (simulation) failed.