Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",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.005524/0.005524, allocations: 98.64 kB / 15.73 MB, free: 6.047 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.001269/0.001269, allocations: 194 kB / 16.67 MB, free: 5.969 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.332/1.332, allocations: 222.9 MB / 240.4 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.1933/0.1933, allocations: 22.34 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 64.86 kB / 436.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0836/0.08483, allocations: 54.97 MB / 491.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004214/0.08907, allocations: 4.206 MB / 495.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.09098, allocations: 1.154 MB / 496.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.09119, allocations: 11.94 kB / 496.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002428/0.09146, allocations: 110.9 kB / 497 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004747/0.09194, allocations: 273.9 kB / 497.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006704/0.09262, allocations: 303.5 kB / 497.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.09368, allocations: 1.201 MB / 498.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007926/0.09448, allocations: 0.6684 MB / 499.4 MB, free: 9.758 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000477/0.09497, allocations: 482.6 kB / 499.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006645/0.09564, allocations: 0.6034 MB / 0.4888 GB, free: 8.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.09581, allocations: 124 kB / 0.4889 GB, free: 8.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.09599, allocations: 123.9 kB / 0.489 GB, free: 8.438 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002711/0.09626, allocations: 319.1 kB / 0.4893 GB, free: 8.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005261/0.0968, allocations: 0.5328 MB / 0.4899 GB, free: 7.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.09793, allocations: 1.253 MB / 0.4911 GB, free: 6.332 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.09794, allocations: 0 / 0.4911 GB, free: 6.332 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.09795, allocations: 0 / 0.4911 GB, free: 6.332 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.09797, allocations: 0 / 0.4911 GB, free: 6.332 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002738/0.1007, allocations: 1.282 MB / 0.4923 GB, free: 5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.1008, allocations: 8.031 kB / 0.4923 GB, free: 4.992 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.1009, allocations: 131.1 kB / 0.4925 GB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.1011, allocations: 108.3 kB / 0.4926 GB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007547/0.1019, allocations: 0.5193 MB / 0.4931 GB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.102, allocations: 155.7 kB / 0.4932 GB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.1022, allocations: 84.33 kB / 0.4933 GB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.1043, allocations: 1.014 MB / 0.4943 GB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.1044, allocations: 4 kB / 0.4943 GB, free: 2.914 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.1045, allocations: 28 kB / 0.4943 GB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.1045, allocations: 20 kB / 0.4943 GB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.1065, allocations: 0.9017 MB / 0.4952 GB, free: 1.965 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00708/0.1136, allocations: 3.556 MB / 0.4987 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001899/0.1155, allocations: 0.9046 MB / 0.4996 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.1168, allocations: 0.621 MB / 0.5002 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.147e-05/0.1169, allocations: 16.64 kB / 0.5002 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.1169, allocations: 43.16 kB / 0.5002 GB, free: 12.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.384e-06/0.1169, allocations: 0 / 0.5002 GB, free: 12.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.00775/0.1247, allocations: 3.038 MB / 0.5032 GB, free: 9.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.1247, allocations: 60.41 kB / 0.5033 GB, free: 9.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006269/0.1254, allocations: 0.5105 MB / 0.5038 GB, free: 9.055 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.482e-05/0.1255, allocations: 37.7 kB / 0.5038 GB, free: 9.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.1257, allocations: 332.9 kB / 0.5041 GB, free: 8.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002668/0.126, allocations: 317.2 kB / 0.5044 GB, free: 8.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.1263, allocations: 150.6 kB / 0.5046 GB, free: 8.211 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.1264, allocations: 394.7 kB / 0.5049 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.1277, allocations: 0.5278 MB / 0.5055 GB, free: 7.285 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.129, allocations: 0.6086 MB / 0.506 GB, free: 6.648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01051/0.1395, allocations: 3.034 MB / 0.509 GB, free: 3.582 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1395, allocations: 0 / 0.509 GB, free: 3.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002791/0.1423, allocations: 1.274 MB / 0.5103 GB, free: 2.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.1424, allocations: 4 kB / 0.5103 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1424, allocations: 7.938 kB / 0.5103 GB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.1424, allocations: 4 kB / 0.5103 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007014/0.1494, allocations: 1.03 MB / 0.5113 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.549e-05/0.1495, allocations: 19.92 kB / 0.5113 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008735/0.1504, allocations: 63.92 kB / 0.5114 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.589e-05/0.1505, allocations: 39.92 kB / 0.5114 GB, free: 1.133 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 112 * 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.0004736/0.151, allocations: 258.5 kB / 0.5116 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.1511, allocations: 71.53 kB / 0.5117 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.1539, allocations: 1.201 MB / 0.5129 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.1539, allocations: 8 kB / 0.5129 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1539, allocations: 0 / 0.5129 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.1539, allocations: 3.984 kB / 0.5129 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004877/0.1588, allocations: 2.384 MB / 0.5152 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.1588, allocations: 3.938 kB / 0.5152 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007073/0.1659, allocations: 1.007 MB / 0.5162 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.305e-05/0.166, allocations: 4 kB / 0.5162 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.917e-05/0.1661, allocations: 27.98 kB / 0.5162 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.523e-06/0.1661, allocations: 4 kB / 0.5162 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1661, allocations: 4 kB / 0.5162 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003762/0.1699, allocations: 1.815 MB / 0.518 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.17, allocations: 156.5 kB / 0.5182 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.1702, allocations: 24 kB / 0.5182 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007524/0.171, allocations: 63.91 kB / 0.5183 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/0.1712, allocations: 104.5 kB / 0.5184 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.438e-05/0.1713, allocations: 23.98 kB / 0.5184 GB, free: 9.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004089/0.1717, allocations: 362.9 kB / 0.5187 GB, free: 9.492 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1717, allocations: 4 kB / 0.5187 GB, free: 9.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006525/0.1723, allocations: 232 kB / 0.5189 GB, free: 9.262 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 17 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 85 * 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.004089/0.1764, allocations: 2.394 MB / 0.5213 GB, free: 6.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.179, allocations: 1.154 MB / 0.5224 GB, free: 5.676 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.179, allocations: 3.984 kB / 0.5224 GB, free: 5.672 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.1802, allocations: 0.5822 MB / 0.523 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008241/0.1811, allocations: 170.1 kB / 0.5231 GB, free: 4.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/0.1963, allocations: 8.826 MB / 0.5318 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005195/0.1969, allocations: 0.9582 MB / 0.5327 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006671/0.1976, allocations: 173.8 kB / 0.5329 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005683/0.1981, allocations: 303.3 kB / 0.5332 GB, free: 10.46 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1981, allocations: 0 / 0.5332 GB, free: 10.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03939/0.2375, allocations: 19.1 MB / 0.5518 GB, free: 7.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.771/10.01, allocations: 18.67 kB / 0.5518 GB, free: 7.555 MB / 430.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)