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.001511/0.001511, allocations: 84.52 kB / 19.96 MB, free: 1.758 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.001524/0.001524, allocations: 165.1 kB / 23.23 MB, free: 4.883 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.488/1.488, allocations: 177.1 MB / 203.5 MB, free: 9.168 MB / 190.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.1237/0.1237, allocations: 18.13 MB / 278.1 MB, free: 15.06 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: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 415.6 MB, free: 2.594 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.334e-05/2.478e-05, allocations: 2.281 kB / 415.6 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005943/0.005968, allocations: 3.752 MB / 419.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003341/0.009309, allocations: 1.181 MB / 420.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003311/0.009641, allocations: 8 kB / 420.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004001/0.01004, allocations: 106.9 kB / 420.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005767/0.01062, allocations: 285.7 kB / 420.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008253/0.01144, allocations: 311.3 kB / 421.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.01282, allocations: 1.229 MB / 422.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008183/0.01363, allocations: 0.5593 MB / 423 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006438/0.01428, allocations: 470.9 kB / 423.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000764/0.01504, allocations: 0.4909 MB / 423.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.01522, allocations: 120 kB / 424 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002532/0.01548, allocations: 124 kB / 424.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003437/0.01582, allocations: 339 kB / 424.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000552/0.01637, allocations: 411.1 kB / 424.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001693/0.01807, allocations: 1.316 MB / 426.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.01807, allocations: 0 / 426.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.01807, allocations: 0 / 426.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.01809, allocations: 4 kB / 426.2 MB, free: 7.875 MB / 350.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.003186/0.02127, allocations: 1.195 MB / 427.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.02132, allocations: 12.92 kB / 427.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/0.02156, allocations: 104.3 kB / 427.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.02266, allocations: 465.2 kB / 428 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/0.02289, allocations: 159.6 kB / 428.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001973/0.02309, allocations: 92.33 kB / 428.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.0255, allocations: 1.079 MB / 429.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.798e-05/0.02553, allocations: 192 / 429.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.02565, allocations: 44.12 kB / 429.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.02567, allocations: 19.98 kB / 429.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002388/0.02805, allocations: 0.8978 MB / 430.3 MB, free: 3.727 MB / 350.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.00725/0.0353, allocations: 3.087 MB / 433.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002188/0.03749, allocations: 0.8703 MB / 434.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/0.03884, allocations: 0.5923 MB / 434.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.62e-05/0.03891, allocations: 8.656 kB / 434.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.03896, allocations: 39.31 kB / 434.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.846e-06/0.03896, allocations: 3.938 kB / 434.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.009044/0.048, allocations: 3.081 MB / 437.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.04806, allocations: 60.41 kB / 438 MB, free: 11.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005278/0.04859, allocations: 409.9 kB / 438.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.034e-05/0.04868, allocations: 41.7 kB / 438.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002963/0.04898, allocations: 352.8 kB / 438.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003212/0.0493, allocations: 317.2 kB / 439.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000338/0.04964, allocations: 156.1 kB / 439.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.04987, allocations: 370.8 kB / 439.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.05125, allocations: 0.5395 MB / 440.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.05274, allocations: 0.6212 MB / 440.8 MB, free: 9.016 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/0.06471, allocations: 3.059 MB / 443.8 MB, free: 5.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.06471, allocations: 3.938 kB / 443.8 MB, free: 5.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003065/0.06778, allocations: 1.278 MB / 445.1 MB, free: 4.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/0.06781, allocations: 7.938 kB / 445.1 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.06782, allocations: 4 kB / 445.1 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.06784, allocations: 8 kB / 445.1 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007161/0.075, allocations: 1.038 MB / 446.2 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.533e-05/0.07503, allocations: 19.88 kB / 446.2 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008012/0.07583, allocations: 71.91 kB / 446.3 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.477e-05/0.07591, allocations: 31.98 kB / 446.3 MB, free: 3.453 MB / 366.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.0004943/0.07641, allocations: 250.5 kB / 446.5 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.07655, allocations: 67.56 kB / 446.6 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003001/0.07955, allocations: 1.201 MB / 447.8 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.07956, allocations: 15.98 kB / 447.8 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.07957, allocations: 0 / 447.8 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.07958, allocations: 3.984 kB / 447.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1898/0.2694, allocations: 2.171 MB / 450 MB, free: 46.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.2694, allocations: 2.75 kB / 450 MB, free: 46.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007392/0.2768, allocations: 1.014 MB / 451 MB, free: 46.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.826e-05/0.2768, allocations: 4.625 kB / 451 MB, free: 46.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000169/0.277, allocations: 27.19 kB / 451 MB, free: 46.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-05/0.277, allocations: 6.047 kB / 451.1 MB, free: 46.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.277, allocations: 2.609 kB / 451.1 MB, free: 46.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003927/0.281, allocations: 1.828 MB / 452.9 MB, free: 46.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.2811, allocations: 62.66 kB / 452.9 MB, free: 46.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.2812, allocations: 22.94 kB / 453 MB, free: 46.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007475/0.282, allocations: 69.06 kB / 453 MB, free: 46.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/0.2823, allocations: 111.8 kB / 453.1 MB, free: 46.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.587e-05/0.2823, allocations: 26.11 kB / 453.2 MB, free: 46.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.2826, allocations: 282.9 kB / 453.4 MB, free: 46.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2826, allocations: 3.969 kB / 453.4 MB, free: 46.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006922/0.2833, allocations: 230.3 kB / 453.7 MB, free: 46.18 MB / 366.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.0001845/0.2835, allocations: 132.5 kB / 453.8 MB, free: 46.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002479/0.286, allocations: 1.094 MB / 454.9 MB, free: 45.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.286, allocations: 1.062 kB / 454.9 MB, free: 45.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.2873, allocations: 0.5755 MB / 455.5 MB, free: 45.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000732/0.288, allocations: 130.2 kB / 455.6 MB, free: 45.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00522/0.2932, allocations: 2.444 MB / 458 MB, free: 44.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004061/0.2936, allocations: 377.3 kB / 458.4 MB, free: 44.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007158/0.2944, allocations: 159.5 kB / 458.6 MB, free: 44.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004187/0.2948, allocations: 70.55 kB / 458.6 MB, free: 44.16 MB / 366.1 MB Notification: Performance of SimCode: time 1.322e-06/0.2948, allocations: 0 / 458.6 MB, free: 44.16 MB / 366.1 MB Notification: Performance of Templates: time 0.01853/0.3133, allocations: 11.5 MB / 470.1 MB, free: 39.36 MB / 366.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.372607495635748] Failed to read output from testmodel.py, exit status != 0: 0.3224319517612457 0.331162532 0.310727174 Calling exit ...