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 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.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.1103/0.1103, allocations: 21.45 MB / 36.39 MB, free: 1.16 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.001244/0.001244, allocations: 191.2 kB / 42.63 MB, free: 4.008 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.961/1.961, allocations: 205.4 MB / 254.1 MB, free: 15.23 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.001117/0.001117, allocations: 97.36 kB / 307.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003738, allocations: 7.719 kB / 373.2 MB, free: 59.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1168, allocations: 52.96 MB / 426.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3558/0.4726, allocations: 79.31 MB / 0.4937 GB, free: 24.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/0.473, allocations: 72.03 kB / 0.4937 GB, free: 24.34 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.01566/0.4886, allocations: 3.656 MB / 0.4973 GB, free: 23.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4887, allocations: 4 kB / 0.4973 GB, free: 23.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.4887, allocations: 2.781 kB / 0.4973 GB, free: 23.79 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.001022/0.4897, allocations: 0.5483 MB / 0.4978 GB, free: 23.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.4898, allocations: 9.438 kB / 0.4978 GB, free: 23.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.575e-05/0.4899, allocations: 25.88 kB / 0.4979 GB, free: 23.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007103/0.4906, allocations: 343.6 kB / 0.4982 GB, free: 23.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.4906, allocations: 13.45 kB / 0.4982 GB, free: 23.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.4907, allocations: 18.47 kB / 0.4982 GB, free: 23.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.4912, allocations: 198.2 kB / 0.4984 GB, free: 23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.4912, allocations: 0.9688 kB / 0.4984 GB, free: 23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.4913, allocations: 6.469 kB / 0.4984 GB, free: 23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.4913, allocations: 4.781 kB / 0.4984 GB, free: 23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000442/0.4918, allocations: 120.7 kB / 0.4985 GB, free: 22.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.493, allocations: 0.8792 MB / 0.4994 GB, free: 22.35 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002872/0.4933, allocations: 86.16 kB / 0.4995 GB, free: 22.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.4933, allocations: 1.562 kB / 0.4995 GB, free: 22.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.4934, allocations: 35.94 kB / 0.4995 GB, free: 22.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.733e-06/0.4934, allocations: 0 / 0.4995 GB, free: 22.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007417/0.4941, allocations: 185.3 kB / 0.4997 GB, free: 22.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.4942, allocations: 54.44 kB / 0.4998 GB, free: 22.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003547/0.4945, allocations: 248.7 kB / 0.5 GB, free: 22.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.4946, allocations: 25.7 kB / 0.5 GB, free: 22.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.4947, allocations: 158.3 kB / 0.5002 GB, free: 21.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.47e-05/0.4948, allocations: 56.7 kB / 0.5002 GB, free: 21.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/0.4948, allocations: 3.375 kB / 0.5002 GB, free: 21.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.309e-05/0.4949, allocations: 339.9 kB / 0.5005 GB, free: 21.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.4951, allocations: 38.05 kB / 0.5006 GB, free: 21.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.4953, allocations: 63.27 kB / 0.5006 GB, free: 21.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.4955, allocations: 48.8 kB / 0.5007 GB, free: 21.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4955, allocations: 0 / 0.5007 GB, free: 21.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005498/0.4961, allocations: 171.3 kB / 0.5009 GB, free: 21.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.4961, allocations: 4.812 kB / 0.5009 GB, free: 21.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.4962, allocations: 1.094 kB / 0.5009 GB, free: 21.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.4962, allocations: 0.875 kB / 0.5009 GB, free: 21.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.4965, allocations: 45.17 kB / 0.5009 GB, free: 21.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.4966, allocations: 9.219 kB / 0.5009 GB, free: 21.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.4968, allocations: 14.16 kB / 0.5009 GB, free: 21.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.4968, allocations: 13.53 kB / 0.5009 GB, free: 21.48 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.0002447/0.4971, allocations: 134.4 kB / 0.5011 GB, free: 21.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.401e-05/0.4972, allocations: 23.69 kB / 0.5011 GB, free: 21.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.094e-05/0.4972, allocations: 34.23 kB / 0.5011 GB, free: 21.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4973, allocations: 4.25 kB / 0.5011 GB, free: 21.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.4973, allocations: 0 / 0.5011 GB, free: 21.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.4973, allocations: 0 / 0.5011 GB, free: 21.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000383/0.4977, allocations: 283.1 kB / 0.5014 GB, free: 21.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4977, allocations: 5.438 kB / 0.5014 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003615/0.4981, allocations: 32.3 kB / 0.5014 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.4981, allocations: 5.25 kB / 0.5014 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.4981, allocations: 1.5 kB / 0.5014 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.4981, allocations: 0 / 0.5014 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4982, allocations: 5.375 kB / 0.5014 GB, free: 21.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007667/0.4989, allocations: 299 kB / 0.5017 GB, free: 20.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-05/0.499, allocations: 116.3 kB / 0.5018 GB, free: 20.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.527e-05/0.4991, allocations: 1.812 kB / 0.5018 GB, free: 20.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.4994, allocations: 6.938 kB / 0.5018 GB, free: 20.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.268e-05/0.4995, allocations: 9.375 kB / 0.5019 GB, free: 20.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.4995, allocations: 17.34 kB / 0.5019 GB, free: 20.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002837/0.4998, allocations: 196.8 kB / 0.5021 GB, free: 20.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4998, allocations: 0 / 0.5021 GB, free: 20.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004999/0.5003, allocations: 45 kB / 0.5021 GB, free: 20.78 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 0.0001475/0.5005, allocations: 106.6 kB / 0.5022 GB, free: 20.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004805/0.501, allocations: 114.4 kB / 0.5023 GB, free: 20.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.501, allocations: 4.125 kB / 0.5023 GB, free: 20.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002181/0.5012, allocations: 57.36 kB / 0.5024 GB, free: 20.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005259/0.5018, allocations: 58.95 kB / 0.5024 GB, free: 20.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.5034, allocations: 0.7045 MB / 0.5031 GB, free: 20.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008874/0.5043, allocations: 0.7598 MB / 0.5039 GB, free: 35.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002832/0.5046, allocations: 34.61 kB / 0.5039 GB, free: 35.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.994e-05/0.5047, allocations: 20.09 kB / 0.5039 GB, free: 35.53 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5047, allocations: 0 / 0.5039 GB, free: 35.53 MB / 378.7 MB Notification: Performance of Templates: time 0.01002/0.5148, allocations: 2.564 MB / 0.5064 GB, free: 35.33 MB / 378.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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)