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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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=20000,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=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 115.2 kB / 16.42 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 183.9 kB / 17.35 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09245/0.09245, allocations: 22.32 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.91 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08522/0.08649, allocations: 54.96 MB / 492.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003905/0.09042, allocations: 3.193 MB / 495.9 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.09204, allocations: 0.9001 MB / 496.8 MB, free: 0.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002153/0.09228, allocations: 4 kB / 496.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.09249, allocations: 71.28 kB / 496.8 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003754/0.09289, allocations: 178.7 kB / 497 MB, free: 384 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005289/0.09342, allocations: 195.7 kB / 497.2 MB, free: 188 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000766/0.0942, allocations: 0.7483 MB / 498 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005913/0.0948, allocations: 441.8 kB / 498.4 MB, free: 15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.0952, allocations: 311.1 kB / 498.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005066/0.09571, allocations: 394.7 kB / 499.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001191/0.09584, allocations: 76 kB / 499.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.09597, allocations: 80 kB / 499.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001773/0.09615, allocations: 203.4 kB / 499.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000321/0.09648, allocations: 342.5 kB / 499.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000749/0.09724, allocations: 0.7979 MB / 0.4888 GB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09725, allocations: 0 / 0.4888 GB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09726, allocations: 0 / 0.4888 GB, free: 12.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.974e-05/0.09729, allocations: 0 / 0.4888 GB, free: 12.82 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.001943/0.09923, allocations: 0.9193 MB / 0.4897 GB, free: 11.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.09928, allocations: 8.031 kB / 0.4897 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.09942, allocations: 64.56 kB / 0.4898 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.09999, allocations: 392.4 kB / 0.4902 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.1001, allocations: 116.8 kB / 0.4903 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.1003, allocations: 48.38 kB / 0.4903 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/0.1019, allocations: 0.6897 MB / 0.491 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.1019, allocations: 4 kB / 0.491 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.396e-05/0.102, allocations: 20 kB / 0.491 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.102, allocations: 16 kB / 0.491 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.1035, allocations: 0.5972 MB / 0.4916 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005032/0.1086, allocations: 2.567 MB / 0.4941 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.1098, allocations: 0.5553 MB / 0.4947 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008993/0.1107, allocations: 405.9 kB / 0.4951 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.017e-05/0.1108, allocations: 8.438 kB / 0.4951 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.1108, allocations: 42.94 kB / 0.4951 GB, free: 6.199 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.844e-06/0.1108, allocations: 0 / 0.4951 GB, free: 6.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005964/0.1168, allocations: 2.194 MB / 0.4973 GB, free: 3.949 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.1168, allocations: 59.84 kB / 0.4973 GB, free: 3.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003775/0.1172, allocations: 361.6 kB / 0.4977 GB, free: 3.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.903e-05/0.1173, allocations: 37.7 kB / 0.4977 GB, free: 3.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.1174, allocations: 229.5 kB / 0.4979 GB, free: 3.246 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.1176, allocations: 194.3 kB / 0.4981 GB, free: 3.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/0.1178, allocations: 98.19 kB / 0.4982 GB, free: 2.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1179, allocations: 354.8 kB / 0.4985 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009/0.1188, allocations: 378.7 kB / 0.4989 GB, free: 2.227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009117/0.1198, allocations: 415 kB / 0.4993 GB, free: 1.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.182/0.3018, allocations: 1.997 MB / 0.5012 GB, free: 22.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3018, allocations: 0.75 kB / 0.5012 GB, free: 22.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001947/0.3038, allocations: 0.8474 MB / 0.5021 GB, free: 22.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3038, allocations: 9.562 kB / 0.5021 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3038, allocations: 0.9375 kB / 0.5021 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.3038, allocations: 6.156 kB / 0.5021 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006306/0.3101, allocations: 0.9066 MB / 0.503 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.3102, allocations: 3.25 kB / 0.503 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005594/0.3107, allocations: 61.55 kB / 0.503 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.231e-05/0.3108, allocations: 23.61 kB / 0.5031 GB, free: 22.11 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (67): * Single equations (assignments): 67 * 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.0002955/0.3111, allocations: 199.2 kB / 0.5032 GB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.918e-05/0.3112, allocations: 49.27 kB / 0.5033 GB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.3132, allocations: 0.836 MB / 0.5041 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.3132, allocations: 2.391 kB / 0.5041 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3132, allocations: 0 / 0.5041 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.021e-05/0.3133, allocations: 121.9 kB / 0.5042 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.117e-05/0.3134, allocations: 16.03 kB / 0.5042 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000557/0.3139, allocations: 53.8 kB / 0.5043 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.3141, allocations: 79.8 kB / 0.5044 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006878/0.321, allocations: 1.487 MB / 0.5058 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00292/0.3239, allocations: 1.359 MB / 0.5071 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008999/0.3248, allocations: 389.6 kB / 0.5075 GB, free: 21.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002508/0.3251, allocations: 263.9 kB / 0.5078 GB, free: 21.39 MB / 382.1 MB Notification: Performance of Backend: time 3.51e-07/0.3251, allocations: 0 / 0.5078 GB, free: 21.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.3265, allocations: 0.5466 MB / 0.5083 GB, free: 21.33 MB / 382.1 MB Notification: Performance of SimCode: time 0.001984/0.3285, allocations: 1.813 MB / 0.5101 GB, free: 20.11 MB / 382.1 MB Notification: Performance of Templates: time 0.0154/0.344, allocations: 9.926 MB / 0.5198 GB, free: 17.35 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile (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)