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.001404/0.001404, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001491/0.001491, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09101/0.09101, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002303/0.002303, allocations: 60.28 kB / 382.2 MB, free: 40.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1183, allocations: 54.97 MB / 437.2 MB, free: 12.24 MB / 318.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.03238/0.1507, allocations: 21.62 MB / 458.8 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006359/0.1514, allocations: 231.2 kB / 459 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.1516, allocations: 11.94 kB / 459.1 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.425e-05/0.1517, allocations: 23.72 kB / 459.1 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.152, allocations: 99.17 kB / 459.2 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001394/0.1521, allocations: 39.94 kB / 459.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.1524, allocations: 290.6 kB / 459.5 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.1527, allocations: 152 kB / 459.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.1529, allocations: 119.5 kB / 459.8 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.153, allocations: 103.5 kB / 459.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.214e-05/0.1531, allocations: 16 kB / 459.9 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.643e-05/0.1531, allocations: 16 kB / 459.9 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.975e-05/0.1532, allocations: 35.8 kB / 459.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.1533, allocations: 111.4 kB / 460 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.1535, allocations: 231.1 kB / 460.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1535, allocations: 3.938 kB / 460.3 MB, free: 5.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1535, allocations: 3.938 kB / 460.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1536, allocations: 0 / 460.3 MB, free: 5.305 MB / 334.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.000719/0.1543, allocations: 0.5143 MB / 460.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.1543, allocations: 8.031 kB / 460.8 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.1544, allocations: 24.66 kB / 460.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003324/0.1547, allocations: 275.5 kB / 461.1 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.1547, allocations: 12.7 kB / 461.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.679e-05/0.1548, allocations: 16.38 kB / 461.1 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.1551, allocations: 192.7 kB / 461.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1552, allocations: 4.125 kB / 461.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.1552, allocations: 11.94 kB / 461.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1552, allocations: 8 kB / 461.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002951/0.1555, allocations: 115.9 kB / 461.4 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009151/0.1564, allocations: 0.8483 MB / 462.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.1566, allocations: 78.55 kB / 462.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.1568, allocations: 64.81 kB / 462.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.1568, allocations: 4 kB / 462.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.1568, allocations: 34.56 kB / 462.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.1568, allocations: 0 / 462.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004538/0.1573, allocations: 181.5 kB / 462.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.1573, allocations: 59.39 kB / 462.7 MB, free: 2.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.1575, allocations: 221 kB / 462.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.1575, allocations: 25.7 kB / 462.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.1576, allocations: 152.1 kB / 463.1 MB, free: 2.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.38e-05/0.1577, allocations: 51.3 kB / 463.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.1577, allocations: 29.7 kB / 463.2 MB, free: 2.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1578, allocations: 334.8 kB / 463.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.158, allocations: 35.98 kB / 463.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.1581, allocations: 64.42 kB / 463.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007614/0.1589, allocations: 222.6 kB / 463.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1589, allocations: 3.938 kB / 463.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00032/0.1592, allocations: 172.3 kB / 464 MB, free: 1.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1592, allocations: 4 kB / 464 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1593, allocations: 0 / 464 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.1593, allocations: 4 kB / 464 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.1595, allocations: 43.97 kB / 464 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1595, allocations: 0 / 464 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.1596, allocations: 15.84 kB / 464.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.1596, allocations: 4 kB / 464.1 MB, free: 1.246 MB / 334.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.0001573/0.1598, allocations: 145.3 kB / 464.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.163e-05/0.1598, allocations: 27.66 kB / 464.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.1599, allocations: 25.84 kB / 464.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1599, allocations: 3.984 kB / 464.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1599, allocations: 0 / 464.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1599, allocations: 0 / 464.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002618/0.1602, allocations: 269.4 kB / 464.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1602, allocations: 0 / 464.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.1604, allocations: 27.98 kB / 464.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1604, allocations: 0 / 464.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.1604, allocations: 4 kB / 464.6 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1604, allocations: 4 kB / 464.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1604, allocations: 0 / 464.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004715/0.1609, allocations: 299.2 kB / 464.8 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.208e-05/0.161, allocations: 104.8 kB / 465 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.938e-05/0.161, allocations: 0 / 465 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.1612, allocations: 11.98 kB / 465 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.008e-05/0.1612, allocations: 12.05 kB / 465 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.1612, allocations: 8 kB / 465 MB, free: 240 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.1614, allocations: 164.5 kB / 465.1 MB, free: 76 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1614, allocations: 0 / 465.1 MB, free: 76 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002661/0.1617, allocations: 43.94 kB / 465.2 MB, free: 32 kB / 334.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.0001133/0.1618, allocations: 95.3 kB / 465.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003219/0.1621, allocations: 112 kB / 465.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1621, allocations: 3.938 kB / 465.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.1623, allocations: 63.91 kB / 465.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.1626, allocations: 44.34 kB / 465.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009902/0.1636, allocations: 0.5469 MB / 466 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.1639, allocations: 0.7363 MB / 466.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.164, allocations: 30.28 kB / 466.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.899e-05/0.1641, allocations: 23.38 kB / 466.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1641, allocations: 0 / 466.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of Templates: time 0.00529/0.1694, allocations: 2.365 MB / 469.2 MB, free: 11.98 MB / 350.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)