Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007031/0.007031, allocations: 98.73 kB / 15.73 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 194.1 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2066/0.2066, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002795/0.002795, allocations: 66.36 kB / 436.6 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1167, allocations: 54.96 MB / 491.6 MB, free: 1.719 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003): time 0.03427/0.151, allocations: 22.73 MB / 0.5022 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.1523, allocations: 418.5 kB / 0.5026 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002977/0.1526, allocations: 11.94 kB / 0.5026 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.1528, allocations: 43.52 kB / 0.5027 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004909/0.1533, allocations: 142.9 kB / 0.5028 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.1536, allocations: 79.83 kB / 0.5029 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005876/0.1541, allocations: 422 kB / 0.5033 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004146/0.1546, allocations: 247 kB / 0.5035 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.1549, allocations: 179.3 kB / 0.5037 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003132/0.1552, allocations: 179.3 kB / 0.5039 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.719e-05/0.1553, allocations: 31.94 kB / 0.5039 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.1555, allocations: 63.91 kB / 0.504 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.372e-05/0.1555, allocations: 71.75 kB / 0.504 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.1557, allocations: 179.1 kB / 0.5042 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005322/0.1563, allocations: 402.3 kB / 0.5046 GB, free: 8.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1563, allocations: 0 / 0.5046 GB, free: 8.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1563, allocations: 0 / 0.5046 GB, free: 8.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.1563, allocations: 0 / 0.5046 GB, free: 8.68 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001166/0.1575, allocations: 0.6464 MB / 0.5052 GB, free: 7.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.1575, allocations: 8.031 kB / 0.5052 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.768e-05/0.1576, allocations: 66.66 kB / 0.5053 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.051e-05/0.1577, allocations: 40.7 kB / 0.5053 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004545/0.1582, allocations: 315.6 kB / 0.5056 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.1582, allocations: 24.88 kB / 0.5057 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.438e-05/0.1583, allocations: 24.38 kB / 0.5057 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004762/0.1587, allocations: 272.8 kB / 0.5059 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.1588, allocations: 3.938 kB / 0.5059 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.1588, allocations: 15.98 kB / 0.506 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.1588, allocations: 4 kB / 0.506 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003876/0.1592, allocations: 193.7 kB / 0.5062 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.1606, allocations: 0.8969 MB / 0.507 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/0.161, allocations: 174.7 kB / 0.5072 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.1613, allocations: 96.81 kB / 0.5073 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.1613, allocations: 7.984 kB / 0.5073 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.1613, allocations: 38.5 kB / 0.5073 GB, free: 5.676 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002051/0.1615, allocations: 39.83 kB / 0.5074 GB, free: 5.637 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.1616, allocations: 4 kB / 0.5074 GB, free: 5.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001394/0.163, allocations: 443.1 kB / 0.5078 GB, free: 5.172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.163, allocations: 51.41 kB / 0.5078 GB, free: 5.109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003279/0.1633, allocations: 304.5 kB / 0.5081 GB, free: 4.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.1634, allocations: 29.7 kB / 0.5082 GB, free: 4.766 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.1635, allocations: 180.3 kB / 0.5083 GB, free: 4.586 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.78e-05/0.1636, allocations: 67.42 kB / 0.5084 GB, free: 4.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.419e-05/0.1637, allocations: 53.69 kB / 0.5084 GB, free: 4.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1638, allocations: 346.7 kB / 0.5088 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.164, allocations: 59.97 kB / 0.5088 GB, free: 4.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.1641, allocations: 85.69 kB / 0.5089 GB, free: 3.965 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003914/0.168, allocations: 0.6988 MB / 0.5096 GB, free: 3.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.168, allocations: 0 / 0.5096 GB, free: 3.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007846/0.1688, allocations: 321.2 kB / 0.5099 GB, free: 2.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.1689, allocations: 4 kB / 0.5099 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1689, allocations: 0 / 0.5099 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007613/0.1696, allocations: 108.7 kB / 0.51 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.1699, allocations: 43.97 kB / 0.5101 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004753/0.1704, allocations: 0.5796 MB / 0.5106 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.1705, allocations: 8.062 kB / 0.5106 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.1706, allocations: 12.02 kB / 0.5106 GB, free: 2.16 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001962/0.1708, allocations: 148.6 kB / 0.5108 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.493e-05/0.1708, allocations: 35.77 kB / 0.5108 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008393/0.1717, allocations: 352.7 kB / 0.5112 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1717, allocations: 4 kB / 0.5112 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1717, allocations: 3.938 kB / 0.5112 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.1717, allocations: 3.984 kB / 0.5112 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.1729, allocations: 0.7362 MB / 0.5119 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1729, allocations: 0 / 0.5119 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.1732, allocations: 48.03 kB / 0.5119 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005442/0.1737, allocations: 92.78 kB / 0.512 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.1738, allocations: 11.98 kB / 0.512 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004764/0.1743, allocations: 0.5874 MB / 0.5126 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.1743, allocations: 8.094 kB / 0.5126 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.1753, allocations: 0.5044 MB / 0.5131 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.1754, allocations: 108.9 kB / 0.5132 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.27e-05/0.1755, allocations: 8.062 kB / 0.5132 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.1758, allocations: 8 kB / 0.5132 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.1758, allocations: 19.92 kB / 0.5132 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.1759, allocations: 7.984 kB / 0.5132 GB, free: 15.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003793/0.1763, allocations: 219.1 kB / 0.5135 GB, free: 15.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1763, allocations: 3.938 kB / 0.5135 GB, free: 15.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.1766, allocations: 71.89 kB / 0.5135 GB, free: 15.05 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.1777, allocations: 1.024 MB / 0.5145 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005106/0.1782, allocations: 207.9 kB / 0.5147 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1782, allocations: 4.125 kB / 0.5147 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.1785, allocations: 123.8 kB / 0.5149 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.1789, allocations: 71.12 kB / 0.5149 GB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004575/0.1835, allocations: 2.983 MB / 0.5178 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.1839, allocations: 0.7754 MB / 0.5186 GB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000275/0.1842, allocations: 50.94 kB / 0.5186 GB, free: 9.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.1844, allocations: 115.4 kB / 0.5187 GB, free: 9.547 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1844, allocations: 4 kB / 0.5188 GB, free: 9.543 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2385/0.4229, allocations: 7.222 MB / 0.5258 GB, free: 2.438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.12, allocations: 19.44 kB / 0.5258 GB, free: 2.418 MB / 398.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)