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.004644/0.004644, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001167/0.001167, allocations: 194.2 kB / 16.68 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1952/0.1952, allocations: 22.38 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 62.78 kB / 436.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08938/0.0906, allocations: 54.96 MB / 491.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004376/0.09501, allocations: 4.2 MB / 495.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.09723, allocations: 1.161 MB / 496.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000284/0.09753, allocations: 8 kB / 496.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.09785, allocations: 106.9 kB / 497 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000498/0.09836, allocations: 269.9 kB / 497.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007185/0.09909, allocations: 311.4 kB / 497.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.1002, allocations: 1.19 MB / 498.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007995/0.101, allocations: 0.6762 MB / 499.5 MB, free: 9.719 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000504/0.1015, allocations: 482.5 kB / 499.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006794/0.1022, allocations: 0.5995 MB / 0.4888 GB, free: 8.645 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001542/0.1024, allocations: 120 kB / 0.4889 GB, free: 8.527 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.1025, allocations: 120 kB / 0.489 GB, free: 8.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002654/0.1028, allocations: 331.1 kB / 0.4894 GB, free: 8.086 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004844/0.1033, allocations: 0.525 MB / 0.4899 GB, free: 7.559 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.1045, allocations: 1.257 MB / 0.4911 GB, free: 6.297 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1045, allocations: 0 / 0.4911 GB, free: 6.297 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1045, allocations: 0 / 0.4911 GB, free: 6.297 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.1045, allocations: 0 / 0.4911 GB, free: 6.297 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.002581/0.1071, allocations: 1.283 MB / 0.4923 GB, free: 4.965 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1071, allocations: 12.03 kB / 0.4924 GB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.1073, allocations: 131.1 kB / 0.4925 GB, free: 4.816 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.1075, allocations: 108.3 kB / 0.4926 GB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007224/0.1082, allocations: 0.5154 MB / 0.4931 GB, free: 4.156 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.1084, allocations: 155.7 kB / 0.4932 GB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.1085, allocations: 84.33 kB / 0.4933 GB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.1105, allocations: 1.014 MB / 0.4943 GB, free: 2.883 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.1105, allocations: 0 / 0.4943 GB, free: 2.883 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.274e-05/0.1106, allocations: 32 kB / 0.4943 GB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.1107, allocations: 20 kB / 0.4944 GB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/0.1126, allocations: 0.9017 MB / 0.4952 GB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006445/0.119, allocations: 3.564 MB / 0.4987 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/0.1209, allocations: 0.9047 MB / 0.4996 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.122, allocations: 0.621 MB / 0.5002 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.714e-05/0.1221, allocations: 12.64 kB / 0.5002 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.1222, allocations: 47.16 kB / 0.5003 GB, free: 12.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.023e-06/0.1222, allocations: 0 / 0.5003 GB, free: 12.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.006939/0.1291, allocations: 3.03 MB / 0.5032 GB, free: 9.609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.1292, allocations: 68.34 kB / 0.5033 GB, free: 9.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000539/0.1297, allocations: 0.5066 MB / 0.5038 GB, free: 9.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.631e-05/0.1298, allocations: 37.7 kB / 0.5038 GB, free: 8.973 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.13, allocations: 332.9 kB / 0.5041 GB, free: 8.641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.1302, allocations: 321.2 kB / 0.5044 GB, free: 8.324 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/0.1305, allocations: 154.6 kB / 0.5046 GB, free: 8.164 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1307, allocations: 382.7 kB / 0.505 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.1318, allocations: 0.5356 MB / 0.5055 GB, free: 7.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.133, allocations: 0.6047 MB / 0.5061 GB, free: 6.609 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009609/0.1426, allocations: 3.042 MB / 0.509 GB, free: 3.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1426, allocations: 0 / 0.509 GB, free: 3.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002591/0.1452, allocations: 1.27 MB / 0.5103 GB, free: 2.254 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1453, allocations: 4 kB / 0.5103 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.1453, allocations: 4.281 kB / 0.5103 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.1453, allocations: 8 kB / 0.5103 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006382/0.1517, allocations: 1.034 MB / 0.5113 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.229e-05/0.1517, allocations: 4 kB / 0.5113 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007662/0.1525, allocations: 71.92 kB / 0.5114 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-05/0.1526, allocations: 39.92 kB / 0.5114 GB, free: 1.09 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.0004586/0.1531, allocations: 247.5 kB / 0.5117 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.1532, allocations: 87.47 kB / 0.5117 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002629/0.1558, allocations: 1.201 MB / 0.5129 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.1559, allocations: 11.98 kB / 0.5129 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1559, allocations: 0 / 0.5129 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.1559, allocations: 3.984 kB / 0.5129 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004297/0.1602, allocations: 2.369 MB / 0.5152 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.1602, allocations: 12.09 kB / 0.5152 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006925/0.1672, allocations: 1.006 MB / 0.5162 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.4e-05/0.1672, allocations: 4 kB / 0.5162 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.1673, allocations: 27.97 kB / 0.5163 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.1673, allocations: 4 kB / 0.5163 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.1673, allocations: 4 kB / 0.5163 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003784/0.1711, allocations: 1.815 MB / 0.518 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.1713, allocations: 156.5 kB / 0.5182 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.1715, allocations: 20 kB / 0.5182 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006903/0.1721, allocations: 67.91 kB / 0.5183 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/0.1724, allocations: 100.5 kB / 0.5184 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.651e-05/0.1725, allocations: 27.98 kB / 0.5184 GB, free: 9.797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004019/0.1729, allocations: 366.9 kB / 0.5187 GB, free: 9.441 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1729, allocations: 0 / 0.5187 GB, free: 9.441 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006342/0.1735, allocations: 236 kB / 0.519 GB, free: 9.211 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.003886/0.1774, allocations: 2.386 MB / 0.5213 GB, free: 6.789 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002453/0.1799, allocations: 1.154 MB / 0.5224 GB, free: 5.633 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/0.1799, allocations: 4.062 kB / 0.5224 GB, free: 5.629 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.1811, allocations: 0.5775 MB / 0.523 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007874/0.1819, allocations: 170.4 kB / 0.5232 GB, free: 4.879 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.1969, allocations: 8.823 MB / 0.5318 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.1975, allocations: 0.9621 MB / 0.5327 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007147/0.1982, allocations: 173.8 kB / 0.5329 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000764/0.199, allocations: 303.3 kB / 0.5332 GB, free: 10.42 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.199, allocations: 3.938 kB / 0.5332 GB, free: 10.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04194/0.2409, allocations: 19.11 MB / 0.5518 GB, free: 7.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.883/10.12, allocations: 21.69 kB / 0.5519 GB, free: 7.508 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)