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.001366/0.001366, allocations: 96.36 kB / 20.46 MB, free: 1.367 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.001437/0.001437, allocations: 219.9 kB / 23.77 MB, free: 4.516 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.114/0.114, allocations: 24.04 MB / 338 MB, free: 11.3 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_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.002305/0.002305, allocations: 63.91 kB / 475.9 MB, free: 5.082 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2759, allocations: 59.57 MB / 0.5229 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003342/0.2792, allocations: 2.919 MB / 0.5257 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.2806, allocations: 0.9118 MB / 0.5266 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.2807, allocations: 7.906 kB / 0.5266 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000184/0.2809, allocations: 66.45 kB / 0.5267 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002994/0.2812, allocations: 177.7 kB / 0.5269 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/0.2817, allocations: 201.1 kB / 0.5271 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006004/0.2823, allocations: 0.7445 MB / 0.5278 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004048/0.2827, allocations: 355.2 kB / 0.5281 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003622/0.283, allocations: 320.4 kB / 0.5284 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004308/0.2835, allocations: 351.8 kB / 0.5288 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.2836, allocations: 76.16 kB / 0.5288 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.2837, allocations: 77.88 kB / 0.5289 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.2839, allocations: 207.3 kB / 0.5291 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002525/0.2841, allocations: 295.9 kB / 0.5294 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007015/0.2848, allocations: 0.8026 MB / 0.5302 GB, free: 6.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2848, allocations: 0 / 0.5302 GB, free: 6.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2848, allocations: 1.344 kB / 0.5302 GB, free: 6.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.2849, allocations: 0 / 0.5302 GB, free: 6.637 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.001747/0.2866, allocations: 0.8403 MB / 0.531 GB, free: 6.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.2866, allocations: 10.33 kB / 0.531 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.2868, allocations: 66.47 kB / 0.5311 GB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005265/0.2873, allocations: 335.9 kB / 0.5314 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.2874, allocations: 118 kB / 0.5315 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.2875, allocations: 49.12 kB / 0.5316 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.2891, allocations: 0.7422 MB / 0.5323 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.2891, allocations: 0 / 0.5323 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.281e-05/0.2892, allocations: 21.44 kB / 0.5323 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.2892, allocations: 11.41 kB / 0.5323 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.2907, allocations: 0.6035 MB / 0.5329 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004709/0.2954, allocations: 2.275 MB / 0.5351 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.2966, allocations: 0.5418 MB / 0.5357 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008765/0.2975, allocations: 393.1 kB / 0.536 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.59e-05/0.2975, allocations: 5.734 kB / 0.536 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.2976, allocations: 46.7 kB / 0.5361 GB, free: 3.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.114e-06/0.2976, allocations: 3.938 kB / 0.5361 GB, free: 3.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.00604/0.3036, allocations: 2.213 MB / 0.5382 GB, free: 2.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.3036, allocations: 58.52 kB / 0.5383 GB, free: 2.586 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.3039, allocations: 279.5 kB / 0.5386 GB, free: 2.426 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.723e-05/0.3039, allocations: 36.77 kB / 0.5386 GB, free: 2.387 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.304, allocations: 232.3 kB / 0.5388 GB, free: 2.195 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.3042, allocations: 212 kB / 0.539 GB, free: 2.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.3044, allocations: 98.17 kB / 0.5391 GB, free: 1.977 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.698e-05/0.3044, allocations: 348.4 kB / 0.5394 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008869/0.3053, allocations: 377.6 kB / 0.5398 GB, free: 1.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008799/0.3062, allocations: 427.7 kB / 0.5402 GB, free: 1.336 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006706/0.3129, allocations: 2.018 MB / 0.5422 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3129, allocations: 1.281 kB / 0.5422 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00184/0.3147, allocations: 0.8596 MB / 0.543 GB, free: 184 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.3148, allocations: 6.156 kB / 0.543 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.3148, allocations: 1.344 kB / 0.543 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.3148, allocations: 5.312 kB / 0.543 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006165/0.321, allocations: 0.9137 MB / 0.5439 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.321, allocations: 4.5 kB / 0.5439 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005703/0.3215, allocations: 64.92 kB / 0.544 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.589e-05/0.3216, allocations: 21.64 kB / 0.544 GB, free: 15.82 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.0003998/0.322, allocations: 210.9 kB / 0.5442 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.3221, allocations: 41.59 kB / 0.5443 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.3242, allocations: 0.8462 MB / 0.5451 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3242, allocations: 7.891 kB / 0.5451 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3242, allocations: 0 / 0.5451 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3242, allocations: 2.469 kB / 0.5451 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003621/0.3279, allocations: 1.6 MB / 0.5467 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3279, allocations: 1.281 kB / 0.5467 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006396/0.3343, allocations: 0.9027 MB / 0.5475 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.3343, allocations: 10.98 kB / 0.5476 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.113e-05/0.3343, allocations: 17.44 kB / 0.5476 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.3343, allocations: 6.734 kB / 0.5476 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3343, allocations: 5.25 kB / 0.5476 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003003/0.3373, allocations: 1.293 MB / 0.5488 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.334e-05/0.3374, allocations: 39.06 kB / 0.5489 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.868e-05/0.3375, allocations: 13.31 kB / 0.5489 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000539/0.3381, allocations: 52.28 kB / 0.5489 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.3382, allocations: 84.72 kB / 0.549 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.3383, allocations: 20.48 kB / 0.549 GB, free: 12.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.3385, allocations: 200.4 kB / 0.5492 GB, free: 12.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3385, allocations: 0 / 0.5492 GB, free: 12.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005422/0.3391, allocations: 144.9 kB / 0.5494 GB, free: 12.71 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.0001692/0.3392, allocations: 127.2 kB / 0.5495 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.3412, allocations: 0.7524 MB / 0.5502 GB, free: 12.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3412, allocations: 0.9688 kB / 0.5502 GB, free: 12.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009888/0.3422, allocations: 415.5 kB / 0.5506 GB, free: 12.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005494/0.3427, allocations: 73.38 kB / 0.5507 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003944/0.3467, allocations: 1.841 MB / 0.5525 GB, free: 10.78 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.347, allocations: 253.4 kB / 0.5527 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.3473, allocations: 49.53 kB / 0.5528 GB, free: 10.61 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3473, allocations: 0 / 0.5528 GB, free: 10.61 MB / 398.1 MB Notification: Performance of Templates: time 0.01094/0.3582, allocations: 7.259 MB / 0.5599 GB, free: 4.906 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 -variableFilter=.* -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.46459994930774] Failed to read output from testmodel.py, exit status != 0: 0.36689419904723763 0.38221841100000004 0.09410367700000001 Calling exit ...