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.00148/0.00148, allocations: 104.3 kB / 19.72 MB, free: 2.039 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.001529/0.001529, allocations: 209 kB / 23 MB, free: 4.863 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.517/1.517, allocations: 230.6 MB / 256.8 MB, free: 7.824 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.1131/0.1131, allocations: 24.04 MB / 337.2 MB, free: 11.36 MB / 270.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.002484/0.002484, allocations: 71.83 kB / 474.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4214/0.4238, allocations: 59.57 MB / 0.5214 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004887/0.4287, allocations: 3.751 MB / 0.525 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.4311, allocations: 1.171 MB / 0.5262 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002852/0.4314, allocations: 10.38 kB / 0.5262 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002985/0.4317, allocations: 105.7 kB / 0.5263 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005317/0.4322, allocations: 275.8 kB / 0.5266 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008456/0.4331, allocations: 304.3 kB / 0.5269 GB, free: 6.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.4342, allocations: 1.192 MB / 0.528 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007416/0.435, allocations: 0.5535 MB / 0.5286 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007416/0.4357, allocations: 497.2 kB / 0.529 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008179/0.4365, allocations: 0.5437 MB / 0.5296 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002151/0.4368, allocations: 118.8 kB / 0.5297 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002295/0.437, allocations: 121.3 kB / 0.5298 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003237/0.4373, allocations: 327.8 kB / 0.5301 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004693/0.4378, allocations: 460.6 kB / 0.5305 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.4391, allocations: 1.265 MB / 0.5318 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.4391, allocations: 1.188 kB / 0.5318 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4391, allocations: 0 / 0.5318 GB, free: 4.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.4392, allocations: 7.938 kB / 0.5318 GB, free: 4.457 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.002928/0.4421, allocations: 1.201 MB / 0.533 GB, free: 3.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.4421, allocations: 14.52 kB / 0.533 GB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000224/0.4424, allocations: 104.3 kB / 0.5331 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000835/0.4432, allocations: 466.7 kB / 0.5335 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.4433, allocations: 162.5 kB / 0.5337 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.4435, allocations: 86.73 kB / 0.5338 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002177/0.4457, allocations: 1.092 MB / 0.5348 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.4457, allocations: 3.984 kB / 0.5348 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.882e-05/0.4458, allocations: 30.94 kB / 0.5349 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.4458, allocations: 19.53 kB / 0.5349 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/0.4478, allocations: 0.8989 MB / 0.5358 GB, free: 2.434 MB / 382.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.006617/0.4545, allocations: 3.082 MB / 0.5388 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001908/0.4564, allocations: 0.8798 MB / 0.5396 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.4576, allocations: 0.5916 MB / 0.5402 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.575e-05/0.4577, allocations: 8.672 kB / 0.5402 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.4577, allocations: 48.77 kB / 0.5403 GB, free: 232 kB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 3.927e-06/0.4577, allocations: 4 kB / 0.5403 GB, free: 228 kB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.008765/0.4665, allocations: 3.076 MB / 0.5433 GB, free: 14.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.4666, allocations: 64.91 kB / 0.5433 GB, free: 14.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006194/0.4672, allocations: 406.1 kB / 0.5437 GB, free: 14.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.899e-05/0.4673, allocations: 46.05 kB / 0.5438 GB, free: 14.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.4675, allocations: 346.2 kB / 0.5441 GB, free: 13.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/0.4679, allocations: 324.5 kB / 0.5444 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.4682, allocations: 152.8 kB / 0.5445 GB, free: 13.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002235/0.4684, allocations: 373 kB / 0.5449 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.4697, allocations: 0.5424 MB / 0.5454 GB, free: 12.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.471, allocations: 0.61 MB / 0.546 GB, free: 12.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/0.4816, allocations: 3.069 MB / 0.549 GB, free: 11.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.4816, allocations: 1.438 kB / 0.549 GB, free: 11.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.002904/0.4845, allocations: 1.277 MB / 0.5503 GB, free: 10.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.4845, allocations: 10.56 kB / 0.5503 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.4845, allocations: 2.469 kB / 0.5503 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.125e-05/0.4846, allocations: 10.53 kB / 0.5503 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006713/0.4913, allocations: 1.035 MB / 0.5513 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.227e-05/0.4913, allocations: 6.969 kB / 0.5513 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009458/0.4923, allocations: 66.86 kB / 0.5514 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.993e-05/0.4923, allocations: 43.77 kB / 0.5514 GB, free: 9.961 MB / 398.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.0006552/0.493, allocations: 259.1 kB / 0.5517 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.4932, allocations: 65.27 kB / 0.5517 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002875/0.496, allocations: 1.197 MB / 0.5529 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.496, allocations: 8.25 kB / 0.5529 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.496, allocations: 0 / 0.5529 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.4961, allocations: 11.92 kB / 0.5529 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005016/0.5011, allocations: 2.193 MB / 0.5551 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.759e-06/0.5011, allocations: 10.8 kB / 0.5551 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006969/0.5081, allocations: 0.9997 MB / 0.556 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-05/0.5081, allocations: 9.922 kB / 0.556 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000159/0.5082, allocations: 25.67 kB / 0.5561 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.347e-05/0.5083, allocations: 9 kB / 0.5561 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.5083, allocations: 6.719 kB / 0.5561 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004132/0.5124, allocations: 1.833 MB / 0.5579 GB, free: 5.496 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.5127, allocations: 55.61 kB / 0.5579 GB, free: 5.441 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.5128, allocations: 23.98 kB / 0.558 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007951/0.5136, allocations: 71.86 kB / 0.558 GB, free: 5.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/0.5139, allocations: 112.4 kB / 0.5581 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.514, allocations: 27.98 kB / 0.5582 GB, free: 5.207 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003696/0.5144, allocations: 283.1 kB / 0.5584 GB, free: 4.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5144, allocations: 0 / 0.5584 GB, free: 4.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009595/0.5153, allocations: 232 kB / 0.5586 GB, free: 4.707 MB / 398.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.0002357/0.5156, allocations: 127.1 kB / 0.5588 GB, free: 4.574 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002813/0.5184, allocations: 1.107 MB / 0.5598 GB, free: 3.469 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5184, allocations: 0 / 0.5598 GB, free: 3.469 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.5197, allocations: 0.5705 MB / 0.5604 GB, free: 2.902 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008293/0.5205, allocations: 140.3 kB / 0.5605 GB, free: 2.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006593/0.5271, allocations: 2.785 MB / 0.5633 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000489/0.5276, allocations: 376.4 kB / 0.5636 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007772/0.5284, allocations: 153.1 kB / 0.5638 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004157/0.5288, allocations: 71.41 kB / 0.5638 GB, free: 15.31 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5288, allocations: 0 / 0.5638 GB, free: 15.31 MB / 414.1 MB Notification: Performance of Templates: time 0.02351/0.5523, allocations: 12.63 MB / 0.5762 GB, free: 2.828 MB / 414.1 MB " [Timeout remaining time 659] 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.744186487048864] Failed to read output from testmodel.py, exit status != 0: 0.5625582654029131 0.578746922 0.136269684 Calling exit ...