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.001316/0.001316, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001509/0.001509, allocations: 219 kB / 23.01 MB, free: 4.609 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.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.1084/0.1084, allocations: 24.13 MB / 337.3 MB, free: 11.44 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.002067/0.002067, allocations: 67.89 kB / 474.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3012, allocations: 59.6 MB / 0.5216 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004428/0.3056, allocations: 4.242 MB / 0.5258 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.3079, allocations: 1.216 MB / 0.527 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003891/0.3083, allocations: 9.562 kB / 0.527 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002983/0.3086, allocations: 108.8 kB / 0.5271 GB, free: 6.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005195/0.3091, allocations: 270.5 kB / 0.5273 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007653/0.3099, allocations: 307.2 kB / 0.5276 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.3111, allocations: 1.197 MB / 0.5288 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007492/0.3118, allocations: 0.5619 MB / 0.5294 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006608/0.3125, allocations: 498.6 kB / 0.5298 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008185/0.3133, allocations: 0.6108 MB / 0.5304 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001824/0.3135, allocations: 119 kB / 0.5305 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000217/0.3137, allocations: 124.2 kB / 0.5307 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003103/0.314, allocations: 323.9 kB / 0.531 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005897/0.3146, allocations: 0.5312 MB / 0.5315 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001559/0.3162, allocations: 1.256 MB / 0.5327 GB, free: 3.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3162, allocations: 0 / 0.5327 GB, free: 3.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3162, allocations: 0 / 0.5327 GB, free: 3.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.3162, allocations: 1 kB / 0.5327 GB, free: 3.723 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.003259/0.3195, allocations: 1.208 MB / 0.5339 GB, free: 3.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.3195, allocations: 10.8 kB / 0.5339 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002737/0.3198, allocations: 107.4 kB / 0.534 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000933/0.3207, allocations: 467.5 kB / 0.5345 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.3209, allocations: 158.8 kB / 0.5346 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.3211, allocations: 86.06 kB / 0.5347 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002474/0.3235, allocations: 1.011 MB / 0.5357 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.993e-05/0.3236, allocations: 1.797 kB / 0.5357 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.495e-05/0.3237, allocations: 31 kB / 0.5357 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.32e-05/0.3237, allocations: 18.97 kB / 0.5357 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002176/0.3259, allocations: 0.9066 MB / 0.5366 GB, free: 1.797 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.00702/0.3329, allocations: 3.473 MB / 0.54 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/0.3349, allocations: 0.8764 MB / 0.5409 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.3362, allocations: 0.5969 MB / 0.5414 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.631e-05/0.3362, allocations: 15.81 kB / 0.5415 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.406e-05/0.3363, allocations: 42.69 kB / 0.5415 GB, free: 15.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 3.106e-06/0.3363, allocations: 1.188 kB / 0.5415 GB, free: 15.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.008328/0.3446, allocations: 3.089 MB / 0.5445 GB, free: 13.6 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.3447, allocations: 60.44 kB / 0.5446 GB, free: 13.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007133/0.3454, allocations: 0.503 MB / 0.5451 GB, free: 13.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.622e-05/0.3455, allocations: 45.52 kB / 0.5451 GB, free: 13.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/0.3457, allocations: 329.1 kB / 0.5454 GB, free: 12.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/0.3461, allocations: 334.3 kB / 0.5457 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.3464, allocations: 147.7 kB / 0.5459 GB, free: 12.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.3466, allocations: 384.2 kB / 0.5462 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.3478, allocations: 0.5381 MB / 0.5468 GB, free: 11.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.3491, allocations: 0.6178 MB / 0.5474 GB, free: 11.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01075/0.3598, allocations: 3.063 MB / 0.5504 GB, free: 9.969 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3598, allocations: 0 / 0.5504 GB, free: 9.969 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003058/0.3629, allocations: 1.294 MB / 0.5516 GB, free: 9.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.3629, allocations: 7.312 kB / 0.5516 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.3629, allocations: 2.219 kB / 0.5516 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.3629, allocations: 6.844 kB / 0.5516 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006663/0.3696, allocations: 1.03 MB / 0.5527 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.885e-05/0.3696, allocations: 7.156 kB / 0.5527 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.3707, allocations: 78.66 kB / 0.5527 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.552e-05/0.3708, allocations: 35.14 kB / 0.5528 GB, free: 8.914 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.000615/0.3714, allocations: 252.8 kB / 0.553 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.3716, allocations: 73.5 kB / 0.5531 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00285/0.3744, allocations: 1.213 MB / 0.5543 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.3745, allocations: 16.22 kB / 0.5543 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3745, allocations: 0 / 0.5543 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.3745, allocations: 5.359 kB / 0.5543 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005133/0.3796, allocations: 2.444 MB / 0.5567 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.3796, allocations: 1.469 kB / 0.5567 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006583/0.3862, allocations: 1.009 MB / 0.5577 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-05/0.3862, allocations: 12.88 kB / 0.5577 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002593/0.3865, allocations: 26.33 kB / 0.5577 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.278e-05/0.3865, allocations: 8.062 kB / 0.5577 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.3865, allocations: 3.531 kB / 0.5577 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004086/0.3906, allocations: 1.846 MB / 0.5595 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003398/0.3909, allocations: 75.5 kB / 0.5596 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.3911, allocations: 23.94 kB / 0.5596 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007741/0.3919, allocations: 71.91 kB / 0.5597 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.3921, allocations: 108.5 kB / 0.5598 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.087e-05/0.3922, allocations: 23.98 kB / 0.5598 GB, free: 3.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004729/0.3927, allocations: 366.8 kB / 0.5601 GB, free: 3.484 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3927, allocations: 3.938 kB / 0.5602 GB, free: 3.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000777/0.3934, allocations: 236 kB / 0.5604 GB, free: 3.25 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.0002136/0.3936, allocations: 138.9 kB / 0.5605 GB, free: 3.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002681/0.3963, allocations: 1.099 MB / 0.5616 GB, free: 2.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.3963, allocations: 4 kB / 0.5616 GB, free: 2.004 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.3976, allocations: 0.5665 MB / 0.5621 GB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009339/0.3986, allocations: 174.7 kB / 0.5623 GB, free: 1.277 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006258/0.4048, allocations: 2.853 MB / 0.5651 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006342/0.4055, allocations: 0.9621 MB / 0.566 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006257/0.4061, allocations: 79.41 kB / 0.5661 GB, free: 13.3 MB / 414.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4061, allocations: 0 / 0.5661 GB, free: 13.3 MB / 414.1 MB Notification: Performance of Templates: time 0.01797/0.4241, allocations: 11.57 MB / 0.5774 GB, free: 1.746 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.325282419798896] Failed to read output from testmodel.py, exit status != 0: 0.433206096990034 0.44870840700000003 0.129186949 Calling exit ...