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.001367/0.001367, allocations: 92.42 kB / 20.46 MB, free: 1.246 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.001455/0.001455, allocations: 222.3 kB / 23.77 MB, free: 4.422 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.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.1149/0.1149, allocations: 24.04 MB / 338 MB, free: 11.34 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.002175/0.002175, allocations: 70.22 kB / 475.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2737, allocations: 59.56 MB / 0.5221 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003926/0.2776, allocations: 3.751 MB / 0.5258 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.2793, allocations: 1.172 MB / 0.5269 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.2795, allocations: 10.38 kB / 0.5269 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.2797, allocations: 105.2 kB / 0.527 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004338/0.2801, allocations: 274.9 kB / 0.5273 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006183/0.2807, allocations: 309.4 kB / 0.5276 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008816/0.2816, allocations: 1.195 MB / 0.5288 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005947/0.2822, allocations: 0.5509 MB / 0.5293 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004909/0.2827, allocations: 496.7 kB / 0.5298 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006529/0.2834, allocations: 0.5393 MB / 0.5303 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.2835, allocations: 123.1 kB / 0.5304 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.2837, allocations: 120.9 kB / 0.5305 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.284, allocations: 324.1 kB / 0.5308 GB, free: 5.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004089/0.2844, allocations: 468.9 kB / 0.5313 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.2854, allocations: 1.26 MB / 0.5325 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2854, allocations: 1.031 kB / 0.5325 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2854, allocations: 0 / 0.5325 GB, free: 4.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.2855, allocations: 4 kB / 0.5325 GB, free: 4.477 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.002558/0.288, allocations: 1.209 MB / 0.5337 GB, free: 3.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.2881, allocations: 14.45 kB / 0.5337 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.2883, allocations: 105 kB / 0.5338 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000766/0.289, allocations: 463.1 kB / 0.5343 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.2892, allocations: 161.5 kB / 0.5344 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.2893, allocations: 86.05 kB / 0.5345 GB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.2914, allocations: 1.085 MB / 0.5356 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.2915, allocations: 0 / 0.5356 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.305e-05/0.2915, allocations: 31.38 kB / 0.5356 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.2916, allocations: 19.84 kB / 0.5356 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/0.2936, allocations: 0.9028 MB / 0.5365 GB, free: 2.457 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.006264/0.2998, allocations: 3.093 MB / 0.5395 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001876/0.3017, allocations: 0.8705 MB / 0.5404 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.3029, allocations: 0.5904 MB / 0.5409 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.169e-05/0.303, allocations: 12.78 kB / 0.5409 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.303, allocations: 44.16 kB / 0.541 GB, free: 256 kB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.295e-06/0.303, allocations: 1.188 kB / 0.541 GB, free: 256 kB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.008152/0.3112, allocations: 3.083 MB / 0.544 GB, free: 14.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.3112, allocations: 61.56 kB / 0.5441 GB, free: 14.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004752/0.3117, allocations: 414.3 kB / 0.5445 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.507e-05/0.3118, allocations: 44.92 kB / 0.5445 GB, free: 14.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.312, allocations: 339.1 kB / 0.5448 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/0.3123, allocations: 328.7 kB / 0.5451 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003111/0.3126, allocations: 160.2 kB / 0.5453 GB, free: 13.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.3128, allocations: 369.3 kB / 0.5456 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.3141, allocations: 0.5388 MB / 0.5462 GB, free: 12.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.3154, allocations: 0.6236 MB / 0.5468 GB, free: 12.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/0.3261, allocations: 3.053 MB / 0.5498 GB, free: 11.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3261, allocations: 1.344 kB / 0.5498 GB, free: 11.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.002904/0.329, allocations: 1.289 MB / 0.551 GB, free: 10.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.329, allocations: 5.781 kB / 0.551 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/0.329, allocations: 2.188 kB / 0.551 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.329, allocations: 6.844 kB / 0.551 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006901/0.3359, allocations: 1.031 MB / 0.552 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.3359, allocations: 6.312 kB / 0.552 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007399/0.3367, allocations: 75.31 kB / 0.5521 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.442e-05/0.3367, allocations: 39.2 kB / 0.5522 GB, free: 9.973 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.0004453/0.3372, allocations: 251.7 kB / 0.5524 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.3373, allocations: 64.48 kB / 0.5525 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002873/0.3402, allocations: 1.201 MB / 0.5536 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.3402, allocations: 8.969 kB / 0.5536 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3402, allocations: 0 / 0.5536 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.3402, allocations: 7.984 kB / 0.5536 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004939/0.3452, allocations: 2.189 MB / 0.5558 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3452, allocations: 2.25 kB / 0.5558 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007077/0.3523, allocations: 1.013 MB / 0.5568 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-05/0.3523, allocations: 5.156 kB / 0.5568 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.537e-05/0.3524, allocations: 29.56 kB / 0.5568 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.097e-05/0.3524, allocations: 13.09 kB / 0.5568 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3524, allocations: 2.125 kB / 0.5568 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004174/0.3565, allocations: 1.83 MB / 0.5586 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.3567, allocations: 63.61 kB / 0.5587 GB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.3568, allocations: 20 kB / 0.5587 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007458/0.3575, allocations: 79.78 kB / 0.5588 GB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.3578, allocations: 104.5 kB / 0.5589 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-05/0.3579, allocations: 31.98 kB / 0.5589 GB, free: 5.191 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000338/0.3582, allocations: 283.2 kB / 0.5592 GB, free: 4.918 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3582, allocations: 0 / 0.5592 GB, free: 4.918 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007251/0.3589, allocations: 228 kB / 0.5594 GB, free: 4.695 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.0001916/0.3591, allocations: 142.9 kB / 0.5595 GB, free: 4.547 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00273/0.3619, allocations: 1.095 MB / 0.5606 GB, free: 3.453 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.3619, allocations: 4 kB / 0.5606 GB, free: 3.449 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.3632, allocations: 0.5704 MB / 0.5611 GB, free: 2.883 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007282/0.364, allocations: 130.6 kB / 0.5613 GB, free: 2.758 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00624/0.3702, allocations: 2.83 MB / 0.564 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.3706, allocations: 376.4 kB / 0.5644 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004572/0.3711, allocations: 79.34 kB / 0.5645 GB, free: 15.39 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3711, allocations: 0 / 0.5645 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Templates: time 0.01618/0.3872, allocations: 11.16 MB / 0.5754 GB, free: 4.234 MB / 414.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: 8.032674094196409] Failed to read output from testmodel.py, exit status != 0: 0.3957477668300271 0.410833681 0.12222498100000001 Calling exit ...