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.001113/0.001113, allocations: 103.2 kB / 16.36 MB, free: 5.828 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.001087/0.001087, allocations: 195.5 kB / 17.29 MB, free: 5.484 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.291/1.291, 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.0933/0.09329, allocations: 22.33 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 61.16 kB / 382.2 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1249, allocations: 54.97 MB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.007059/0.132, allocations: 3.195 MB / 440.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.1347, allocations: 0.9041 MB / 441.3 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005916/0.1353, allocations: 4 kB / 441.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004111/0.1358, allocations: 63.36 kB / 441.4 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008677/0.1367, allocations: 170.6 kB / 441.5 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009349/0.1376, allocations: 199.6 kB / 441.7 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.139, allocations: 0.7407 MB / 442.5 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/0.1401, allocations: 445.8 kB / 442.9 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000721/0.1408, allocations: 311.1 kB / 443.2 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008758/0.1417, allocations: 394.6 kB / 443.6 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002078/0.1419, allocations: 76 kB / 443.7 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.1421, allocations: 80 kB / 443.7 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002706/0.1424, allocations: 203.4 kB / 443.9 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004638/0.1429, allocations: 338.5 kB / 444.3 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.1439, allocations: 0.7982 MB / 445.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.144, allocations: 4 kB / 445.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.144, allocations: 0 / 445.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.144, allocations: 0 / 445.1 MB, free: 4.344 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002886/0.1469, allocations: 0.9042 MB / 446 MB, free: 3.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.147, allocations: 8.031 kB / 446 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002228/0.1472, allocations: 68.27 kB / 446.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007166/0.1479, allocations: 392.1 kB / 446.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.1481, allocations: 109 kB / 446.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.1482, allocations: 48.38 kB / 446.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.1498, allocations: 0.6974 MB / 447.3 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.1498, allocations: 0 / 447.3 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.002e-05/0.1499, allocations: 20 kB / 447.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1499, allocations: 16 kB / 447.3 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.1513, allocations: 0.5972 MB / 447.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005125/0.1564, allocations: 2.563 MB / 450.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.1576, allocations: 0.5514 MB / 451 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008653/0.1585, allocations: 401.9 kB / 451.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.083e-05/0.1586, allocations: 8.438 kB / 451.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.1586, allocations: 43 kB / 451.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.955e-06/0.1587, allocations: 0 / 451.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.005731/0.1644, allocations: 2.19 MB / 453.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.1645, allocations: 59.84 kB / 453.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004606/0.1649, allocations: 361.7 kB / 454.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.229e-05/0.165, allocations: 29.7 kB / 454.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.1652, allocations: 236.4 kB / 454.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.1653, allocations: 185.3 kB / 454.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001932/0.1655, allocations: 94.23 kB / 454.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1657, allocations: 350.8 kB / 455 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008163/0.1665, allocations: 378.7 kB / 455.3 MB, free: 9.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008432/0.1674, allocations: 415 kB / 455.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00643/0.1738, allocations: 1.996 MB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1738, allocations: 0 / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001914/0.1757, allocations: 0.8535 MB / 458.6 MB, free: 6.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1758, allocations: 4 kB / 458.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.1758, allocations: 4 kB / 458.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.1758, allocations: 7.938 kB / 458.6 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005514/0.1813, allocations: 0.9091 MB / 459.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.965e-05/0.1814, allocations: 4 kB / 459.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000545/0.1819, allocations: 59.92 kB / 459.6 MB, free: 5.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.137e-05/0.182, allocations: 20 kB / 459.6 MB, free: 5.484 MB / 334.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.0003784/0.1824, allocations: 207.1 kB / 459.8 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.1825, allocations: 43.47 kB / 459.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.1845, allocations: 0.8328 MB / 460.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1845, allocations: 12 kB / 460.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1845, allocations: 0 / 460.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.1845, allocations: 3.984 kB / 460.7 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003538/0.1881, allocations: 1.747 MB / 462.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1881, allocations: 4.031 kB / 462.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005657/0.1937, allocations: 0.8934 MB / 463.3 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.518e-05/0.1938, allocations: 11.98 kB / 463.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-05/0.1939, allocations: 12 kB / 463.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.345e-06/0.1939, allocations: 7.984 kB / 463.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1939, allocations: 0 / 463.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/0.1966, allocations: 1.27 MB / 464.6 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001549/0.1967, allocations: 120.5 kB / 464.7 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-05/0.1968, allocations: 12 kB / 464.8 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005266/0.1974, allocations: 55.94 kB / 464.8 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.1976, allocations: 80.31 kB / 464.9 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.915e-05/0.1976, allocations: 12 kB / 464.9 MB, free: 56 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002944/0.1979, allocations: 255.2 kB / 465.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1979, allocations: 4 kB / 465.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000522/0.1985, allocations: 143.9 kB / 465.3 MB, free: 15.66 MB / 350.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: 1 (H.ON) * 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.0001646/0.1986, allocations: 119.2 kB / 465.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.2005, allocations: 0.7905 MB / 466.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2005, allocations: 4 kB / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008733/0.2014, allocations: 422.4 kB / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005727/0.202, allocations: 105.9 kB / 466.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003573/0.2055, allocations: 1.765 MB / 468.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.206, allocations: 0.8553 MB / 469.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003803/0.2064, allocations: 92.33 kB / 469.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.2066, allocations: 55.41 kB / 469.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2066, allocations: 0 / 469.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01453/0.2212, allocations: 8.342 MB / 477.8 MB, free: 3.117 MB / 350.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)