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.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,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=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.001395, allocations: 108.5 kB / 16.41 MB, free: 6.508 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.00152/0.00152, allocations: 187 kB / 17.34 MB, free: 5.742 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09495/0.09495, allocations: 22.32 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 71.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.08979, allocations: 54.95 MB / 492.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004188/0.09401, allocations: 3.186 MB / 495.9 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.09582, allocations: 0.8963 MB / 496.7 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002827/0.09613, allocations: 4 kB / 496.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.09638, allocations: 71.34 kB / 496.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004447/0.09686, allocations: 166.7 kB / 497 MB, free: 432 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006087/0.09747, allocations: 199.6 kB / 497.2 MB, free: 232 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000843/0.09833, allocations: 0.7484 MB / 497.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006339/0.09897, allocations: 437.8 kB / 498.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004405/0.09943, allocations: 311.1 kB / 498.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005654/0.1, allocations: 386.7 kB / 499 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001724/0.1002, allocations: 80 kB / 499.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.1004, allocations: 80 kB / 499.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002384/0.1006, allocations: 203.4 kB / 499.4 MB, free: 14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003879/0.101, allocations: 338.6 kB / 499.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007397/0.1018, allocations: 0.7982 MB / 0.4888 GB, free: 12.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1018, allocations: 0 / 0.4888 GB, free: 12.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1018, allocations: 0 / 0.4888 GB, free: 12.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.397e-05/0.1018, allocations: 0 / 0.4888 GB, free: 12.87 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.002059/0.1039, allocations: 0.9043 MB / 0.4897 GB, free: 11.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.1039, allocations: 8.031 kB / 0.4897 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1041, allocations: 60.28 kB / 0.4897 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005849/0.1047, allocations: 392.1 kB / 0.4901 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.1048, allocations: 109 kB / 0.4902 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.1049, allocations: 52.36 kB / 0.4903 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.1065, allocations: 0.6858 MB / 0.4909 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.1065, allocations: 4 kB / 0.4909 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.608e-05/0.1066, allocations: 20 kB / 0.491 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1066, allocations: 15.94 kB / 0.491 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.108, allocations: 0.6011 MB / 0.4916 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005196/0.1132, allocations: 2.563 MB / 0.4941 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.1143, allocations: 0.5387 MB / 0.4946 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000796/0.1152, allocations: 397.4 kB / 0.495 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.353e-05/0.1152, allocations: 8.312 kB / 0.495 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/0.1152, allocations: 38.94 kB / 0.495 GB, free: 6.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.746e-06/0.1153, allocations: 0 / 0.495 GB, free: 6.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.005339/0.1206, allocations: 2.165 MB / 0.4971 GB, free: 4.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.1207, allocations: 67.78 kB / 0.4972 GB, free: 4.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003975/0.1211, allocations: 357.6 kB / 0.4975 GB, free: 3.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/0.1211, allocations: 41.64 kB / 0.4976 GB, free: 3.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.1213, allocations: 224.5 kB / 0.4978 GB, free: 3.379 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.1214, allocations: 177.4 kB / 0.498 GB, free: 3.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/0.1216, allocations: 102.1 kB / 0.4981 GB, free: 3.098 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.1218, allocations: 354.8 kB / 0.4984 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007793/0.1225, allocations: 366.7 kB / 0.4987 GB, free: 2.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007855/0.1233, allocations: 411.9 kB / 0.4991 GB, free: 1.957 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2054/0.3288, allocations: 1.972 MB / 0.5011 GB, free: 22.63 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.3288, allocations: 2.469 kB / 0.5011 GB, free: 22.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001872/0.3307, allocations: 0.8396 MB / 0.5019 GB, free: 22.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.3307, allocations: 7.656 kB / 0.5019 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.3308, allocations: 2.25 kB / 0.5019 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.3308, allocations: 7.875 kB / 0.5019 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005255/0.3361, allocations: 0.8968 MB / 0.5028 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.939e-05/0.3361, allocations: 2.5 kB / 0.5028 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005946/0.3367, allocations: 57.69 kB / 0.5028 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.964e-05/0.3368, allocations: 19.23 kB / 0.5029 GB, free: 22.59 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: 7 * 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 (66): * Single equations (assignments): 66 * 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.0003618/0.3371, allocations: 200.5 kB / 0.503 GB, free: 22.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.3372, allocations: 50.62 kB / 0.5031 GB, free: 22.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.339, allocations: 0.816 MB / 0.5039 GB, free: 22.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.3391, allocations: 6 kB / 0.5039 GB, free: 22.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.3391, allocations: 0.5156 kB / 0.5039 GB, free: 22.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3391, allocations: 4.031 kB / 0.5039 GB, free: 22.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003129/0.3422, allocations: 1.728 MB / 0.5056 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.3423, allocations: 2.438 kB / 0.5056 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00556/0.3478, allocations: 0.882 MB / 0.5064 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.531e-05/0.3479, allocations: 2.062 kB / 0.5065 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.348, allocations: 21.33 kB / 0.5065 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.348, allocations: 3.906 kB / 0.5065 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.348, allocations: 3.969 kB / 0.5065 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/0.3506, allocations: 1.245 MB / 0.5077 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.3507, allocations: 120.6 kB / 0.5078 GB, free: 21.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.368e-05/0.3508, allocations: 16.72 kB / 0.5078 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/0.3513, allocations: 48.86 kB / 0.5079 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.3515, allocations: 77.44 kB / 0.5079 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-05/0.3516, allocations: 20.09 kB / 0.508 GB, free: 21.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002619/0.3518, allocations: 255.6 kB / 0.5082 GB, free: 21.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3518, allocations: 2.062 kB / 0.5082 GB, free: 21.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004999/0.3523, allocations: 145.1 kB / 0.5083 GB, free: 21.72 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (51): * Single equations (assignments): 51 * 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.0001382/0.3525, allocations: 116.9 kB / 0.5085 GB, free: 21.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.3542, allocations: 0.7797 MB / 0.5092 GB, free: 21.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3542, allocations: 0 / 0.5092 GB, free: 21.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008205/0.355, allocations: 407.4 kB / 0.5096 GB, free: 21.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005865/0.3556, allocations: 104 kB / 0.5097 GB, free: 21.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00401/0.3597, allocations: 1.885 MB / 0.5116 GB, free: 20.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.36, allocations: 0.8578 MB / 0.5124 GB, free: 20.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.3603, allocations: 54.38 kB / 0.5124 GB, free: 20.13 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3604, allocations: 1.5 kB / 0.5124 GB, free: 20.13 MB / 382.1 MB Notification: Performance of Templates: time 0.01117/0.3715, allocations: 7.331 MB / 0.5196 GB, free: 18 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (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_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)