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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09303/0.09303, allocations: 21.61 MB / 37.41 MB, free: 0.75 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 188.5 kB / 43.63 MB, free: 3.57 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.1 MB / 254.8 MB, free: 14.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009041/0.0009042, allocations: 104.3 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 54.42 kB / 372.3 MB, free: 59.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09037/0.0916, allocations: 51.96 MB / 424.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003943/0.09559, allocations: 3.451 MB / 427.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.09753, allocations: 1.041 MB / 428.8 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003814/0.09793, allocations: 8 kB / 428.8 MB, free: 9.977 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000274/0.09822, allocations: 51.59 kB / 428.9 MB, free: 9.926 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004323/0.09869, allocations: 143 kB / 429 MB, free: 9.785 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006301/0.09933, allocations: 167.8 kB / 429.2 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007987/0.1001, allocations: 0.807 MB / 430 MB, free: 8.812 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005977/0.1007, allocations: 389.7 kB / 430.3 MB, free: 8.434 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004511/0.1012, allocations: 283.1 kB / 430.6 MB, free: 8.156 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005608/0.1018, allocations: 378.7 kB / 431 MB, free: 7.785 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.1019, allocations: 52 kB / 431 MB, free: 7.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.1021, allocations: 79.95 kB / 431.1 MB, free: 7.656 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.1023, allocations: 183.4 kB / 431.3 MB, free: 7.477 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002374/0.1025, allocations: 314.5 kB / 431.6 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004743/0.103, allocations: 0.7749 MB / 432.4 MB, free: 6.391 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.103, allocations: 0 / 432.4 MB, free: 6.391 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.103, allocations: 0 / 432.4 MB, free: 6.391 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.103, allocations: 4 kB / 432.4 MB, free: 6.387 MB / 298.7 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.00168/0.1047, allocations: 0.8977 MB / 433.3 MB, free: 5.438 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1047, allocations: 16.03 kB / 433.3 MB, free: 5.422 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.1049, allocations: 64.19 kB / 433.4 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004255/0.1053, allocations: 380.2 kB / 433.7 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.1054, allocations: 109 kB / 433.8 MB, free: 4.828 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.171e-05/0.1055, allocations: 52.28 kB / 433.9 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.1068, allocations: 0.6936 MB / 434.6 MB, free: 4.078 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.1068, allocations: 3.984 kB / 434.6 MB, free: 4.074 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.043e-05/0.1068, allocations: 20 kB / 434.6 MB, free: 4.055 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1069, allocations: 12 kB / 434.6 MB, free: 4.043 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.1081, allocations: 0.605 MB / 435.2 MB, free: 3.438 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003955/0.1121, allocations: 2.574 MB / 437.8 MB, free: 0.793 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009852/0.1131, allocations: 0.5442 MB / 438.3 MB, free: 248 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007826/0.1139, allocations: 409.5 kB / 438.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000166/0.114, allocations: 97.38 kB / 438.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.1141, allocations: 39 kB / 438.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 3.827e-06/0.1141, allocations: 3.984 kB / 438.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=52): time 0.00537/0.1195, allocations: 2.182 MB / 441.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.1195, allocations: 59.78 kB / 441.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/0.1199, allocations: 349.7 kB / 441.5 MB, free: 13.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.1199, allocations: 41.64 kB / 441.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1201, allocations: 228.4 kB / 441.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.1202, allocations: 185.3 kB / 441.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.1204, allocations: 98.14 kB / 442 MB, free: 12.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1205, allocations: 362.8 kB / 442.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008093/0.1213, allocations: 362.3 kB / 442.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008284/0.1222, allocations: 419.1 kB / 443.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008454/0.1306, allocations: 2.169 MB / 445.3 MB, free: 9.113 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1307, allocations: 3.938 kB / 445.3 MB, free: 9.109 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001854/0.1325, allocations: 0.8497 MB / 446.1 MB, free: 8.254 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.1325, allocations: 6.5 kB / 446.2 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1326, allocations: 0 / 446.2 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.1326, allocations: 4 kB / 446.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006547/0.1391, allocations: 1.003 MB / 447.2 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003535/0.1395, allocations: 0.5977 MB / 447.8 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004883/0.14, allocations: 55.92 kB / 447.8 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.845e-05/0.1401, allocations: 23.98 kB / 447.8 MB, free: 6.543 MB / 314.7 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): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000309/0.1404, allocations: 201.8 kB / 448 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.624e-05/0.1405, allocations: 47.44 kB / 448.1 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.1424, allocations: 0.8329 MB / 448.9 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1424, allocations: 4 kB / 448.9 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1424, allocations: 0 / 448.9 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1424, allocations: 3.984 kB / 448.9 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.1455, allocations: 1.744 MB / 450.7 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1455, allocations: 0 / 450.7 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006716/0.1522, allocations: 0.9948 MB / 451.7 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.938e-06/0.1523, allocations: 4 kB / 451.7 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.135e-05/0.1523, allocations: 15.98 kB / 451.7 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003088/0.1526, allocations: 0.6015 MB / 452.3 MB, free: 2.004 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1526, allocations: 0 / 452.3 MB, free: 2.004 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01748/0.1701, allocations: 7.044 MB / 459.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.346e-05/0.1703, allocations: 116.7 kB / 459.4 MB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.454e-05/0.1703, allocations: 12 kB / 459.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.1708, allocations: 63.8 kB / 459.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.171, allocations: 72.34 kB / 459.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.997e-05/0.1711, allocations: 19.98 kB / 459.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002648/0.1713, allocations: 259.2 kB / 459.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.543e-06/0.1713, allocations: 0 / 459.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006599/0.172, allocations: 219.9 kB / 460.1 MB, free: 10.04 MB / 330.7 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): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002036/0.1722, allocations: 124 kB / 460.2 MB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003066/0.1753, allocations: 0.9115 MB / 461.1 MB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.1753, allocations: 0 / 461.1 MB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002052/0.1774, allocations: 0.5335 MB / 461.6 MB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005533/0.1779, allocations: 93.39 kB / 461.7 MB, free: 8.383 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004024/0.182, allocations: 2.287 MB / 464 MB, free: 6.051 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004645/0.1825, allocations: 0.8708 MB / 464.9 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005261/0.183, allocations: 104.3 kB / 465 MB, free: 5.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/0.1833, allocations: 67.28 kB / 465.1 MB, free: 4.98 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1833, allocations: 0 / 465.1 MB, free: 4.98 MB / 330.7 MB Notification: Performance of Templates: time 0.01686/0.2002, allocations: 10.9 MB / 475.9 MB, free: 10.07 MB / 346.7 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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)