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.001485/0.001485, allocations: 114.9 kB / 16.37 MB, free: 5.984 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.001804/0.001804, allocations: 192.6 kB / 17.31 MB, free: 5.602 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09109/0.09109, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 65.8 kB / 382.3 MB, free: 41.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09359, allocations: 54.96 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004748/0.09838, allocations: 3.201 MB / 440.4 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.09999, allocations: 0.9041 MB / 441.3 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.1002, allocations: 7.938 kB / 441.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.1004, allocations: 63.36 kB / 441.4 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003065/0.1007, allocations: 166.7 kB / 441.6 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005137/0.1012, allocations: 199.6 kB / 441.8 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006804/0.1019, allocations: 0.7446 MB / 442.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005555/0.1025, allocations: 449.7 kB / 442.9 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002943/0.1028, allocations: 311.1 kB / 443.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004636/0.1033, allocations: 390.7 kB / 443.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.1034, allocations: 76 kB / 443.7 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.1035, allocations: 76 kB / 443.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002067/0.1037, allocations: 211.4 kB / 444 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003453/0.1041, allocations: 346.5 kB / 444.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000794/0.1049, allocations: 0.7905 MB / 445.1 MB, free: 4.324 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.1049, allocations: 0 / 445.1 MB, free: 4.324 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1049, allocations: 3.938 kB / 445.1 MB, free: 4.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.1049, allocations: 4 kB / 445.1 MB, free: 4.316 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.002068/0.107, allocations: 0.8925 MB / 446 MB, free: 3.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.107, allocations: 12.03 kB / 446 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.1072, allocations: 64.28 kB / 446.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005974/0.1078, allocations: 392.1 kB / 446.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.108, allocations: 113 kB / 446.6 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.1081, allocations: 48.38 kB / 446.6 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.1095, allocations: 0.6897 MB / 447.3 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.1096, allocations: 7.938 kB / 447.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.71e-05/0.1096, allocations: 20 kB / 447.3 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.1096, allocations: 12 kB / 447.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.111, allocations: 0.6011 MB / 447.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004948/0.116, allocations: 2.559 MB / 450.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.1171, allocations: 0.5475 MB / 451.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008168/0.118, allocations: 413.2 kB / 451.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.073e-05/0.118, allocations: 9.125 kB / 451.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.1181, allocations: 38.94 kB / 451.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.274e-06/0.1181, allocations: 0 / 451.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.00539/0.1235, allocations: 2.201 MB / 453.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.1235, allocations: 55.84 kB / 453.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.1239, allocations: 361.7 kB / 454.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.689e-05/0.124, allocations: 33.7 kB / 454.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.1241, allocations: 228.4 kB / 454.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.1243, allocations: 189.3 kB / 454.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/0.1245, allocations: 94.23 kB / 454.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1247, allocations: 354.8 kB / 455 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000822/0.1255, allocations: 370.7 kB / 455.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008073/0.1263, allocations: 411.1 kB / 455.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00626/0.1326, allocations: 1.996 MB / 457.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1326, allocations: 0 / 457.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001871/0.1345, allocations: 0.8496 MB / 458.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.1345, allocations: 8.156 kB / 458.6 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.1345, allocations: 7.984 kB / 458.6 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.1346, allocations: 4 kB / 458.6 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005467/0.14, allocations: 0.9167 MB / 459.5 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/0.1401, allocations: 4 kB / 459.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005801/0.1407, allocations: 55.92 kB / 459.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-05/0.1407, allocations: 16 kB / 459.6 MB, free: 5.469 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.0003716/0.1411, allocations: 212.1 kB / 459.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.286e-05/0.1412, allocations: 47.47 kB / 459.9 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.1431, allocations: 0.8367 MB / 460.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.1431, allocations: 7.984 kB / 460.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1432, allocations: 0 / 460.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1432, allocations: 3.984 kB / 460.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003386/0.1466, allocations: 1.751 MB / 462.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1466, allocations: 0 / 462.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005628/0.1522, allocations: 0.905 MB / 463.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/0.1523, allocations: 0 / 463.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.1524, allocations: 16 kB / 463.4 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.239e-05/0.1524, allocations: 3.984 kB / 463.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1524, allocations: 4 kB / 463.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00284/0.1553, allocations: 1.266 MB / 464.7 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001663/0.1555, allocations: 116.6 kB / 464.8 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.1556, allocations: 19.94 kB / 464.8 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005437/0.1561, allocations: 51.94 kB / 464.8 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.1563, allocations: 76.31 kB / 464.9 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.191e-05/0.1564, allocations: 16 kB / 464.9 MB, free: 36 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000294/0.1567, allocations: 255.2 kB / 465.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1567, allocations: 0 / 465.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005045/0.1572, allocations: 147.9 kB / 465.3 MB, free: 15.64 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.0001721/0.1574, allocations: 123.2 kB / 465.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.1592, allocations: 0.7827 MB / 466.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.1592, allocations: 7.938 kB / 466.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008783/0.1601, allocations: 422.4 kB / 466.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.1607, allocations: 107.6 kB / 466.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003584/0.1643, allocations: 1.762 MB / 468.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.1647, allocations: 0.8592 MB / 469.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003762/0.1651, allocations: 92.33 kB / 469.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002403/0.1654, allocations: 51.41 kB / 469.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1654, allocations: 4 kB / 469.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of Templates: time 0.01363/0.179, allocations: 8.339 MB / 477.9 MB, free: 3.102 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 cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)