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.005906/0.005906, allocations: 98.52 kB / 15.73 MB, free: 6.055 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.001166/0.001166, allocations: 192.6 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.221/0.221, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 61.47 kB / 437.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1108, allocations: 54.96 MB / 492 MB, free: 1.227 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.03228/0.1431, allocations: 21.93 MB / 0.5019 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008746/0.144, allocations: 223.2 kB / 0.5021 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.1441, allocations: 11.94 kB / 0.5022 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.1443, allocations: 35.64 kB / 0.5022 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002383/0.1445, allocations: 99.17 kB / 0.5023 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.1447, allocations: 43.94 kB / 0.5023 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002838/0.145, allocations: 290.6 kB / 0.5026 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000267/0.1452, allocations: 153.3 kB / 0.5028 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.1454, allocations: 111.5 kB / 0.5029 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.1456, allocations: 103.5 kB / 0.503 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.548e-05/0.1456, allocations: 23.88 kB / 0.503 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.038e-05/0.1457, allocations: 12 kB / 0.503 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.823e-05/0.1458, allocations: 43.84 kB / 0.503 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.1459, allocations: 107.4 kB / 0.5031 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000274/0.1461, allocations: 230.9 kB / 0.5034 GB, free: 9.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1462, allocations: 0 / 0.5034 GB, free: 9.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1462, allocations: 0 / 0.5034 GB, free: 9.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1462, allocations: 0 / 0.5034 GB, free: 9.961 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.0008339/0.147, allocations: 0.5103 MB / 0.5039 GB, free: 9.395 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.1471, allocations: 19.97 kB / 0.5039 GB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.746e-05/0.1471, allocations: 28.75 kB / 0.5039 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.1475, allocations: 275.6 kB / 0.5042 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.1475, allocations: 8.703 kB / 0.5042 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.1476, allocations: 20.38 kB / 0.5042 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000385/0.148, allocations: 196.7 kB / 0.5044 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.148, allocations: 192 / 0.5044 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.148, allocations: 7.938 kB / 0.5044 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.148, allocations: 4 kB / 0.5044 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003057/0.1483, allocations: 124.5 kB / 0.5045 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009461/0.1493, allocations: 0.8522 MB / 0.5053 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/0.1495, allocations: 82.55 kB / 0.5054 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.1496, allocations: 56.84 kB / 0.5055 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.1497, allocations: 0 / 0.5055 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.1497, allocations: 30.56 kB / 0.5055 GB, free: 7.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/0.1497, allocations: 4 kB / 0.5055 GB, free: 7.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004981/0.1502, allocations: 182.1 kB / 0.5057 GB, free: 7.375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.1503, allocations: 55.41 kB / 0.5057 GB, free: 7.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.1505, allocations: 229 kB / 0.506 GB, free: 7.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.1505, allocations: 25.7 kB / 0.506 GB, free: 7.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1507, allocations: 148.3 kB / 0.5061 GB, free: 6.891 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.91e-05/0.1507, allocations: 51.52 kB / 0.5062 GB, free: 6.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.1508, allocations: 33.72 kB / 0.5062 GB, free: 6.801 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1509, allocations: 334.8 kB / 0.5065 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.1511, allocations: 43.97 kB / 0.5066 GB, free: 6.422 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.1512, allocations: 62.55 kB / 0.5066 GB, free: 6.352 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008176/0.152, allocations: 225.1 kB / 0.5068 GB, free: 6.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1521, allocations: 0 / 0.5068 GB, free: 6.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000326/0.1524, allocations: 169.4 kB / 0.507 GB, free: 5.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.1524, allocations: 8 kB / 0.507 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1524, allocations: 4 kB / 0.507 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.1524, allocations: 0 / 0.507 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.1526, allocations: 39.86 kB / 0.507 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.1527, allocations: 4 kB / 0.5071 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.1528, allocations: 19.84 kB / 0.5071 GB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.1528, allocations: 4 kB / 0.5071 GB, free: 5.871 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.0001678/0.153, allocations: 137.8 kB / 0.5072 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/0.153, allocations: 23.86 kB / 0.5072 GB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.1531, allocations: 25.83 kB / 0.5073 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.1531, allocations: 4 kB / 0.5073 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1531, allocations: 0 / 0.5073 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.1531, allocations: 0 / 0.5073 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002739/0.1534, allocations: 273.4 kB / 0.5075 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.1534, allocations: 0 / 0.5075 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.1536, allocations: 35.92 kB / 0.5076 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.1536, allocations: 0 / 0.5076 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.1536, allocations: 0 / 0.5076 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1536, allocations: 0 / 0.5076 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1536, allocations: 0 / 0.5076 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004792/0.1541, allocations: 303.3 kB / 0.5078 GB, free: 5.008 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.1542, allocations: 96.98 kB / 0.5079 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.1542, allocations: 11.94 kB / 0.5079 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.1543, allocations: 0 / 0.5079 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.935e-05/0.1544, allocations: 15.98 kB / 0.508 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.1544, allocations: 0 / 0.508 GB, free: 4.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000148/0.1546, allocations: 168.5 kB / 0.5081 GB, free: 4.703 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1546, allocations: 0 / 0.5081 GB, free: 4.703 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.1549, allocations: 47.89 kB / 0.5082 GB, free: 4.656 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.0001035/0.155, allocations: 103.3 kB / 0.5083 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003158/0.1553, allocations: 114.1 kB / 0.5084 GB, free: 4.438 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1553, allocations: 0 / 0.5084 GB, free: 4.438 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.1554, allocations: 55.92 kB / 0.5084 GB, free: 4.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.1558, allocations: 56.45 kB / 0.5085 GB, free: 4.324 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009981/0.1568, allocations: 0.5576 MB / 0.509 GB, free: 3.738 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.1571, allocations: 0.7363 MB / 0.5097 GB, free: 2.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.1572, allocations: 34.27 kB / 0.5098 GB, free: 2.945 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.888e-05/0.1573, allocations: 23.44 kB / 0.5098 GB, free: 2.926 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1573, allocations: 0 / 0.5098 GB, free: 2.926 MB / 382.1 MB Notification: Performance of Templates: time 0.005993/0.1633, allocations: 2.372 MB / 0.5121 GB, free: 0.5781 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)