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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001957/0.001957, allocations: 109.4 kB / 17.15 MB, free: 6.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002514/0.002514, allocations: 207.2 kB / 20.11 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.592/1.592, allocations: 230.6 MB / 253.5 MB, free: 15.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1152/0.1152, allocations: 24.03 MB / 333.6 MB, free: 1.531 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 69.39 kB / 468.4 MB, free: 31.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1149, allocations: 59.54 MB / 0.5156 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005974/0.1209, allocations: 4.223 MB / 0.5197 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.1237, allocations: 1.208 MB / 0.5209 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002638/0.1239, allocations: 11.94 kB / 0.5209 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003221/0.1243, allocations: 110.9 kB / 0.521 GB, free: 6.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005243/0.1248, allocations: 273.9 kB / 0.5213 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008126/0.1256, allocations: 299.4 kB / 0.5215 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001416/0.127, allocations: 1.19 MB / 0.5227 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008802/0.1279, allocations: 0.5824 MB / 0.5233 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006751/0.1286, allocations: 0.4985 MB / 0.5238 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008268/0.1294, allocations: 0.6035 MB / 0.5244 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.1296, allocations: 124 kB / 0.5245 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.1298, allocations: 123.9 kB / 0.5246 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003041/0.1301, allocations: 327.1 kB / 0.5249 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005862/0.1307, allocations: 0.525 MB / 0.5254 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001461/0.1321, allocations: 1.253 MB / 0.5266 GB, free: 0.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1322, allocations: 3.938 kB / 0.5266 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1322, allocations: 0 / 0.5266 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.1322, allocations: 0 / 0.5266 GB, free: 0.8711 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.00321/0.1354, allocations: 1.282 MB / 0.5279 GB, free: 15.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.853e-05/0.1355, allocations: 8.625 kB / 0.5279 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001928/0.1357, allocations: 131.1 kB / 0.528 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.1359, allocations: 104.3 kB / 0.5281 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.137, allocations: 0.5271 MB / 0.5286 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.1372, allocations: 155.7 kB / 0.5288 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.1373, allocations: 92.31 kB / 0.5289 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/0.1398, allocations: 1.007 MB / 0.5299 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.1398, allocations: 0 / 0.5299 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.1399, allocations: 36 kB / 0.5299 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.1399, allocations: 16 kB / 0.5299 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002214/0.1421, allocations: 0.9017 MB / 0.5308 GB, free: 12.5 MB / 398.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(tube.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007617/0.1498, allocations: 3.554 MB / 0.5343 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.1519, allocations: 0.8773 MB / 0.5351 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.1533, allocations: 0.5976 MB / 0.5357 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.185e-05/0.1533, allocations: 8.656 kB / 0.5357 GB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.1534, allocations: 47.14 kB / 0.5358 GB, free: 7.316 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.244e-06/0.1534, allocations: 4 kB / 0.5358 GB, free: 7.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.008834/0.1622, allocations: 3.164 MB / 0.5388 GB, free: 4.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.1623, allocations: 64.41 kB / 0.5389 GB, free: 4.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007046/0.163, allocations: 0.5067 MB / 0.5394 GB, free: 3.516 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.631e-05/0.1631, allocations: 37.7 kB / 0.5394 GB, free: 3.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003177/0.1634, allocations: 329 kB / 0.5398 GB, free: 3.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003611/0.1637, allocations: 333.2 kB / 0.5401 GB, free: 2.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/0.1641, allocations: 150.6 kB / 0.5402 GB, free: 2.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002228/0.1643, allocations: 390.6 kB / 0.5406 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.1656, allocations: 0.5396 MB / 0.5411 GB, free: 1.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.167, allocations: 0.6134 MB / 0.5417 GB, free: 1.078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/0.1784, allocations: 3.142 MB / 0.5448 GB, free: 13.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1784, allocations: 0 / 0.5448 GB, free: 13.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003154/0.1816, allocations: 1.29 MB / 0.546 GB, free: 12.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.1816, allocations: 11.98 kB / 0.5461 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.1816, allocations: 4 kB / 0.5461 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.1816, allocations: 4 kB / 0.5461 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007008/0.1886, allocations: 1.034 MB / 0.5471 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.227e-05/0.1887, allocations: 8 kB / 0.5471 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009199/0.1896, allocations: 75.91 kB / 0.5471 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-05/0.1897, allocations: 31.98 kB / 0.5472 GB, free: 11.42 MB / 414.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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tubeNoTank.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (114): * Single equations (assignments): 114 * 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.0005755/0.1902, allocations: 251.5 kB / 0.5474 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.1904, allocations: 75.53 kB / 0.5475 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003089/0.1935, allocations: 1.209 MB / 0.5487 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.1935, allocations: 8 kB / 0.5487 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1935, allocations: 0 / 0.5487 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.1935, allocations: 7.984 kB / 0.5487 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005424/0.1989, allocations: 2.475 MB / 0.5511 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.1989, allocations: 0 / 0.5511 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007196/0.2061, allocations: 1.007 MB / 0.5521 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.619e-05/0.2062, allocations: 7.938 kB / 0.5521 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001342/0.2063, allocations: 31.98 kB / 0.5521 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.634e-06/0.2063, allocations: 4 kB / 0.5521 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.2063, allocations: 11.92 kB / 0.5521 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004218/0.2105, allocations: 1.834 MB / 0.5539 GB, free: 4.371 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.2108, allocations: 160.5 kB / 0.5541 GB, free: 4.195 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.2109, allocations: 20 kB / 0.5541 GB, free: 4.176 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007979/0.2117, allocations: 71.84 kB / 0.5542 GB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.212, allocations: 104.5 kB / 0.5543 GB, free: 4.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.119e-05/0.2121, allocations: 31.97 kB / 0.5543 GB, free: 3.973 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004807/0.2126, allocations: 370.8 kB / 0.5547 GB, free: 3.613 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2126, allocations: 0 / 0.5547 GB, free: 3.613 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007803/0.2133, allocations: 232 kB / 0.5549 GB, free: 3.387 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (87): * Single equations (assignments): 87 * 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.004546/0.2179, allocations: 2.413 MB / 0.5572 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.2209, allocations: 1.103 MB / 0.5583 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.2209, allocations: 0 / 0.5583 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.2223, allocations: 0.5705 MB / 0.5589 GB, free: 15.25 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009432/0.2232, allocations: 170.1 kB / 0.559 GB, free: 15.08 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01765/0.2408, allocations: 8.901 MB / 0.5677 GB, free: 5.984 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006728/0.2415, allocations: 0.966 MB / 0.5687 GB, free: 4.992 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006717/0.2422, allocations: 170 kB / 0.5688 GB, free: 4.824 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006783/0.2429, allocations: 307.3 kB / 0.5691 GB, free: 4.523 MB / 430.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2429, allocations: 0 / 0.5691 GB, free: 4.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05237/0.2952, allocations: 19.35 MB / 0.588 GB, free: 1.395 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.81, allocations: 19.77 kB / 0.588 GB, free: 1.375 MB / 446.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.342598295072094] Failed to read output from testmodel.py, exit status != 0: 11.138229029951617 11.162341851 11.026272668 Calling exit ...