Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 106.7 kB / 15.98 MB, free: 6.355 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.001138/0.001138, allocations: 192.6 kB / 16.91 MB, free: 6.188 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.18/1.18, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0846/0.0846, allocations: 22.32 MB / 313.1 MB, free: 9.137 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 65.44 kB / 380.9 MB, free: 41.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06765/0.06879, allocations: 54.96 MB / 435.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004598/0.07342, allocations: 4.538 MB / 440.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.075, allocations: 1.212 MB / 441.6 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.07519, allocations: 8 kB / 441.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001987/0.0754, allocations: 79.38 kB / 441.7 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003949/0.0758, allocations: 226.4 kB / 441.9 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005108/0.07632, allocations: 259.6 kB / 442.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008751/0.07721, allocations: 1.186 MB / 443.4 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006447/0.07786, allocations: 0.6684 MB / 444 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003899/0.07826, allocations: 486.6 kB / 444.5 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005722/0.07884, allocations: 0.6229 MB / 445.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.07898, allocations: 120 kB / 445.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.07913, allocations: 123.9 kB / 445.4 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/0.07936, allocations: 323.1 kB / 445.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004064/0.07978, allocations: 0.5289 MB / 446.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006634/0.08045, allocations: 0.9433 MB / 447.2 MB, free: 2.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.08046, allocations: 4 kB / 447.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.08046, allocations: 0 / 447.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.08048, allocations: 4 kB / 447.2 MB, free: 2.168 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002335/0.08282, allocations: 1.255 MB / 448.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.08286, allocations: 12.03 kB / 448.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.08302, allocations: 95.81 kB / 448.5 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006257/0.08365, allocations: 0.5113 MB / 449 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.0838, allocations: 159.6 kB / 449.2 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.08396, allocations: 88.36 kB / 449.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.08585, allocations: 1.007 MB / 450.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.08588, allocations: 4 kB / 450.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.542e-05/0.08597, allocations: 36 kB / 450.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.08599, allocations: 16 kB / 450.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001771/0.08777, allocations: 0.9056 MB / 451.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005934/0.09371, allocations: 3.57 MB / 454.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.09543, allocations: 0.9009 MB / 455.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.09654, allocations: 0.6327 MB / 456.4 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.687e-05/0.09662, allocations: 12.64 kB / 456.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.09666, allocations: 43.16 kB / 456.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=79): time 1.804e-06/0.09666, allocations: 0 / 456.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=83): time 0.006406/0.1031, allocations: 3.024 MB / 459.4 MB, free: 5.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.1031, allocations: 64.41 kB / 459.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/0.1036, allocations: 0.5066 MB / 460 MB, free: 5.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.597e-05/0.1037, allocations: 41.7 kB / 460 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.1039, allocations: 324.4 kB / 460.4 MB, free: 4.672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.1041, allocations: 299.6 kB / 460.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002617/0.1044, allocations: 154.5 kB / 460.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1045, allocations: 386.6 kB / 461.2 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.1056, allocations: 0.5396 MB / 461.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.1066, allocations: 0.6047 MB / 462.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009149/0.1158, allocations: 3.041 MB / 465.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1158, allocations: 8 kB / 465.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002385/0.1182, allocations: 1.266 MB / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.1182, allocations: 8 kB / 466.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1182, allocations: 0 / 466.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.1183, allocations: 8 kB / 466.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00602/0.1243, allocations: 1.038 MB / 467.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.1243, allocations: 8 kB / 467.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000677/0.125, allocations: 75.84 kB / 467.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.321e-05/0.1251, allocations: 31.98 kB / 467.8 MB, free: 13.13 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.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: 10 * 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 (112): * Single equations (assignments): 112 * 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.000395/0.1255, allocations: 253.3 kB / 468.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.1256, allocations: 71.16 kB / 468.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/0.128, allocations: 1.201 MB / 469.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.1281, allocations: 8 kB / 469.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1281, allocations: 4 kB / 469.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1281, allocations: 3.984 kB / 469.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004043/0.1321, allocations: 2.38 MB / 471.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.1322, allocations: 4 kB / 471.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006081/0.1382, allocations: 1.014 MB / 472.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.176e-06/0.1383, allocations: 4 kB / 472.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.448e-05/0.1383, allocations: 27.98 kB / 472.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.1384, allocations: 4 kB / 472.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1384, allocations: 0 / 472.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003304/0.1417, allocations: 1.821 MB / 474.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.1418, allocations: 148.3 kB / 474.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.142, allocations: 23.98 kB / 474.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006701/0.1426, allocations: 63.92 kB / 474.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.1429, allocations: 104.5 kB / 474.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.546e-05/0.1429, allocations: 23.98 kB / 475 MB, free: 5.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003526/0.1433, allocations: 366.8 kB / 475.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1433, allocations: 0 / 475.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005844/0.1439, allocations: 232 kB / 475.5 MB, free: 5.266 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * 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 simulation (85): * Single equations (assignments): 85 * 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.0001526/0.1441, allocations: 127.1 kB / 475.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002634/0.1467, allocations: 1.314 MB / 477 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1467, allocations: 0 / 477 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.1478, allocations: 0.5781 MB / 477.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007004/0.1485, allocations: 173 kB / 477.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005312/0.1538, allocations: 3.123 MB / 480.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/0.1543, allocations: 0.9621 MB / 481.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.1547, allocations: 87.33 kB / 481.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1547, allocations: 4 kB / 481.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Templates: time 0.01323/0.168, allocations: 11.34 MB / 493.2 MB, free: 3.496 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)