Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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.001419/0.001419, 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.001669/0.001669, 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.483/1.483, 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.1042/0.1042, allocations: 24.03 MB / 333.6 MB, free: 1.566 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") [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.002087/0.002087, allocations: 64.52 kB / 469.6 MB, free: 30.82 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09585, allocations: 59.55 MB / 0.5167 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004667/0.1005, allocations: 3.219 MB / 0.5199 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.1028, allocations: 0.9469 MB / 0.5208 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003032/0.1031, allocations: 4 kB / 0.5208 GB, free: 6.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002197/0.1033, allocations: 71.3 kB / 0.5209 GB, free: 6.836 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000391/0.1037, allocations: 178.7 kB / 0.521 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005695/0.1043, allocations: 195.6 kB / 0.5212 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008342/0.1051, allocations: 0.7445 MB / 0.522 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005577/0.1057, allocations: 385.7 kB / 0.5223 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004905/0.1062, allocations: 323.1 kB / 0.5226 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005265/0.1067, allocations: 390.7 kB / 0.523 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.1068, allocations: 76 kB / 0.5231 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.1069, allocations: 76 kB / 0.5232 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002072/0.1071, allocations: 211.4 kB / 0.5234 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003353/0.1075, allocations: 342.5 kB / 0.5237 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000899/0.1084, allocations: 0.7979 MB / 0.5245 GB, free: 3.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1084, allocations: 4 kB / 0.5245 GB, free: 3.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1084, allocations: 0 / 0.5245 GB, free: 3.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1084, allocations: 3.938 kB / 0.5245 GB, free: 3.141 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002114/0.1105, allocations: 0.9193 MB / 0.5254 GB, free: 2.172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1105, allocations: 8.625 kB / 0.5254 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.1107, allocations: 68.56 kB / 0.5254 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006099/0.1113, allocations: 388.4 kB / 0.5258 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.1114, allocations: 105 kB / 0.5259 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.1116, allocations: 52.38 kB / 0.526 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.1133, allocations: 0.6897 MB / 0.5266 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.1134, allocations: 3.938 kB / 0.5266 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.042e-05/0.1134, allocations: 20 kB / 0.5267 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.1135, allocations: 16 kB / 0.5267 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.1152, allocations: 0.6011 MB / 0.5273 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005832/0.121, allocations: 2.567 MB / 0.5298 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.1223, allocations: 0.5492 MB / 0.5303 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009932/0.1233, allocations: 400.9 kB / 0.5307 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/0.1234, allocations: 9.125 kB / 0.5307 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.1234, allocations: 43 kB / 0.5307 GB, free: 12.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.244e-06/0.1234, allocations: 0 / 0.5307 GB, free: 12.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.007046/0.1305, allocations: 2.294 MB / 0.533 GB, free: 10.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.1305, allocations: 59.84 kB / 0.533 GB, free: 10.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004612/0.131, allocations: 357.7 kB / 0.5334 GB, free: 9.766 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.322e-05/0.1311, allocations: 37.7 kB / 0.5334 GB, free: 9.723 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001996/0.1313, allocations: 228.7 kB / 0.5336 GB, free: 9.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.1315, allocations: 206.3 kB / 0.5338 GB, free: 9.293 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002265/0.1317, allocations: 98.23 kB / 0.5339 GB, free: 9.191 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.1319, allocations: 358.8 kB / 0.5343 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009704/0.1329, allocations: 367 kB / 0.5346 GB, free: 8.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.1339, allocations: 431.9 kB / 0.535 GB, free: 8.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007603/0.1415, allocations: 2.096 MB / 0.5371 GB, free: 5.891 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1415, allocations: 4 kB / 0.5371 GB, free: 5.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002291/0.1438, allocations: 0.8656 MB / 0.5379 GB, free: 5.012 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.1438, allocations: 4 kB / 0.5379 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1438, allocations: 4 kB / 0.5379 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.1438, allocations: 4 kB / 0.5379 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006524/0.1503, allocations: 0.917 MB / 0.5388 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.012e-05/0.1503, allocations: 8 kB / 0.5388 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006215/0.151, allocations: 59.94 kB / 0.5389 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.862e-05/0.151, allocations: 19.98 kB / 0.5389 GB, free: 3.996 MB / 398.1 MB Warning: Assuming fixed start value for the following 5 variables: H.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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0004036/0.1514, allocations: 211.1 kB / 0.5391 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.1516, allocations: 47.72 kB / 0.5392 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/0.1538, allocations: 0.8397 MB / 0.54 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.1538, allocations: 4 kB / 0.54 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.1538, allocations: 4 kB / 0.54 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.1538, allocations: 7.984 kB / 0.54 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003914/0.1577, allocations: 1.815 MB / 0.5418 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1578, allocations: 4.094 kB / 0.5418 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006673/0.1644, allocations: 0.905 MB / 0.5426 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.1644, allocations: 4 kB / 0.5427 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.1646, allocations: 19.98 kB / 0.5427 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.628e-06/0.1646, allocations: 7.938 kB / 0.5427 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1646, allocations: 0 / 0.5427 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003212/0.1678, allocations: 1.296 MB / 0.5439 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.1679, allocations: 124.8 kB / 0.5441 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.609e-05/0.168, allocations: 12 kB / 0.5441 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005765/0.1686, allocations: 59.86 kB / 0.5441 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/0.1688, allocations: 76.33 kB / 0.5442 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.668e-05/0.1689, allocations: 19.98 kB / 0.5442 GB, free: 14.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003233/0.1692, allocations: 255.2 kB / 0.5445 GB, free: 14.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1692, allocations: 3.938 kB / 0.5445 GB, free: 14.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006198/0.1698, allocations: 148 kB / 0.5446 GB, free: 14.02 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (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]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.0001803/0.17, allocations: 119.3 kB / 0.5447 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.1721, allocations: 0.7522 MB / 0.5455 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1721, allocations: 0 / 0.5455 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.1732, allocations: 422.6 kB / 0.5459 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006602/0.1739, allocations: 115.6 kB / 0.546 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.1779, allocations: 1.809 MB / 0.5477 GB, free: 10.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005741/0.1785, allocations: 0.8514 MB / 0.5486 GB, free: 9.898 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004603/0.179, allocations: 96.33 kB / 0.5487 GB, free: 9.801 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002909/0.1792, allocations: 55.41 kB / 0.5487 GB, free: 9.746 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1792, allocations: 0 / 0.5487 GB, free: 9.746 MB / 414.1 MB Notification: Performance of Templates: time 0.01713/0.1964, allocations: 8.587 MB / 0.5571 GB, free: 1.23 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.11329941265285] Failed to read output from testmodel.py, exit status != 0: 0.20491169393062592 0.220496233 0.108732693 Calling exit ...