Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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.001407/0.001407, 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.001486/0.001486, allocations: 217.8 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.416/1.416, 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.1088/0.1088, allocations: 24.12 MB / 337.3 MB, free: 11.52 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") [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.002057/0.002057, allocations: 67.88 kB / 475.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2958, allocations: 59.6 MB / 0.5224 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003584/0.2994, allocations: 3.224 MB / 0.5256 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.3009, allocations: 0.9514 MB / 0.5265 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.3011, allocations: 8.188 kB / 0.5265 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.3013, allocations: 65.86 kB / 0.5266 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/0.3016, allocations: 172.3 kB / 0.5267 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004799/0.302, allocations: 201 kB / 0.5269 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006763/0.3027, allocations: 0.7536 MB / 0.5277 GB, free: 7.266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004633/0.3032, allocations: 368.8 kB / 0.528 GB, free: 7.102 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003954/0.3036, allocations: 320.9 kB / 0.5283 GB, free: 6.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004475/0.304, allocations: 395 kB / 0.5287 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.3041, allocations: 76.72 kB / 0.5288 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.3043, allocations: 81.62 kB / 0.5288 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.3044, allocations: 207.5 kB / 0.529 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.3047, allocations: 346 kB / 0.5294 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007553/0.3054, allocations: 0.795 MB / 0.5301 GB, free: 6.145 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3054, allocations: 0 / 0.5301 GB, free: 6.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3054, allocations: 4 kB / 0.5301 GB, free: 6.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.3055, allocations: 0 / 0.5301 GB, free: 6.141 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001842/0.3073, allocations: 0.8387 MB / 0.531 GB, free: 5.605 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.3073, allocations: 10.48 kB / 0.531 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.3075, allocations: 66.89 kB / 0.531 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005209/0.308, allocations: 330.7 kB / 0.5314 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.3081, allocations: 110.1 kB / 0.5315 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.3082, allocations: 49.84 kB / 0.5315 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.3097, allocations: 0.6945 MB / 0.5322 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.3097, allocations: 1.094 kB / 0.5322 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.966e-05/0.3098, allocations: 19.56 kB / 0.5322 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3098, allocations: 11.84 kB / 0.5322 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.3113, allocations: 0.6026 MB / 0.5328 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004906/0.3162, allocations: 2.528 MB / 0.5353 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.3174, allocations: 0.5473 MB / 0.5358 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008654/0.3182, allocations: 397.8 kB / 0.5362 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.3183, allocations: 4.812 kB / 0.5362 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.3183, allocations: 38.05 kB / 0.5362 GB, free: 3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.505e-06/0.3183, allocations: 5.125 kB / 0.5362 GB, free: 2.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.00597/0.3243, allocations: 2.232 MB / 0.5384 GB, free: 2.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.3243, allocations: 57.47 kB / 0.5385 GB, free: 2.051 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000381/0.3247, allocations: 353.6 kB / 0.5388 GB, free: 1.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.3248, allocations: 35.98 kB / 0.5388 GB, free: 1.824 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.3249, allocations: 238.7 kB / 0.5391 GB, free: 1.629 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.325, allocations: 202.3 kB / 0.5393 GB, free: 1.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.3252, allocations: 95.27 kB / 0.5394 GB, free: 1.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.203e-05/0.3253, allocations: 358.6 kB / 0.5397 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008566/0.3261, allocations: 378.7 kB / 0.5401 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008692/0.327, allocations: 425.7 kB / 0.5405 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006445/0.3334, allocations: 2.016 MB / 0.5424 GB, free: 15.9 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3334, allocations: 5.438 kB / 0.5424 GB, free: 15.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002062/0.3355, allocations: 0.8666 MB / 0.5433 GB, free: 15.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.3355, allocations: 5.5 kB / 0.5433 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3355, allocations: 2.719 kB / 0.5433 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.3355, allocations: 3.75 kB / 0.5433 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005902/0.3414, allocations: 0.9139 MB / 0.5442 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.732e-05/0.3415, allocations: 7.812 kB / 0.5442 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006497/0.3421, allocations: 61.45 kB / 0.5442 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.3422, allocations: 23.27 kB / 0.5443 GB, free: 15.09 MB / 398.1 MB Warning: Assuming fixed start value for the following 5 variables: H.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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0004238/0.3426, allocations: 209.6 kB / 0.5445 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3427, allocations: 45.44 kB / 0.5445 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/0.3448, allocations: 0.8441 MB / 0.5453 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3448, allocations: 5.531 kB / 0.5453 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3448, allocations: 1.406 kB / 0.5453 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.3448, allocations: 3.984 kB / 0.5453 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003786/0.3486, allocations: 1.775 MB / 0.5471 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3486, allocations: 1.812 kB / 0.5471 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005877/0.3545, allocations: 0.9067 MB / 0.548 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.198e-05/0.3545, allocations: 2.344 kB / 0.548 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-05/0.3546, allocations: 18.89 kB / 0.548 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.3546, allocations: 6.219 kB / 0.548 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.3546, allocations: 6.156 kB / 0.548 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003024/0.3576, allocations: 1.293 MB / 0.5493 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.3578, allocations: 44.14 kB / 0.5493 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3579, allocations: 16.98 kB / 0.5493 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/0.3585, allocations: 60.97 kB / 0.5494 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.3587, allocations: 84.97 kB / 0.5495 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-05/0.3587, allocations: 19.47 kB / 0.5495 GB, free: 11.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003311/0.359, allocations: 259.2 kB / 0.5497 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.359, allocations: 1.25 kB / 0.5497 GB, free: 11.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000556/0.3596, allocations: 145.7 kB / 0.5499 GB, free: 11.79 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (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]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.0001676/0.3598, allocations: 120.1 kB / 0.55 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.3616, allocations: 0.7525 MB / 0.5507 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3616, allocations: 0 / 0.5507 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009545/0.3626, allocations: 416.5 kB / 0.5511 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006293/0.3632, allocations: 111.9 kB / 0.5512 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.3672, allocations: 1.855 MB / 0.553 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.3677, allocations: 0.8481 MB / 0.5539 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000335/0.368, allocations: 58.03 kB / 0.5539 GB, free: 9.043 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.368, allocations: 0 / 0.5539 GB, free: 9.043 MB / 398.1 MB Notification: Performance of Templates: time 0.01196/0.38, allocations: 7.55 MB / 0.5613 GB, free: 3.047 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.791768519906327] Failed to read output from testmodel.py, exit status != 0: 0.3891547608654946 0.40400516 0.095389737 Calling exit ...