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.001445/0.001445, allocations: 109.5 kB / 17.14 MB, free: 5.93 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.001631/0.001631, allocations: 204 kB / 20.11 MB, free: 2.977 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.496/1.496, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1055/0.1055, allocations: 24.04 MB / 333.6 MB, free: 1.57 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: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") [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.002154/0.002154, allocations: 59.56 kB / 468.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09913, allocations: 59.55 MB / 0.516 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005412/0.1045, allocations: 4.223 MB / 0.5202 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.1069, allocations: 1.208 MB / 0.5214 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.1071, allocations: 11.94 kB / 0.5214 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002981/0.1074, allocations: 110.9 kB / 0.5215 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005371/0.1079, allocations: 273.9 kB / 0.5217 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007514/0.1087, allocations: 303.4 kB / 0.522 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.1099, allocations: 1.19 MB / 0.5232 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000813/0.1107, allocations: 0.5786 MB / 0.5237 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005567/0.1113, allocations: 0.4946 MB / 0.5242 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000718/0.112, allocations: 0.6074 MB / 0.5248 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.1121, allocations: 120 kB / 0.5249 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.1123, allocations: 123.9 kB / 0.5251 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002987/0.1126, allocations: 323.1 kB / 0.5254 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005143/0.1131, allocations: 0.5289 MB / 0.5259 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001269/0.1144, allocations: 1.257 MB / 0.5271 GB, free: 416 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1144, allocations: 8 kB / 0.5271 GB, free: 408 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1144, allocations: 0 / 0.5271 GB, free: 408 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.1144, allocations: 0 / 0.5271 GB, free: 408 kB / 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.002811/0.1172, allocations: 1.278 MB / 0.5284 GB, free: 15.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.1173, allocations: 8.625 kB / 0.5284 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.1175, allocations: 104.3 kB / 0.5285 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008111/0.1183, allocations: 0.5193 MB / 0.529 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.1185, allocations: 159.6 kB / 0.5291 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/0.1187, allocations: 88.33 kB / 0.5292 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002338/0.121, allocations: 1.007 MB / 0.5302 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/0.121, allocations: 0 / 0.5302 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.1211, allocations: 35.94 kB / 0.5302 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.1211, allocations: 24 kB / 0.5303 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002116/0.1232, allocations: 0.8978 MB / 0.5311 GB, free: 12.17 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.006882/0.1301, allocations: 3.565 MB / 0.5346 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.1321, allocations: 0.8735 MB / 0.5355 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/0.1334, allocations: 0.6 MB / 0.5361 GB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-05/0.1335, allocations: 14.06 kB / 0.5361 GB, free: 7.031 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.1335, allocations: 43.16 kB / 0.5361 GB, free: 6.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.645e-06/0.1335, allocations: 0 / 0.5361 GB, free: 6.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.008341/0.1419, allocations: 3.171 MB / 0.5392 GB, free: 3.766 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.1419, allocations: 60.41 kB / 0.5393 GB, free: 3.695 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006352/0.1426, allocations: 0.5067 MB / 0.5398 GB, free: 3.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.911e-05/0.1426, allocations: 37.7 kB / 0.5398 GB, free: 3.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.1429, allocations: 329 kB / 0.5401 GB, free: 2.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003021/0.1432, allocations: 329.2 kB / 0.5404 GB, free: 2.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003136/0.1435, allocations: 154.6 kB / 0.5406 GB, free: 2.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.1437, allocations: 382.8 kB / 0.5409 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.145, allocations: 0.5395 MB / 0.5415 GB, free: 1.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.1463, allocations: 0.6212 MB / 0.5421 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/0.1573, allocations: 3.142 MB / 0.5451 GB, free: 13.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1573, allocations: 4 kB / 0.5451 GB, free: 13.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003075/0.1604, allocations: 1.293 MB / 0.5464 GB, free: 12.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.1604, allocations: 8 kB / 0.5464 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1604, allocations: 4 kB / 0.5464 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.1604, allocations: 4 kB / 0.5464 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007155/0.1676, allocations: 1.03 MB / 0.5474 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.876e-05/0.1676, allocations: 8 kB / 0.5474 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008159/0.1684, allocations: 71.91 kB / 0.5475 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.487e-05/0.1685, allocations: 39.98 kB / 0.5475 GB, free: 11.08 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.0004796/0.169, allocations: 248.5 kB / 0.5478 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.1692, allocations: 71.53 kB / 0.5478 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/0.1722, allocations: 1.209 MB / 0.549 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.1722, allocations: 11.98 kB / 0.549 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1722, allocations: 4 kB / 0.549 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.1722, allocations: 7.984 kB / 0.549 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005025/0.1772, allocations: 2.467 MB / 0.5515 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1772, allocations: 3.938 kB / 0.5515 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007192/0.1844, allocations: 1.007 MB / 0.5524 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.31e-05/0.1844, allocations: 7.938 kB / 0.5524 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.171e-05/0.1845, allocations: 35.97 kB / 0.5525 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.745e-06/0.1845, allocations: 4 kB / 0.5525 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.1845, allocations: 7.938 kB / 0.5525 GB, free: 5.898 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003963/0.1885, allocations: 1.84 MB / 0.5543 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000179/0.1887, allocations: 152.6 kB / 0.5544 GB, free: 3.863 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.1888, allocations: 27.92 kB / 0.5545 GB, free: 3.836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007324/0.1895, allocations: 71.92 kB / 0.5545 GB, free: 3.766 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002652/0.1898, allocations: 108.4 kB / 0.5546 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.19e-05/0.1899, allocations: 27.98 kB / 0.5547 GB, free: 3.633 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004506/0.1903, allocations: 366.8 kB / 0.555 GB, free: 3.277 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1903, allocations: 4 kB / 0.555 GB, free: 3.273 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006777/0.191, allocations: 236 kB / 0.5552 GB, free: 3.043 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.0001824/0.1912, allocations: 127.1 kB / 0.5554 GB, free: 2.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002658/0.1938, allocations: 1.099 MB / 0.5564 GB, free: 1.812 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.1938, allocations: 3.938 kB / 0.5564 GB, free: 1.809 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.1952, allocations: 0.5704 MB / 0.557 GB, free: 1.234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007737/0.196, allocations: 166.1 kB / 0.5572 GB, free: 1.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00606/0.202, allocations: 2.801 MB / 0.5599 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/0.2027, allocations: 0.966 MB / 0.5608 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005873/0.2033, allocations: 173.9 kB / 0.561 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003781/0.2036, allocations: 75.41 kB / 0.5611 GB, free: 12.97 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2036, allocations: 0 / 0.5611 GB, free: 12.97 MB / 430.1 MB Notification: Performance of Templates: time 0.02199/0.2256, allocations: 12.75 MB / 0.5735 GB, free: 336 kB / 430.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.213206984102726] Failed to read output from testmodel.py, exit status != 0: 0.23414518311619759 0.2471315 0.129897752 Calling exit ...