Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 101.7 kB / 16.45 MB, free: 6.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 198.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.1022/0.1022, allocations: 22.7 MB / 325.4 MB, free: 3.555 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 67.88 kB / 457.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1238, allocations: 58.02 MB / 0.5036 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004908/0.1288, allocations: 3.222 MB / 0.5068 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.1306, allocations: 0.9119 MB / 0.5076 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.1308, allocations: 7.938 kB / 0.5077 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.131, allocations: 63.36 kB / 0.5077 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003608/0.1314, allocations: 178.6 kB / 0.5079 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005376/0.1319, allocations: 191.7 kB / 0.5081 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008717/0.1328, allocations: 0.7561 MB / 0.5088 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005758/0.1334, allocations: 369.8 kB / 0.5092 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004055/0.1338, allocations: 319.1 kB / 0.5095 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005598/0.1343, allocations: 398.7 kB / 0.5098 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.1344, allocations: 76 kB / 0.5099 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001229/0.1346, allocations: 76 kB / 0.51 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002238/0.1348, allocations: 211.4 kB / 0.5102 GB, free: 364 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003387/0.1351, allocations: 338.5 kB / 0.5105 GB, free: 24 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2611/0.3962, allocations: 0.793 MB / 0.5113 GB, free: 11.92 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3962, allocations: 1.25 kB / 0.5113 GB, free: 11.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3962, allocations: 2.156 kB / 0.5113 GB, free: 11.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.3962, allocations: 0 / 0.5113 GB, free: 11.92 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.002047/0.3983, allocations: 0.9064 MB / 0.5122 GB, free: 11.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3983, allocations: 12.77 kB / 0.5122 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.3985, allocations: 66.72 kB / 0.5123 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005415/0.399, allocations: 393.2 kB / 0.5126 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.3991, allocations: 114.5 kB / 0.5127 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.3992, allocations: 48.62 kB / 0.5128 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.4008, allocations: 0.6991 MB / 0.5135 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.4008, allocations: 5.312 kB / 0.5135 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.4009, allocations: 18.56 kB / 0.5135 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.4009, allocations: 10.75 kB / 0.5135 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.4023, allocations: 0.6063 MB / 0.5141 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005315/0.4076, allocations: 2.563 MB / 0.5166 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.4091, allocations: 0.5397 MB / 0.5171 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009543/0.4101, allocations: 398.2 kB / 0.5175 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.76e-05/0.4101, allocations: 11.56 kB / 0.5175 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.4102, allocations: 38.56 kB / 0.5175 GB, free: 10.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.494e-06/0.4102, allocations: 0 / 0.5175 GB, free: 10.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.006748/0.4169, allocations: 2.296 MB / 0.5198 GB, free: 9.434 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.417, allocations: 62.33 kB / 0.5198 GB, free: 9.363 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004591/0.4174, allocations: 352.7 kB / 0.5202 GB, free: 9.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.211e-05/0.4175, allocations: 35.86 kB / 0.5202 GB, free: 9.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.4176, allocations: 234.1 kB / 0.5204 GB, free: 8.953 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.4178, allocations: 206.9 kB / 0.5206 GB, free: 8.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.418, allocations: 93.53 kB / 0.5207 GB, free: 8.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.4181, allocations: 356.3 kB / 0.5211 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009517/0.4191, allocations: 381.2 kB / 0.5214 GB, free: 8.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009295/0.42, allocations: 425.7 kB / 0.5218 GB, free: 8.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007152/0.4271, allocations: 2.099 MB / 0.5239 GB, free: 7.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4272, allocations: 1.156 kB / 0.5239 GB, free: 7.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002077/0.4292, allocations: 0.8695 MB / 0.5247 GB, free: 7.121 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.4293, allocations: 6.656 kB / 0.5247 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.4293, allocations: 3.812 kB / 0.5247 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.4293, allocations: 4.312 kB / 0.5248 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006255/0.4355, allocations: 0.917 MB / 0.5256 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/0.4356, allocations: 4.406 kB / 0.5257 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000654/0.4362, allocations: 55.81 kB / 0.5257 GB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.463e-05/0.4363, allocations: 20.97 kB / 0.5257 GB, free: 7.082 MB / 382.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.0004136/0.4367, allocations: 202.7 kB / 0.5259 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.4368, allocations: 45.34 kB / 0.526 GB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/0.4389, allocations: 0.8483 MB / 0.5268 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.4389, allocations: 6.281 kB / 0.5268 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4389, allocations: 1.125 kB / 0.5268 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.4389, allocations: 2.812 kB / 0.5268 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003627/0.4425, allocations: 1.813 MB / 0.5286 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4425, allocations: 3.562 kB / 0.5286 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006769/0.4493, allocations: 0.9029 MB / 0.5295 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-05/0.4493, allocations: 3.156 kB / 0.5295 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002417/0.4496, allocations: 19.75 kB / 0.5295 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.101e-05/0.4496, allocations: 6 kB / 0.5295 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.431e-05/0.4496, allocations: 5.625 kB / 0.5295 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003502/0.4531, allocations: 1.299 MB / 0.5308 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.4533, allocations: 121.9 kB / 0.5309 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.4534, allocations: 14.67 kB / 0.5309 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005657/0.454, allocations: 59.94 kB / 0.5309 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/0.4542, allocations: 83.25 kB / 0.531 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.266e-05/0.4542, allocations: 19.56 kB / 0.531 GB, free: 4.887 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003244/0.4546, allocations: 258.6 kB / 0.5313 GB, free: 4.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4546, allocations: 0 / 0.5313 GB, free: 4.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007447/0.4553, allocations: 146.3 kB / 0.5314 GB, free: 4.734 MB / 382.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.0002145/0.4555, allocations: 117.5 kB / 0.5315 GB, free: 4.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002334/0.4579, allocations: 0.756 MB / 0.5323 GB, free: 4.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.4579, allocations: 0 / 0.5323 GB, free: 4.422 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.4589, allocations: 415.9 kB / 0.5327 GB, free: 4.238 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007472/0.4597, allocations: 105 kB / 0.5328 GB, free: 4.191 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003983/0.4636, allocations: 1.805 MB / 0.5345 GB, free: 3.059 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.464, allocations: 0.8643 MB / 0.5354 GB, free: 2.273 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004905/0.4645, allocations: 94.22 kB / 0.5355 GB, free: 2.234 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.4648, allocations: 51.72 kB / 0.5355 GB, free: 2.219 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4648, allocations: 6.625 kB / 0.5355 GB, free: 2.215 MB / 382.1 MB Notification: Performance of Templates: time 0.01542/0.4802, allocations: 8.605 MB / 0.5439 GB, free: 14.06 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & ./AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.330801096279174] Failed to read output from testmodel.py, exit status != 0: 0.4898053742945194 0.508166213 0.108260855 Calling exit ...