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.0007755/0.0007755, allocations: 80.45 kB / 20.71 MB, free: 3.859 MB / 18.57 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.0007652/0.0007652, allocations: 165.2 kB / 23.98 MB, free: 0.582 MB / 18.57 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 0.83/0.83, allocations: 177.1 MB / 204.3 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.06007/0.06007, allocations: 18.11 MB / 278.8 MB, free: 11.56 MB / 266.7 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.443e-06/1.443e-06, allocations: 0 / 416.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.972e-05/2.116e-05, allocations: 2.281 kB / 416.3 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.002729/0.00275, allocations: 3.751 MB / 420.1 MB, free: 9.938 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.003989, allocations: 1.178 MB / 421.2 MB, free: 9.098 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.004153, allocations: 10.47 kB / 421.3 MB, free: 9.094 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.004347, allocations: 106.2 kB / 421.4 MB, free: 9.031 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003205/0.004667, allocations: 290 kB / 421.6 MB, free: 8.828 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004737/0.005141, allocations: 311.6 kB / 421.9 MB, free: 8.656 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006891/0.00583, allocations: 1.226 MB / 423.2 MB, free: 8.055 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004971/0.006327, allocations: 0.5541 MB / 423.7 MB, free: 7.797 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003901/0.006717, allocations: 475.4 kB / 424.2 MB, free: 7.598 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004523/0.00717, allocations: 0.4947 MB / 424.7 MB, free: 7.426 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.007296, allocations: 119.9 kB / 424.8 MB, free: 7.426 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.007427, allocations: 120 kB / 424.9 MB, free: 7.426 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.007613, allocations: 338.8 kB / 425.2 MB, free: 7.227 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002751/0.007888, allocations: 399.6 kB / 425.6 MB, free: 7.047 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009151/0.008803, allocations: 1.329 MB / 427 MB, free: 6.535 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.008804, allocations: 0 / 427 MB, free: 6.535 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.008805, allocations: 0 / 427 MB, free: 6.535 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.008818, allocations: 1.188 kB / 427 MB, free: 6.535 MB / 330.7 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.001561/0.01038, allocations: 1.2 MB / 428.2 MB, free: 5.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.01041, allocations: 10.05 kB / 428.2 MB, free: 5.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.01054, allocations: 103.2 kB / 428.3 MB, free: 5.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004835/0.01102, allocations: 466.5 kB / 428.7 MB, free: 5.457 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.24e-05/0.01111, allocations: 157.8 kB / 428.9 MB, free: 5.332 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.01123, allocations: 87.75 kB / 429 MB, free: 5.301 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.01254, allocations: 1.085 MB / 430.1 MB, free: 4.844 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.01256, allocations: 192 / 430.1 MB, free: 4.844 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.143e-05/0.01262, allocations: 35.75 kB / 430.1 MB, free: 4.816 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.01263, allocations: 19.62 kB / 430.1 MB, free: 4.816 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.01381, allocations: 0.9021 MB / 431 MB, free: 4.52 MB / 330.7 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.003644/0.01746, allocations: 3.086 MB / 434.1 MB, free: 2.734 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.01856, allocations: 0.8728 MB / 435 MB, free: 2.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006904/0.01925, allocations: 0.5917 MB / 435.6 MB, free: 1.977 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.0193, allocations: 8.812 kB / 435.6 MB, free: 1.977 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.01931, allocations: 43.69 kB / 435.6 MB, free: 1.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=79): time 1.894e-06/0.01931, allocations: 0 / 435.6 MB, free: 1.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.004279/0.02359, allocations: 3.089 MB / 438.7 MB, free: 292 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/0.02362, allocations: 65.56 kB / 438.8 MB, free: 224 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.02388, allocations: 410.3 kB / 439.2 MB, free: 15.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.414e-05/0.02394, allocations: 41.83 kB / 439.2 MB, free: 15.92 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.02408, allocations: 343 kB / 439.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.02425, allocations: 320.6 kB / 439.9 MB, free: 15.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.02444, allocations: 151.8 kB / 440 MB, free: 15.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.02454, allocations: 373.8 kB / 440.4 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007086/0.02525, allocations: 0.5388 MB / 440.9 MB, free: 14.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007369/0.02599, allocations: 0.6147 MB / 441.5 MB, free: 14.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005206/0.03119, allocations: 3.071 MB / 444.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.0312, allocations: 0.8125 kB / 444.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001629/0.03283, allocations: 1.274 MB / 445.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.03284, allocations: 16.19 kB / 445.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.03285, allocations: 6.188 kB / 445.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.03286, allocations: 8 kB / 445.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/0.03606, allocations: 1.03 MB / 446.9 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.03607, allocations: 8 kB / 446.9 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.03639, allocations: 73.78 kB / 447 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/0.03644, allocations: 35.98 kB / 447 MB, free: 9.199 MB / 346.7 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.0002839/0.03673, allocations: 246.5 kB / 447.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.848e-05/0.0368, allocations: 67.56 kB / 447.4 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.03832, allocations: 1.201 MB / 448.6 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.03832, allocations: 8 kB / 448.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.03833, allocations: 0 / 448.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.03833, allocations: 3.984 kB / 448.6 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00288/0.04121, allocations: 2.187 MB / 450.8 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.04122, allocations: 0.875 kB / 450.8 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003135/0.04435, allocations: 1.007 MB / 451.8 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.04436, allocations: 4 kB / 451.8 MB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.448e-05/0.04441, allocations: 39.97 kB / 451.8 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.04442, allocations: 4 kB / 451.8 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.04442, allocations: 0 / 451.8 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.04657, allocations: 1.836 MB / 453.6 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.073e-05/0.04663, allocations: 59.61 kB / 453.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.726e-05/0.04671, allocations: 27.94 kB / 453.7 MB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000324/0.04703, allocations: 63.91 kB / 453.8 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.04718, allocations: 112.3 kB / 453.9 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.043e-05/0.04722, allocations: 31.98 kB / 453.9 MB, free: 2.203 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001835/0.0474, allocations: 283.2 kB / 454.2 MB, free: 1.926 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0474, allocations: 4 kB / 454.2 MB, free: 1.922 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003845/0.04779, allocations: 228 kB / 454.4 MB, free: 1.699 MB / 346.7 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.0001227/0.04791, allocations: 131 kB / 454.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.04933, allocations: 1.099 MB / 455.7 MB, free: 476 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.04933, allocations: 4 kB / 455.7 MB, free: 472 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006964/0.05003, allocations: 0.5626 MB / 456.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.05046, allocations: 130.5 kB / 456.4 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.05357, allocations: 2.491 MB / 458.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.05379, allocations: 376.4 kB / 459.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003003/0.05409, allocations: 80.45 kB / 459.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.05409, allocations: 0 / 459.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of Templates: time 0.008597/0.06269, allocations: 11.36 MB / 470.6 MB, free: 1.398 MB / 362.7 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: 4.521034873090684] Failed to read output from testmodel.py, exit status != 0: 0.06778052728623152 0.075529253 0.065037549 Calling exit ...