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.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.00141/0.00141, allocations: 104.3 kB / 16.45 MB, free: 6.512 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.001366/0.001366, allocations: 198.8 kB / 19.41 MB, free: 3.668 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.433/1.433, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.1006/0.1006, allocations: 22.7 MB / 325.4 MB, free: 3.527 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_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: Performance of FrontEnd - loaded program: time 0.002767/0.002767, allocations: 63.89 kB / 457.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.1722, allocations: 58.02 MB / 0.5036 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.005094/0.1773, allocations: 3.209 MB / 0.5067 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0026/0.1799, allocations: 0.9118 MB / 0.5076 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000486/0.1804, allocations: 7.938 kB / 0.5076 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003144/0.1807, allocations: 67.28 kB / 0.5077 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006241/0.1813, allocations: 178.7 kB / 0.5079 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.182, allocations: 199.7 kB / 0.508 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.1831, allocations: 0.7444 MB / 0.5088 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008186/0.1839, allocations: 377.8 kB / 0.5091 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004806/0.1844, allocations: 319 kB / 0.5094 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005844/0.185, allocations: 390.7 kB / 0.5098 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.1851, allocations: 83.94 kB / 0.5099 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.1852, allocations: 76 kB / 0.51 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.1854, allocations: 207.5 kB / 0.5102 GB, free: 372 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003785/0.1858, allocations: 338.5 kB / 0.5105 GB, free: 32 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2738/0.4596, allocations: 0.7902 MB / 0.5113 GB, free: 12.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4596, allocations: 0.75 kB / 0.5113 GB, free: 12.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4596, allocations: 0.625 kB / 0.5113 GB, free: 12.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.4596, allocations: 1.344 kB / 0.5113 GB, free: 12.01 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.002087/0.4617, allocations: 0.9132 MB / 0.5121 GB, free: 11.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.4618, allocations: 9.188 kB / 0.5122 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.462, allocations: 69.72 kB / 0.5122 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005448/0.4625, allocations: 393.8 kB / 0.5126 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001596/0.4627, allocations: 114.3 kB / 0.5127 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.4628, allocations: 51.84 kB / 0.5128 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.4644, allocations: 0.6949 MB / 0.5134 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.4644, allocations: 0 / 0.5134 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.498e-05/0.4645, allocations: 18.88 kB / 0.5135 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.4645, allocations: 14.34 kB / 0.5135 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.4659, allocations: 0.6012 MB / 0.5141 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005277/0.4712, allocations: 2.568 MB / 0.5166 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.4725, allocations: 0.5407 MB / 0.5171 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009274/0.4734, allocations: 398.1 kB / 0.5175 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.841e-05/0.4735, allocations: 7.859 kB / 0.5175 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.4735, allocations: 39.5 kB / 0.5175 GB, free: 10.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 3.487e-06/0.4735, allocations: 2.312 kB / 0.5175 GB, free: 10.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.007008/0.4805, allocations: 2.296 MB / 0.5198 GB, free: 9.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.4806, allocations: 65.25 kB / 0.5198 GB, free: 9.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005132/0.4811, allocations: 352.7 kB / 0.5202 GB, free: 9.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.4812, allocations: 36.45 kB / 0.5202 GB, free: 9.188 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.4813, allocations: 232.8 kB / 0.5204 GB, free: 9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000188/0.4815, allocations: 204.5 kB / 0.5206 GB, free: 8.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.4817, allocations: 94.12 kB / 0.5207 GB, free: 8.793 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4819, allocations: 360.2 kB / 0.521 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009337/0.4828, allocations: 378.3 kB / 0.5214 GB, free: 8.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009903/0.4838, allocations: 422 kB / 0.5218 GB, free: 8.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007269/0.491, allocations: 2.099 MB / 0.5239 GB, free: 7.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.4911, allocations: 2.156 kB / 0.5239 GB, free: 7.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002158/0.4932, allocations: 0.8704 MB / 0.5247 GB, free: 7.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.4932, allocations: 8.219 kB / 0.5247 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.4932, allocations: 2.312 kB / 0.5247 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.4933, allocations: 3.531 kB / 0.5247 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006278/0.4996, allocations: 0.9156 MB / 0.5256 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.701e-05/0.4996, allocations: 5.859 kB / 0.5256 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000765/0.5003, allocations: 54.19 kB / 0.5257 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.886e-05/0.5004, allocations: 23.53 kB / 0.5257 GB, free: 7.129 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.0004464/0.5009, allocations: 202.9 kB / 0.5259 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.501, allocations: 49.39 kB / 0.5259 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/0.5031, allocations: 0.8437 MB / 0.5268 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.5032, allocations: 5.906 kB / 0.5268 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.5032, allocations: 0.6094 kB / 0.5268 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.5032, allocations: 3.922 kB / 0.5268 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003878/0.5071, allocations: 1.814 MB / 0.5285 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.952e-06/0.5071, allocations: 1.188 kB / 0.5285 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006548/0.5136, allocations: 0.9072 MB / 0.5294 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.852e-05/0.5136, allocations: 3 kB / 0.5294 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.82e-05/0.5137, allocations: 16.55 kB / 0.5294 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.666e-06/0.5137, allocations: 3.281 kB / 0.5295 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.5137, allocations: 9.875 kB / 0.5295 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/0.5167, allocations: 1.299 MB / 0.5307 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.5169, allocations: 118.7 kB / 0.5308 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.517, allocations: 15.08 kB / 0.5309 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006126/0.5177, allocations: 58.36 kB / 0.5309 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.5179, allocations: 83.39 kB / 0.531 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.154e-05/0.5179, allocations: 15.22 kB / 0.531 GB, free: 4.938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003471/0.5183, allocations: 262 kB / 0.5313 GB, free: 4.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5183, allocations: 0 / 0.5313 GB, free: 4.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007182/0.519, allocations: 141.9 kB / 0.5314 GB, free: 4.785 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.0001995/0.5192, allocations: 127.1 kB / 0.5315 GB, free: 4.684 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002109/0.5213, allocations: 0.7579 MB / 0.5323 GB, free: 4.453 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.5213, allocations: 0 / 0.5323 GB, free: 4.453 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009804/0.5223, allocations: 417.3 kB / 0.5327 GB, free: 4.266 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006935/0.523, allocations: 104.2 kB / 0.5328 GB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.5265, allocations: 1.806 MB / 0.5345 GB, free: 3.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.5268, allocations: 0.8608 MB / 0.5354 GB, free: 2.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004313/0.5272, allocations: 98.8 kB / 0.5354 GB, free: 2.262 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002725/0.5275, allocations: 50.55 kB / 0.5355 GB, free: 2.246 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5275, allocations: 0 / 0.5355 GB, free: 2.246 MB / 382.1 MB Notification: Performance of Templates: time 0.01645/0.544, allocations: 8.598 MB / 0.5439 GB, free: 14.09 MB / 398.1 MB " [Timeout remaining time 659] 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_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: 5.184834227897227] Failed to read output from testmodel.py, exit status != 0: 0.5543038989417255 0.5661046009999999 0.103457929 Calling exit ...