Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") [/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.1152/0.1152, allocations: 21.61 MB / 36.56 MB, free: 1.156 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.0009658/0.0009658, allocations: 179.6 kB / 42.83 MB, free: 3.832 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.269/1.269, allocations: 223.2 MB / 272.1 MB, free: 1.82 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.0008762/0.0008762, allocations: 108.8 kB / 328.7 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003341, allocations: 8 kB / 397 MB, free: 46.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09285/0.09321, allocations: 55.82 MB / 452.9 MB, free: 6.68 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3041/0.3973, allocations: 80.29 MB / 0.5207 GB, free: 13.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.3976, allocations: 71.11 kB / 0.5207 GB, free: 13.17 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid Hsrc.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.Liquid.Node_wT_prescribed. 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid Hsnk.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.Liquid.Node_pT_fixed. 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid HE.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.Liquid.HE_LiquidLiquid_1vol. 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid Csrc.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.Liquid.Node_wT_prescribed. 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid Csnk.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.Liquid.Node_pT_fixed. 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.008382/0.406, allocations: 3.777 MB / 0.5244 GB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.406, allocations: 0 / 0.5244 GB, free: 12.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.406, allocations: 3.594 kB / 0.5244 GB, free: 12.61 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0005952/0.4066, allocations: 0.5472 MB / 0.525 GB, free: 12.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.4066, allocations: 7.531 kB / 0.525 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.08e-05/0.4067, allocations: 31 kB / 0.525 GB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.4071, allocations: 336.3 kB / 0.5253 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.4072, allocations: 11.42 kB / 0.5253 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.4072, allocations: 19.22 kB / 0.5253 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.4075, allocations: 196.6 kB / 0.5255 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.4075, allocations: 3.953 kB / 0.5255 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.4075, allocations: 10.75 kB / 0.5255 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.4075, allocations: 3.719 kB / 0.5255 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.4078, allocations: 120.9 kB / 0.5257 GB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007282/0.4085, allocations: 0.8774 MB / 0.5265 GB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.4087, allocations: 88.75 kB / 0.5266 GB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.4087, allocations: 0 / 0.5266 GB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.279e-05/0.4087, allocations: 34.38 kB / 0.5266 GB, free: 11.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 9.52e-07/0.4087, allocations: 3.938 kB / 0.5266 GB, free: 11.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003921/0.4091, allocations: 181.7 kB / 0.5268 GB, free: 10.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.852e-05/0.4091, allocations: 59.25 kB / 0.5269 GB, free: 10.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.4093, allocations: 243.6 kB / 0.5271 GB, free: 10.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.4093, allocations: 25.7 kB / 0.5271 GB, free: 10.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.597e-05/0.4094, allocations: 158.7 kB / 0.5273 GB, free: 10.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.4094, allocations: 50.56 kB / 0.5273 GB, free: 10.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.692e-06/0.4094, allocations: 3.875 kB / 0.5273 GB, free: 10.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.1e-05/0.4095, allocations: 336.5 kB / 0.5277 GB, free: 10.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.853e-05/0.4096, allocations: 35.83 kB / 0.5277 GB, free: 10.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.4097, allocations: 73.3 kB / 0.5278 GB, free: 10.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00011/0.4098, allocations: 48.48 kB / 0.5278 GB, free: 10.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4098, allocations: 0 / 0.5278 GB, free: 10.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002652/0.4101, allocations: 175.7 kB / 0.528 GB, free: 10.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.4101, allocations: 15.78 kB / 0.528 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.4101, allocations: 0 / 0.528 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.4102, allocations: 6.891 kB / 0.528 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.4104, allocations: 30.8 kB / 0.528 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.4104, allocations: 3.719 kB / 0.528 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.4105, allocations: 15.16 kB / 0.528 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.4105, allocations: 7.859 kB / 0.528 GB, free: 10.14 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000149/0.4106, allocations: 139.8 kB / 0.5282 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.655e-05/0.4107, allocations: 23.12 kB / 0.5282 GB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.475e-05/0.4107, allocations: 35.77 kB / 0.5282 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.4107, allocations: 0 / 0.5282 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4108, allocations: 3.844 kB / 0.5282 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.4108, allocations: 0 / 0.5282 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.411, allocations: 280.8 kB / 0.5285 GB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.411, allocations: 2.062 kB / 0.5285 GB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.4112, allocations: 35.67 kB / 0.5285 GB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.4112, allocations: 3.938 kB / 0.5285 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.4112, allocations: 10.16 kB / 0.5286 GB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4112, allocations: 7.797 kB / 0.5286 GB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.4112, allocations: 0 / 0.5286 GB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003997/0.4116, allocations: 302.1 kB / 0.5289 GB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.4117, allocations: 104 kB / 0.529 GB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.4117, allocations: 0 / 0.529 GB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.4119, allocations: 11.33 kB / 0.529 GB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.4119, allocations: 14.97 kB / 0.529 GB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.4119, allocations: 3.844 kB / 0.529 GB, free: 9.449 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001197/0.412, allocations: 194.6 kB / 0.5292 GB, free: 9.348 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.412, allocations: 0 / 0.5292 GB, free: 9.348 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002329/0.4123, allocations: 49.56 kB / 0.5292 GB, free: 9.344 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.541e-05/0.4124, allocations: 109.9 kB / 0.5293 GB, free: 9.246 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002561/0.4126, allocations: 122.7 kB / 0.5294 GB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4126, allocations: 0 / 0.5294 GB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.4128, allocations: 60.91 kB / 0.5295 GB, free: 9.211 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.413, allocations: 63.91 kB / 0.5296 GB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008632/0.4139, allocations: 0.7004 MB / 0.5302 GB, free: 8.695 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.414, allocations: 0.7571 MB / 0.531 GB, free: 7.961 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.4142, allocations: 33.56 kB / 0.531 GB, free: 7.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/0.4142, allocations: 22.44 kB / 0.531 GB, free: 7.934 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4142, allocations: 0 / 0.531 GB, free: 7.934 MB / 362.7 MB Notification: Performance of Templates: time 0.004292/0.4185, allocations: 2.561 MB / 0.5335 GB, free: 6.711 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)