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.001356/0.001356, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001538/0.001538, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.498/1.498, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1017/0.1017, allocations: 22.93 MB / 332.5 MB, free: 2.645 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="cs",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="cs",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.002113/0.002113, allocations: 59.88 kB / 466.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09393, allocations: 59.28 MB / 0.5137 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.006776/0.1007, allocations: 4.22 MB / 0.5178 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003506/0.1042, allocations: 1.216 MB / 0.519 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001113/0.1053, allocations: 7.938 kB / 0.519 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005871/0.1059, allocations: 106.9 kB / 0.5191 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008914/0.1068, allocations: 273.9 kB / 0.5194 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.1079, allocations: 295.5 kB / 0.5196 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001841/0.1097, allocations: 1.194 MB / 0.5208 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001044/0.1108, allocations: 0.5825 MB / 0.5214 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008695/0.1116, allocations: 0.4908 MB / 0.5219 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.1127, allocations: 0.6151 MB / 0.5225 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002704/0.113, allocations: 116 kB / 0.5226 GB, free: 4.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002722/0.1132, allocations: 124 kB / 0.5227 GB, free: 4.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003288/0.1136, allocations: 327 kB / 0.523 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007168/0.1143, allocations: 0.5289 MB / 0.5235 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001456/0.1157, allocations: 1.261 MB / 0.5247 GB, free: 2.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1157, allocations: 0 / 0.5247 GB, free: 2.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1157, allocations: 0 / 0.5247 GB, free: 2.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.359e-05/0.1158, allocations: 0 / 0.5247 GB, free: 2.602 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.003307/0.1191, allocations: 1.274 MB / 0.526 GB, free: 1.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1191, allocations: 16.62 kB / 0.526 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.992e-05/0.1192, allocations: 22.19 kB / 0.526 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001829/0.1193, allocations: 131.1 kB / 0.5262 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.1196, allocations: 104.3 kB / 0.5263 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008418/0.1204, allocations: 0.5193 MB / 0.5268 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/0.1206, allocations: 159.7 kB / 0.5269 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.1207, allocations: 88.08 kB / 0.527 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/0.1232, allocations: 1.011 MB / 0.528 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.1233, allocations: 0 / 0.528 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.891e-05/0.1234, allocations: 32 kB / 0.528 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.83e-05/0.1234, allocations: 24 kB / 0.528 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.1256, allocations: 0.8978 MB / 0.5289 GB, free: 14.22 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.007689/0.1333, allocations: 3.561 MB / 0.5324 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/0.1355, allocations: 0.8696 MB / 0.5332 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.1369, allocations: 0.5976 MB / 0.5338 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.091e-05/0.1369, allocations: 20.58 kB / 0.5338 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/0.137, allocations: 43.22 kB / 0.5339 GB, free: 9.023 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.514e-06/0.137, allocations: 0 / 0.5339 GB, free: 9.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.00905/0.146, allocations: 3.164 MB / 0.537 GB, free: 5.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.1461, allocations: 60.41 kB / 0.537 GB, free: 5.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006921/0.1468, allocations: 0.5067 MB / 0.5375 GB, free: 5.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.032e-05/0.1469, allocations: 41.7 kB / 0.5376 GB, free: 5.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.1471, allocations: 336.9 kB / 0.5379 GB, free: 4.852 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003065/0.1474, allocations: 317.2 kB / 0.5382 GB, free: 4.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003466/0.1478, allocations: 158.6 kB / 0.5383 GB, free: 4.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.148, allocations: 386.6 kB / 0.5387 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.1493, allocations: 0.5356 MB / 0.5392 GB, free: 3.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.1507, allocations: 0.6173 MB / 0.5398 GB, free: 2.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01159/0.1623, allocations: 3.145 MB / 0.5429 GB, free: 15.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1623, allocations: 0 / 0.5429 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003158/0.1654, allocations: 1.294 MB / 0.5442 GB, free: 14.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.1654, allocations: 4 kB / 0.5442 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1655, allocations: 4 kB / 0.5442 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-05/0.1655, allocations: 4 kB / 0.5442 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007382/0.1729, allocations: 1.038 MB / 0.5452 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.05e-05/0.1729, allocations: 7.938 kB / 0.5452 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.174, allocations: 75.91 kB / 0.5453 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/0.1742, allocations: 40 kB / 0.5453 GB, free: 13.12 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.0007655/0.175, allocations: 255.2 kB / 0.5456 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002389/0.1753, allocations: 75.52 kB / 0.5456 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003183/0.1784, allocations: 1.205 MB / 0.5468 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.1784, allocations: 8 kB / 0.5468 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1785, allocations: 8 kB / 0.5468 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.1785, allocations: 3.984 kB / 0.5468 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00554/0.184, allocations: 2.471 MB / 0.5492 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.184, allocations: 4 kB / 0.5492 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007438/0.1914, allocations: 1.011 MB / 0.5502 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-05/0.1915, allocations: 4 kB / 0.5502 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/0.1916, allocations: 27.98 kB / 0.5503 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.029e-05/0.1916, allocations: 7.938 kB / 0.5503 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1916, allocations: 4 kB / 0.5503 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00435/0.196, allocations: 1.842 MB / 0.5521 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002593/0.1963, allocations: 160.5 kB / 0.5522 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002075/0.1965, allocations: 20 kB / 0.5522 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008328/0.1973, allocations: 75.91 kB / 0.5523 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002541/0.1975, allocations: 96.52 kB / 0.5524 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.371e-05/0.1976, allocations: 31.98 kB / 0.5524 GB, free: 5.688 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005058/0.1981, allocations: 362.9 kB / 0.5528 GB, free: 5.336 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1981, allocations: 0 / 0.5528 GB, free: 5.336 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008094/0.1989, allocations: 236 kB / 0.553 GB, free: 5.105 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.004701/0.2036, allocations: 2.413 MB / 0.5554 GB, free: 2.645 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002924/0.2066, allocations: 1.096 MB / 0.5564 GB, free: 1.547 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.2066, allocations: 0 / 0.5564 GB, free: 1.547 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.208, allocations: 0.5775 MB / 0.557 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000949/0.2089, allocations: 170.5 kB / 0.5572 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01762/0.2266, allocations: 8.908 MB / 0.5659 GB, free: 7.691 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007125/0.2273, allocations: 0.966 MB / 0.5668 GB, free: 6.699 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006635/0.2279, allocations: 166 kB / 0.567 GB, free: 6.535 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000658/0.2286, allocations: 311.3 kB / 0.5673 GB, free: 6.23 MB / 430.1 MB Notification: Performance of SimCode: time 8.91e-07/0.2286, allocations: 0 / 0.5673 GB, free: 6.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04538/0.274, allocations: 19.39 MB / 0.5862 GB, free: 3.086 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.42, allocations: 24.81 kB / 0.5862 GB, free: 3.066 MB / 446.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 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.730852990003768] Failed to read output from testmodel.py, exit status != 0: 11.555089248053264 11.767961045 11.649691556 Calling exit ...