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: "" <> buildModelFMU(AES.ProcessComponents.Thermal.HVAC.ControlledLiquidHeater_lim,fileNamePrefix="AES_AES_ProcessComponents_Thermal_HVAC_ControlledLiquidHeater_lim",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Thermal.HVAC.ControlledLiquidHeater_lim,fileNamePrefix="AES_AES_ProcessComponents_Thermal_HVAC_ControlledLiquidHeater_lim",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.1017/0.1017, allocations: 21.62 MB / 36.57 MB, free: 1.062 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.001068/0.001068, allocations: 183.4 kB / 42.83 MB, free: 3.785 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.398/1.398, allocations: 223.2 MB / 272.1 MB, free: 1.402 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.0009202/0.0009201, allocations: 104.2 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003205/0.0003204, allocations: 11.98 kB / 397.1 MB, free: 46.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.103, allocations: 55.81 MB / 452.9 MB, free: 6.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3548/0.4578, allocations: 79.45 MB / 0.5199 GB, free: 13.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.4581, allocations: 74.66 kB / 0.52 GB, free: 13.1 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.003503/0.4616, allocations: 1.449 MB / 0.5214 GB, free: 12.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4616, allocations: 4 kB / 0.5214 GB, free: 12.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.4616, allocations: 3.656 kB / 0.5214 GB, free: 12.71 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.0004072/0.4621, allocations: 397.4 kB / 0.5218 GB, free: 12.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.4621, allocations: 7.688 kB / 0.5218 GB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.429e-05/0.4622, allocations: 44.8 kB / 0.5218 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.4622, allocations: 15.5 kB / 0.5218 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.4626, allocations: 220.7 kB / 0.5221 GB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.11e-05/0.4626, allocations: 40.81 kB / 0.5221 GB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.381e-05/0.4626, allocations: 11.25 kB / 0.5221 GB, free: 12.04 MB / 362.7 MB Error: An independent subset of the model has imbalanced number of equations (22) and variables (21). variables: xpi Ti $outputAlias_oTo oTo $outputAlias_oTi oTi $outputAlias_Ec Ec $outputAlias_Pc 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) = $outputAlias_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 $outputAlias_Pc - max(0.0, min(Pmax, xpi + 34883.33333333334 * (To - Tfo))) else $outputAlias_Pc 7 : 0.0 = if ON then xpi + Ti * der(xpi) - $outputAlias_Pc else der(xpi) 8 : $outputAlias_Pc = der($outputAlias_Ec) 9 : $outputAlias_oTi = Tfi 10 : $outputAlias_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 19 : Pc = $outputAlias_Pc 20 : Ec = $outputAlias_Ec 21 : oTi = $outputAlias_oTi 22 : oTo = $outputAlias_oTo Notification: Performance of preOpt clockPartitioning (simulation) : time 0.0002964/0.463, allocations: 114.6 kB / 0.5222 GB, free: 12.02 MB / 362.7 MB Error: pre-optimization module clockPartitioning (simulation) failed.