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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",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.1032/0.1032, allocations: 21.62 MB / 36.56 MB, free: 1.078 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.001049/0.001049, allocations: 190.5 kB / 42.83 MB, free: 3.781 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.378/1.378, allocations: 223.2 MB / 272.1 MB, free: 1.422 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.0008553/0.0008552, allocations: 101.4 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003743/0.0003742, allocations: 8 kB / 397.1 MB, free: 46.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1091, allocations: 55.82 MB / 452.9 MB, free: 6.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.343/0.4521, allocations: 80.29 MB / 0.5207 GB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.4524, allocations: 75.28 kB / 0.5208 GB, free: 13.18 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.008906/0.4613, allocations: 3.772 MB / 0.5245 GB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.4614, allocations: 0 / 0.5245 GB, free: 12.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.4614, allocations: 3.688 kB / 0.5245 GB, free: 12.62 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.0006867/0.4621, allocations: 0.5528 MB / 0.525 GB, free: 12.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.4621, allocations: 11.53 kB / 0.525 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.224e-05/0.4622, allocations: 51.38 kB / 0.5251 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.026e-05/0.4622, allocations: 30.91 kB / 0.5251 GB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/0.4627, allocations: 336.9 kB / 0.5254 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.4627, allocations: 14.14 kB / 0.5254 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.4628, allocations: 13.69 kB / 0.5255 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.4631, allocations: 203 kB / 0.5257 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.4631, allocations: 3.938 kB / 0.5257 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.4631, allocations: 7.156 kB / 0.5257 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.4632, allocations: 3.844 kB / 0.5257 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002693/0.4634, allocations: 120.2 kB / 0.5258 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007776/0.4642, allocations: 0.8724 MB / 0.5266 GB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.4644, allocations: 81.92 kB / 0.5267 GB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.4644, allocations: 3.688 kB / 0.5267 GB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.4644, allocations: 38 kB / 0.5268 GB, free: 11.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.4645, allocations: 0 / 0.5268 GB, free: 11.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004523/0.4649, allocations: 189.3 kB / 0.5269 GB, free: 11.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.465, allocations: 51.41 kB / 0.527 GB, free: 10.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.4652, allocations: 245.6 kB / 0.5272 GB, free: 10.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.4652, allocations: 28.77 kB / 0.5272 GB, free: 10.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.499e-05/0.4653, allocations: 161.9 kB / 0.5274 GB, free: 10.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.611e-05/0.4653, allocations: 48.67 kB / 0.5274 GB, free: 10.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.4653, allocations: 5.531 kB / 0.5275 GB, free: 10.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.217e-05/0.4654, allocations: 333.4 kB / 0.5278 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.4655, allocations: 53.5 kB / 0.5278 GB, free: 10.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.4657, allocations: 61.27 kB / 0.5279 GB, free: 10.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.4658, allocations: 53.59 kB / 0.5279 GB, free: 10.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.4658, allocations: 0 / 0.5279 GB, free: 10.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002896/0.4661, allocations: 176 kB / 0.5281 GB, free: 10.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.4661, allocations: 3.906 kB / 0.5281 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.4661, allocations: 3.844 kB / 0.5281 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.4662, allocations: 0 / 0.5281 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.4664, allocations: 35.11 kB / 0.5281 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.4664, allocations: 7.828 kB / 0.5281 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.4665, allocations: 20.39 kB / 0.5282 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.4665, allocations: 5.094 kB / 0.5282 GB, free: 10.21 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.0001985/0.4667, allocations: 144.1 kB / 0.5283 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.4668, allocations: 30.77 kB / 0.5283 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.725e-05/0.4669, allocations: 28.84 kB / 0.5284 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.4669, allocations: 3.656 kB / 0.5284 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4669, allocations: 0 / 0.5284 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.4669, allocations: 0 / 0.5284 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.4671, allocations: 281 kB / 0.5286 GB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4671, allocations: 0 / 0.5286 GB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002092/0.4674, allocations: 35.62 kB / 0.5287 GB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.4674, allocations: 0 / 0.5287 GB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.4674, allocations: 7.797 kB / 0.5287 GB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.4674, allocations: 4 kB / 0.5287 GB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4674, allocations: 3.938 kB / 0.5287 GB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004251/0.4678, allocations: 298.2 kB / 0.529 GB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.4679, allocations: 107.9 kB / 0.5291 GB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.4679, allocations: 0.875 kB / 0.5291 GB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.4681, allocations: 11.48 kB / 0.5291 GB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.4681, allocations: 11.83 kB / 0.5291 GB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.4681, allocations: 3.875 kB / 0.5291 GB, free: 9.527 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001358/0.4683, allocations: 201.1 kB / 0.5293 GB, free: 9.426 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4683, allocations: 0 / 0.5293 GB, free: 9.426 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002592/0.4685, allocations: 49.53 kB / 0.5293 GB, free: 9.422 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.0005912/0.4691, allocations: 0.8361 MB / 0.5302 GB, free: 8.719 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002706/0.4694, allocations: 117 kB / 0.5303 GB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4694, allocations: 0 / 0.5303 GB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.4696, allocations: 61.12 kB / 0.5303 GB, free: 8.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.4699, allocations: 62.56 kB / 0.5304 GB, free: 8.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.4719, allocations: 1.841 MB / 0.5322 GB, free: 7.473 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.4721, allocations: 0.7583 MB / 0.5329 GB, free: 6.738 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001704/0.4723, allocations: 28.34 kB / 0.533 GB, free: 6.719 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.4724, allocations: 76.66 kB / 0.533 GB, free: 6.703 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4724, allocations: 0 / 0.533 GB, free: 6.703 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0158/0.4882, allocations: 4.993 MB / 0.5379 GB, free: 4.414 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/0.4884, allocations: 184.4 kB / 0.5381 GB, free: 4.176 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.295, allocations: 0 / 0.5381 GB, free: 4.176 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)