Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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.001686/0.001686, allocations: 104.3 kB / 19.72 MB, free: 1.926 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.002073/0.002073, allocations: 209.1 kB / 23.01 MB, free: 4.98 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.639/1.639, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1072/0.1072, allocations: 24.03 MB / 337.2 MB, free: 11.34 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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") [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.002744/0.002744, allocations: 63.91 kB / 475.1 MB, free: 5.102 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3993/0.402, allocations: 59.58 MB / 0.5222 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004254/0.4063, allocations: 2.919 MB / 0.525 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.408, allocations: 0.907 MB / 0.5259 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.4083, allocations: 3.25 kB / 0.5259 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002345/0.4085, allocations: 71.48 kB / 0.526 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003639/0.4089, allocations: 175.7 kB / 0.5261 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006487/0.4095, allocations: 197.6 kB / 0.5263 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007844/0.4103, allocations: 0.7433 MB / 0.527 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005636/0.4109, allocations: 354.5 kB / 0.5274 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004624/0.4113, allocations: 315.9 kB / 0.5277 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005288/0.4118, allocations: 357.8 kB / 0.528 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.412, allocations: 76.72 kB / 0.5281 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001582/0.4121, allocations: 77.44 kB / 0.5282 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002093/0.4123, allocations: 201 kB / 0.5284 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.4126, allocations: 299.4 kB / 0.5286 GB, free: 6.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009428/0.4136, allocations: 0.7966 MB / 0.5294 GB, free: 6.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4136, allocations: 0.5625 kB / 0.5294 GB, free: 6.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4136, allocations: 0 / 0.5294 GB, free: 6.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.4136, allocations: 1.25 kB / 0.5294 GB, free: 6.633 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002001/0.4156, allocations: 0.8388 MB / 0.5302 GB, free: 6.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.4156, allocations: 14.91 kB / 0.5303 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.4158, allocations: 66.06 kB / 0.5303 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005997/0.4164, allocations: 328 kB / 0.5306 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.4165, allocations: 112.8 kB / 0.5307 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.4166, allocations: 50.06 kB / 0.5308 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.4183, allocations: 0.7381 MB / 0.5315 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.4183, allocations: 1.188 kB / 0.5315 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.154e-05/0.4184, allocations: 20.06 kB / 0.5315 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.4184, allocations: 11.56 kB / 0.5315 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.4199, allocations: 0.5955 MB / 0.5321 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0052/0.4251, allocations: 2.285 MB / 0.5344 GB, free: 3.945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.4263, allocations: 0.5199 MB / 0.5349 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008584/0.4272, allocations: 391.9 kB / 0.5352 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.607e-05/0.4272, allocations: 10.72 kB / 0.5352 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.4272, allocations: 42.44 kB / 0.5353 GB, free: 3.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.334e-06/0.4272, allocations: 3.938 kB / 0.5353 GB, free: 3.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.006148/0.4334, allocations: 2.175 MB / 0.5374 GB, free: 2.691 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.4334, allocations: 65.83 kB / 0.5375 GB, free: 2.617 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003339/0.4338, allocations: 282.2 kB / 0.5377 GB, free: 2.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.707e-05/0.4338, allocations: 34.98 kB / 0.5378 GB, free: 2.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.4339, allocations: 238.1 kB / 0.538 GB, free: 2.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.434, allocations: 201 kB / 0.5382 GB, free: 2.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.4342, allocations: 94.61 kB / 0.5383 GB, free: 2.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.788e-05/0.4343, allocations: 348.3 kB / 0.5386 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008487/0.4352, allocations: 373.9 kB / 0.539 GB, free: 1.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008792/0.436, allocations: 425 kB / 0.5394 GB, free: 1.371 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006653/0.4427, allocations: 2.003 MB / 0.5413 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4427, allocations: 1.375 kB / 0.5413 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001811/0.4445, allocations: 0.8553 MB / 0.5422 GB, free: 212 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.4445, allocations: 5.656 kB / 0.5422 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.4445, allocations: 2.719 kB / 0.5422 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.4446, allocations: 4.312 kB / 0.5422 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005773/0.4503, allocations: 0.8979 MB / 0.5431 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.057e-05/0.4504, allocations: 9.641 kB / 0.5431 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006327/0.451, allocations: 56.03 kB / 0.5431 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.853e-05/0.451, allocations: 22.45 kB / 0.5431 GB, free: 15.85 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: 8 * 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 (68): * Single equations (assignments): 68 * 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.0004677/0.4515, allocations: 204.2 kB / 0.5433 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.4516, allocations: 37.67 kB / 0.5434 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002076/0.4537, allocations: 0.8197 MB / 0.5442 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.4537, allocations: 5.156 kB / 0.5442 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.4537, allocations: 4 kB / 0.5442 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4537, allocations: 1.156 kB / 0.5442 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003682/0.4574, allocations: 1.613 MB / 0.5458 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.4574, allocations: 1.125 kB / 0.5458 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005959/0.4634, allocations: 0.8901 MB / 0.5466 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-05/0.4634, allocations: 3.344 kB / 0.5466 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.4635, allocations: 19.02 kB / 0.5467 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.4635, allocations: 2.219 kB / 0.5467 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.4635, allocations: 5.828 kB / 0.5467 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00294/0.4664, allocations: 1.275 MB / 0.5479 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.4666, allocations: 34.61 kB / 0.5479 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.694e-05/0.4666, allocations: 16.77 kB / 0.548 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.4672, allocations: 47.34 kB / 0.548 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.4673, allocations: 80.95 kB / 0.5481 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.787e-05/0.4674, allocations: 19.64 kB / 0.5481 GB, free: 12.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002445/0.4676, allocations: 209.1 kB / 0.5483 GB, free: 12.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4676, allocations: 0 / 0.5483 GB, free: 12.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006066/0.4682, allocations: 143.8 kB / 0.5484 GB, free: 12.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001663/0.4684, allocations: 115.1 kB / 0.5485 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.4703, allocations: 0.742 MB / 0.5493 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.4703, allocations: 1.312 kB / 0.5493 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009462/0.4713, allocations: 412.3 kB / 0.5497 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005447/0.4718, allocations: 77.23 kB / 0.5497 GB, free: 12.1 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004629/0.4765, allocations: 1.881 MB / 0.5516 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.4768, allocations: 260 kB / 0.5518 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004775/0.4773, allocations: 87.17 kB / 0.5519 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.4775, allocations: 46.86 kB / 0.552 GB, free: 10.66 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4775, allocations: 0 / 0.552 GB, free: 10.66 MB / 398.1 MB Notification: Performance of Templates: time 0.01599/0.4935, allocations: 8.481 MB / 0.5602 GB, free: 3.84 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001 -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_001.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.637358212843537] Failed to read output from testmodel.py, exit status != 0: 0.5044460669159889 0.517123389 0.1003068 Calling exit ...