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.001372/0.001372, allocations: 114.5 kB / 16.37 MB, free: 6.012 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.001523/0.001523, allocations: 193.4 kB / 17.31 MB, free: 5.613 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08962/0.08962, allocations: 22.32 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 70 kB / 382.3 MB, free: 41.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.0994, allocations: 54.96 MB / 437.2 MB, free: 12.27 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.03265/0.1321, allocations: 21.63 MB / 458.8 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007124/0.1328, allocations: 227.2 kB / 459.1 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1329, allocations: 11.94 kB / 459.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.7e-05/0.133, allocations: 23.72 kB / 459.1 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.1333, allocations: 103.2 kB / 459.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.1334, allocations: 47.94 kB / 459.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002521/0.1337, allocations: 290.5 kB / 459.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.1339, allocations: 157.3 kB / 459.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.1341, allocations: 107.6 kB / 459.8 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1342, allocations: 99.44 kB / 459.9 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.79e-05/0.1343, allocations: 16 kB / 459.9 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.363e-05/0.1343, allocations: 16 kB / 459.9 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.124e-05/0.1343, allocations: 31.86 kB / 459.9 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.1345, allocations: 115.4 kB / 460.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00026/0.1348, allocations: 235 kB / 460.3 MB, free: 5.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1348, allocations: 0 / 460.3 MB, free: 5.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1348, allocations: 0 / 460.3 MB, free: 5.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.1348, allocations: 0 / 460.3 MB, free: 5.336 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.000769/0.1356, allocations: 0.5143 MB / 460.8 MB, free: 4.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.1356, allocations: 8.031 kB / 460.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.093e-05/0.1357, allocations: 28.66 kB / 460.8 MB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.1361, allocations: 275.4 kB / 461.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.1361, allocations: 12.7 kB / 461.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.1362, allocations: 12.38 kB / 461.1 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003282/0.1365, allocations: 200.6 kB / 461.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.1365, allocations: 192 / 461.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.1366, allocations: 11.94 kB / 461.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1366, allocations: 4 kB / 461.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.1369, allocations: 115.9 kB / 461.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009451/0.1378, allocations: 0.8444 MB / 462.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/0.138, allocations: 82.55 kB / 462.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.1382, allocations: 60.83 kB / 462.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.1382, allocations: 4 kB / 462.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.1383, allocations: 34.5 kB / 462.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.505e-06/0.1383, allocations: 3.984 kB / 462.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004454/0.1387, allocations: 184.1 kB / 462.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.1388, allocations: 63.33 kB / 462.7 MB, free: 2.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.139, allocations: 221 kB / 462.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.139, allocations: 33.7 kB / 463 MB, free: 2.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1391, allocations: 140.1 kB / 463.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.1391, allocations: 59.27 kB / 463.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.1392, allocations: 29.66 kB / 463.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1394, allocations: 334.8 kB / 463.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.1395, allocations: 39.98 kB / 463.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.1396, allocations: 66.55 kB / 463.6 MB, free: 1.734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007375/0.1403, allocations: 218.6 kB / 463.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1404, allocations: 0 / 463.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000329/0.1407, allocations: 172.5 kB / 464 MB, free: 1.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1407, allocations: 4 kB / 464 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1407, allocations: 0 / 464 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1407, allocations: 4 kB / 464 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002067/0.141, allocations: 43.91 kB / 464.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.141, allocations: 0 / 464.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.1411, allocations: 11.84 kB / 464.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.1411, allocations: 8 kB / 464.1 MB, free: 1.27 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.0001524/0.1413, allocations: 142.3 kB / 464.2 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.305e-05/0.1413, allocations: 23.72 kB / 464.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.53e-05/0.1414, allocations: 29.83 kB / 464.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1414, allocations: 0 / 464.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1414, allocations: 0 / 464.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1414, allocations: 0 / 464.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.1416, allocations: 265.4 kB / 464.5 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1417, allocations: 4 kB / 464.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.1419, allocations: 27.98 kB / 464.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1419, allocations: 0 / 464.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.1419, allocations: 8 kB / 464.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1419, allocations: 0 / 464.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1419, allocations: 0 / 464.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004677/0.1424, allocations: 306.8 kB / 464.9 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/0.1425, allocations: 100.7 kB / 465 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.013e-05/0.1425, allocations: 4 kB / 465 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.1426, allocations: 11.98 kB / 465 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.348e-05/0.1427, allocations: 11.98 kB / 465 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.1427, allocations: 4 kB / 465 MB, free: 268 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.1428, allocations: 164.5 kB / 465.2 MB, free: 104 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1428, allocations: 0 / 465.2 MB, free: 104 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002627/0.1431, allocations: 43.94 kB / 465.2 MB, free: 60 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.0001117/0.1432, allocations: 99.31 kB / 465.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003096/0.1436, allocations: 111.9 kB / 465.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1436, allocations: 4 kB / 465.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.1437, allocations: 55.91 kB / 465.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.1441, allocations: 57.25 kB / 465.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009531/0.145, allocations: 0.5469 MB / 466.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.1453, allocations: 0.7401 MB / 466.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.1454, allocations: 30.28 kB / 466.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.66e-05/0.1455, allocations: 23.44 kB / 466.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1455, allocations: 4 kB / 466.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Templates: time 0.00516/0.1507, allocations: 2.347 MB / 469.2 MB, free: 12.01 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 cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)