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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1022/0.1022, allocations: 17.69 MB / 33.64 MB, free: 1.691 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.001906/0.001905, allocations: 183.5 kB / 38.92 MB, free: 8 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.689/1.689, allocations: 205.4 MB / 249.5 MB, free: 2.434 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.0008296/0.0008297, allocations: 102.2 kB / 302.2 MB, free: 4.414 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004558/0.0004559, allocations: 12 kB / 367 MB, free: 3.605 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2798, allocations: 51.97 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1065/0.3864, allocations: 77.95 MB / 496.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.3867, allocations: 67.97 kB / 496.9 MB, free: 10.25 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.003878/0.3906, allocations: 1.406 MB / 498.4 MB, free: 8.844 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3906, allocations: 4 kB / 498.4 MB, free: 8.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.3906, allocations: 0 / 498.4 MB, free: 8.84 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.0004405/0.3911, allocations: 395.1 kB / 498.7 MB, free: 8.402 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3911, allocations: 11.98 kB / 498.8 MB, free: 8.391 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.317e-05/0.3912, allocations: 16.75 kB / 498.8 MB, free: 8.375 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.3915, allocations: 220 kB / 499 MB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.065e-05/0.3916, allocations: 42.27 kB / 499 MB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.3916, allocations: 12.38 kB / 499 MB, free: 8.062 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.000317/0.392, allocations: 109.2 kB / 499.1 MB, free: 7.953 MB / 362.7 MB Error: pre-optimization module clockPartitioning (simulation) failed.