Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.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_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 116.2 kB / 16.37 MB, free: 6.004 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.001943/0.001943, allocations: 192.8 kB / 17.31 MB, free: 5.613 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.349/1.349, allocations: 222.9 MB / 241 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.08967/0.08967, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 63.97 kB / 382.3 MB, free: 40.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.1008, allocations: 54.96 MB / 437.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004912/0.1057, allocations: 3.201 MB / 440.4 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.1074, allocations: 0.9002 MB / 441.3 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.1076, allocations: 8 kB / 441.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000197/0.1078, allocations: 71.3 kB / 441.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003237/0.1081, allocations: 162.7 kB / 441.6 MB, free: 7.852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004827/0.1086, allocations: 191.7 kB / 441.7 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006411/0.1093, allocations: 0.7523 MB / 442.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005636/0.1098, allocations: 457.7 kB / 442.9 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002825/0.1101, allocations: 299.1 kB / 443.2 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004538/0.1106, allocations: 394.7 kB / 443.6 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.216e-05/0.1107, allocations: 76 kB / 443.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.1108, allocations: 76 kB / 443.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.111, allocations: 207.4 kB / 444 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002883/0.1113, allocations: 342.5 kB / 444.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006355/0.1119, allocations: 0.7943 MB / 445.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1119, allocations: 0 / 445.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1119, allocations: 7.938 kB / 445.1 MB, free: 4.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.112, allocations: 0 / 445.1 MB, free: 4.289 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.001765/0.1137, allocations: 0.9004 MB / 446 MB, free: 3.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.1138, allocations: 12.02 kB / 446 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.1139, allocations: 60.28 kB / 446.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005523/0.1144, allocations: 388.1 kB / 446.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.1146, allocations: 109 kB / 446.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.878e-05/0.1147, allocations: 56.38 kB / 446.6 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.1161, allocations: 0.6857 MB / 447.3 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.1162, allocations: 4 kB / 447.3 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.837e-05/0.1162, allocations: 20 kB / 447.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.1163, allocations: 12 kB / 447.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.1176, allocations: 0.6089 MB / 447.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004736/0.1224, allocations: 2.559 MB / 450.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.1235, allocations: 0.5533 MB / 451.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008203/0.1244, allocations: 413.3 kB / 451.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.266e-05/0.1244, allocations: 8.438 kB / 451.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.1245, allocations: 42.94 kB / 451.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 1.683e-06/0.1245, allocations: 0 / 451.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.005221/0.1297, allocations: 2.19 MB / 453.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.1298, allocations: 59.84 kB / 453.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.1301, allocations: 357.7 kB / 454.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.054e-05/0.1302, allocations: 37.7 kB / 454.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1303, allocations: 228.4 kB / 454.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.1305, allocations: 189.3 kB / 454.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.1307, allocations: 90.23 kB / 454.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1308, allocations: 362.8 kB / 455 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007922/0.1316, allocations: 366.7 kB / 455.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000791/0.1324, allocations: 419.1 kB / 455.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006349/0.1388, allocations: 1.992 MB / 457.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1388, allocations: 0 / 457.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001841/0.1406, allocations: 0.8496 MB / 458.6 MB, free: 6.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1407, allocations: 11.94 kB / 458.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1407, allocations: 4.156 kB / 458.6 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.1407, allocations: 4 kB / 458.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005564/0.1463, allocations: 0.909 MB / 459.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.1463, allocations: 7.938 kB / 459.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004966/0.1468, allocations: 55.92 kB / 459.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.239e-05/0.1469, allocations: 16 kB / 459.6 MB, free: 5.438 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.0003382/0.1472, allocations: 207.2 kB / 459.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.395e-05/0.1473, allocations: 43.47 kB / 459.9 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.1491, allocations: 0.8405 MB / 460.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.1491, allocations: 4 kB / 460.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1492, allocations: 0 / 460.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1492, allocations: 3.984 kB / 460.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.1523, allocations: 1.747 MB / 462.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.1524, allocations: 0 / 462.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005487/0.1579, allocations: 0.9012 MB / 463.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.299e-05/0.1579, allocations: 0 / 463.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.52e-05/0.158, allocations: 23.92 kB / 463.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.158, allocations: 0 / 463.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.158, allocations: 4 kB / 463.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002717/0.1607, allocations: 1.266 MB / 464.7 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.1609, allocations: 120.5 kB / 464.8 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.161, allocations: 12 kB / 464.8 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005057/0.1615, allocations: 59.92 kB / 464.8 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.1617, allocations: 72.33 kB / 464.9 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.965e-05/0.1617, allocations: 20.09 kB / 464.9 MB, free: 8 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002904/0.162, allocations: 259.1 kB / 465.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.162, allocations: 0 / 465.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005052/0.1626, allocations: 147.9 kB / 465.3 MB, free: 15.61 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.0001492/0.1627, allocations: 123.2 kB / 465.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.1645, allocations: 0.7827 MB / 466.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1645, allocations: 7.875 kB / 466.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008618/0.1654, allocations: 418.4 kB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005451/0.166, allocations: 105.5 kB / 466.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.1694, allocations: 1.762 MB / 468.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.1698, allocations: 0.8514 MB / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003705/0.1702, allocations: 92.33 kB / 469.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002625/0.1705, allocations: 55.41 kB / 469.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1705, allocations: 4 kB / 469.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of Templates: time 0.01298/0.1835, allocations: 8.354 MB / 477.9 MB, free: 3.074 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & ./AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)