Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") [/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.09928/0.09928, allocations: 21.46 MB / 36.42 MB, free: 1.18 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.0009362/0.0009365, allocations: 185.4 kB / 42.65 MB, free: 3.996 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.553/1.553, allocations: 205.4 MB / 254.1 MB, free: 15.21 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.000832/0.0008319, allocations: 80.56 kB / 307.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.0003649, allocations: 9.5 kB / 373.3 MB, free: 59.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1023, allocations: 52.95 MB / 426.2 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002552/0.1049, allocations: 2.885 MB / 429.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.1063, allocations: 0.9943 MB / 430.1 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.1064, allocations: 7.938 kB / 430.1 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.1066, allocations: 43.61 kB / 430.1 MB, free: 9.051 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002562/0.1068, allocations: 166.8 kB / 430.3 MB, free: 8.887 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.1073, allocations: 147.8 kB / 430.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005357/0.1078, allocations: 0.725 MB / 431.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004298/0.1083, allocations: 341.1 kB / 431.5 MB, free: 7.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.1085, allocations: 263.2 kB / 431.8 MB, free: 7.422 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003427/0.1089, allocations: 362.8 kB / 432.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.594e-05/0.109, allocations: 44 kB / 432.2 MB, free: 7.023 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.1092, allocations: 75.97 kB / 432.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.1093, allocations: 171.5 kB / 432.4 MB, free: 6.781 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1094, allocations: 125.5 kB / 432.5 MB, free: 6.652 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.1098, allocations: 0.5804 MB / 433.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1098, allocations: 3.938 kB / 433.1 MB, free: 6.066 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1098, allocations: 0 / 433.1 MB, free: 6.066 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1098, allocations: 0 / 433.1 MB, free: 6.066 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001497/0.1113, allocations: 0.8067 MB / 433.9 MB, free: 5.211 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.1114, allocations: 12.03 kB / 433.9 MB, free: 5.199 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.1115, allocations: 59.34 kB / 434 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004713/0.112, allocations: 379.1 kB / 434.4 MB, free: 4.727 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.1121, allocations: 108.4 kB / 434.5 MB, free: 4.609 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.101e-05/0.1122, allocations: 55.91 kB / 434.5 MB, free: 4.555 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.1136, allocations: 0.713 MB / 435.2 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.1137, allocations: 0 / 435.2 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.009e-05/0.1137, allocations: 20 kB / 435.3 MB, free: 3.816 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.1137, allocations: 12 kB / 435.3 MB, free: 3.805 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.115, allocations: 0.6402 MB / 435.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00432/0.1193, allocations: 2.672 MB / 438.6 MB, free: 432 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.1204, allocations: 0.5622 MB / 439.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009391/0.1214, allocations: 439.9 kB / 439.6 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001966/0.1216, allocations: 89.48 kB / 439.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.1216, allocations: 38.92 kB / 439.7 MB, free: 15.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=46): time 1.773e-06/0.1216, allocations: 0 / 439.7 MB, free: 15.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.005516/0.1271, allocations: 2.321 MB / 442 MB, free: 12.9 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.1272, allocations: 55.84 kB / 442.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004159/0.1276, allocations: 361.5 kB / 442.4 MB, free: 12.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.969e-05/0.1277, allocations: 33.7 kB / 442.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.1278, allocations: 216.5 kB / 442.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.128, allocations: 193.6 kB / 442.9 MB, free: 12.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.128, allocations: 8 kB / 442.9 MB, free: 12.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1282, allocations: 350.8 kB / 443.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008234/0.129, allocations: 397.7 kB / 443.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008674/0.1299, allocations: 444 kB / 444 MB, free: 10.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008188/0.1307, allocations: 376.3 kB / 444.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.1308, allocations: 3.953 kB / 444.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001833/0.1326, allocations: 0.9044 MB / 445.3 MB, free: 9.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.1326, allocations: 11.94 kB / 445.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1326, allocations: 0 / 445.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1327, allocations: 4 kB / 445.3 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00698/0.1397, allocations: 1.284 MB / 446.6 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003761/0.1401, allocations: 0.5899 MB / 447.2 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005684/0.1406, allocations: 87.89 kB / 447.3 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.1407, allocations: 19.95 kB / 447.3 MB, free: 7.516 MB / 314.7 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003824/0.1411, allocations: 203.3 kB / 447.5 MB, free: 7.309 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.838e-05/0.1412, allocations: 39.53 kB / 447.5 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.1431, allocations: 0.8719 MB / 448.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.1431, allocations: 4 kB / 448.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.1432, allocations: 0 / 448.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.1432, allocations: 7.984 kB / 448.4 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/0.1464, allocations: 1.818 MB / 450.2 MB, free: 4.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1465, allocations: 0 / 450.2 MB, free: 4.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006885/0.1533, allocations: 1.268 MB / 451.5 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/0.1534, allocations: 4 kB / 451.5 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.599e-05/0.1534, allocations: 15.98 kB / 451.5 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003365/0.1538, allocations: 0.586 MB / 452.1 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.1538, allocations: 7.984 kB / 452.1 MB, free: 2.594 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.1564, allocations: 1.343 MB / 453.5 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.1565, allocations: 116.5 kB / 453.6 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.121e-05/0.1566, allocations: 16 kB / 453.6 MB, free: 1.082 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005512/0.1572, allocations: 71.92 kB / 453.7 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.1573, allocations: 72.45 kB / 453.7 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.1574, allocations: 15.98 kB / 453.7 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00026/0.1576, allocations: 255.1 kB / 454 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1577, allocations: 4 kB / 454 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004718/0.1581, allocations: 144 kB / 454.1 MB, free: 0.5352 MB / 314.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002044/0.1583, allocations: 131 kB / 454.3 MB, free: 408 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003195/0.1615, allocations: 0.9663 MB / 455.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1616, allocations: 0 / 455.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002111/0.1637, allocations: 0.557 MB / 455.8 MB, free: 14.87 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.1643, allocations: 98.59 kB / 455.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004453/0.1688, allocations: 2.22 MB / 458.1 MB, free: 12.52 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.1693, allocations: 0.8474 MB / 459 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004433/0.1697, allocations: 96.22 kB / 459 MB, free: 11.55 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.17, allocations: 47.41 kB / 459.1 MB, free: 11.5 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.17, allocations: 3.938 kB / 459.1 MB, free: 11.5 MB / 330.7 MB Notification: Performance of Templates: time 0.01245/0.1824, allocations: 7.221 MB / 466.3 MB, free: 4.277 MB / 330.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)