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/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: 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007483/0.007483, allocations: 100.7 kB / 15.73 MB, free: 6.043 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.001438/0.001438, allocations: 196.3 kB / 16.67 MB, free: 5.977 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.464/1.464, allocations: 222.9 MB / 240.3 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2362/0.2362, allocations: 22.37 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 69.7 kB / 437.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1171, allocations: 54.96 MB / 492.1 MB, free: 1.188 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.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/Interfaces/flowOnePort_pwh.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_001): time 0.0353/0.1525, allocations: 21.9 MB / 0.5019 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008013/0.1533, allocations: 227.1 kB / 0.5021 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.1535, allocations: 11.94 kB / 0.5021 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.135e-05/0.1536, allocations: 23.72 kB / 0.5022 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002405/0.1538, allocations: 107.2 kB / 0.5023 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001548/0.154, allocations: 39.94 kB / 0.5023 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002814/0.1543, allocations: 290.6 kB / 0.5026 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.1545, allocations: 157.2 kB / 0.5027 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.1547, allocations: 131.5 kB / 0.5029 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.1549, allocations: 103.5 kB / 0.503 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/0.1549, allocations: 16 kB / 0.503 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.112e-05/0.155, allocations: 16 kB / 0.503 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.125e-05/0.155, allocations: 39.83 kB / 0.503 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.1551, allocations: 107.4 kB / 0.5031 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.1554, allocations: 227.1 kB / 0.5033 GB, free: 9.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1554, allocations: 0 / 0.5033 GB, free: 9.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1554, allocations: 0 / 0.5033 GB, free: 9.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.1554, allocations: 0 / 0.5033 GB, free: 9.941 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007513/0.1562, allocations: 0.5182 MB / 0.5038 GB, free: 9.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1563, allocations: 12.03 kB / 0.5039 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.419e-05/0.1563, allocations: 24.66 kB / 0.5039 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.1566, allocations: 271.4 kB / 0.5041 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.1567, allocations: 12.7 kB / 0.5042 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.1567, allocations: 16.38 kB / 0.5042 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003759/0.1571, allocations: 196.6 kB / 0.5044 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.1571, allocations: 192 / 0.5044 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.1571, allocations: 11.94 kB / 0.5044 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.1571, allocations: 4 kB / 0.5044 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003305/0.1575, allocations: 120.6 kB / 0.5045 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009729/0.1585, allocations: 0.8521 MB / 0.5053 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.1587, allocations: 82.53 kB / 0.5054 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.1588, allocations: 56.84 kB / 0.5054 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.1588, allocations: 0 / 0.5054 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/0.1589, allocations: 38.5 kB / 0.5055 GB, free: 7.543 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.223e-06/0.1589, allocations: 0 / 0.5055 GB, free: 7.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005123/0.1594, allocations: 194 kB / 0.5057 GB, free: 7.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.1595, allocations: 51.41 kB / 0.5057 GB, free: 7.285 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002476/0.1597, allocations: 229 kB / 0.5059 GB, free: 7.051 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.1598, allocations: 25.7 kB / 0.506 GB, free: 7.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1599, allocations: 144.2 kB / 0.5061 GB, free: 6.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.176e-05/0.1599, allocations: 51.2 kB / 0.5061 GB, free: 6.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.16, allocations: 25.72 kB / 0.5062 GB, free: 6.789 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1601, allocations: 346.7 kB / 0.5065 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.1603, allocations: 39.97 kB / 0.5065 GB, free: 6.402 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.1604, allocations: 67.73 kB / 0.5066 GB, free: 6.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008338/0.1612, allocations: 216.9 kB / 0.5068 GB, free: 6.109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1613, allocations: 0 / 0.5068 GB, free: 6.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000346/0.1616, allocations: 167.5 kB / 0.507 GB, free: 5.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.1616, allocations: 11.98 kB / 0.507 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.1617, allocations: 0 / 0.507 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.1617, allocations: 0 / 0.507 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.1619, allocations: 39.92 kB / 0.507 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1619, allocations: 0 / 0.507 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.162, allocations: 19.83 kB / 0.507 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.162, allocations: 8.062 kB / 0.5071 GB, free: 5.859 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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.1622, allocations: 137.7 kB / 0.5072 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.1623, allocations: 23.72 kB / 0.5072 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.435e-05/0.1623, allocations: 25.83 kB / 0.5072 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.1624, allocations: 0 / 0.5072 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.1624, allocations: 8 kB / 0.5072 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.1624, allocations: 0 / 0.5072 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002716/0.1627, allocations: 269.4 kB / 0.5075 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1627, allocations: 0 / 0.5075 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.1629, allocations: 27.98 kB / 0.5075 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1629, allocations: 4 kB / 0.5075 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.1629, allocations: 4 kB / 0.5075 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1629, allocations: 0 / 0.5075 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1629, allocations: 0 / 0.5075 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005186/0.1634, allocations: 303.1 kB / 0.5078 GB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.775e-05/0.1635, allocations: 100.8 kB / 0.5079 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.1635, allocations: 4 kB / 0.5079 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.1637, allocations: 4 kB / 0.5079 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.1637, allocations: 11.98 kB / 0.5079 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.1638, allocations: 8 kB / 0.5079 GB, free: 4.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.1639, allocations: 164.5 kB / 0.5081 GB, free: 4.691 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1639, allocations: 8 kB / 0.5081 GB, free: 4.684 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000273/0.1642, allocations: 43.94 kB / 0.5081 GB, free: 4.641 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001096/0.1643, allocations: 95.25 kB / 0.5082 GB, free: 4.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.1646, allocations: 111.9 kB / 0.5083 GB, free: 4.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1646, allocations: 0 / 0.5083 GB, free: 4.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.1648, allocations: 60.05 kB / 0.5084 GB, free: 4.371 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.1652, allocations: 55.08 kB / 0.5085 GB, free: 4.316 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.1662, allocations: 0.5545 MB / 0.509 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.1666, allocations: 0.7363 MB / 0.5097 GB, free: 2.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.1667, allocations: 34.28 kB / 0.5097 GB, free: 2.941 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.609e-05/0.1667, allocations: 19.44 kB / 0.5098 GB, free: 2.926 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1667, allocations: 0 / 0.5098 GB, free: 2.926 MB / 382.1 MB Notification: Performance of Templates: time 0.005483/0.1722, allocations: 2.379 MB / 0.5121 GB, free: 0.5703 MB / 382.1 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)