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/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001059/0.001059, allocations: 192 kB / 17.31 MB, free: 5.18 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.363/1.363, 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.08982/0.08982, allocations: 22.32 MB / 313.5 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 62.34 kB / 382.2 MB, free: 40.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1187, allocations: 54.96 MB / 437.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004385/0.1231, allocations: 3.18 MB / 440.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.1249, allocations: 0.9002 MB / 441.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003017/0.1252, allocations: 4 kB / 441.3 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.1256, allocations: 63.3 kB / 441.4 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005539/0.1261, allocations: 174.7 kB / 441.5 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007155/0.1268, allocations: 191.7 kB / 441.7 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009824/0.1278, allocations: 0.7445 MB / 442.5 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000802/0.1287, allocations: 441.8 kB / 442.9 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005513/0.1292, allocations: 303.1 kB / 443.2 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006804/0.1299, allocations: 398.7 kB / 443.6 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002154/0.1301, allocations: 76 kB / 443.6 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/0.1303, allocations: 76 kB / 443.7 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.1306, allocations: 211.4 kB / 443.9 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004493/0.131, allocations: 338.5 kB / 444.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007672/0.1318, allocations: 0.7865 MB / 445 MB, free: 4.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1318, allocations: 3.984 kB / 445.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1318, allocations: 4 kB / 445.1 MB, free: 4.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1318, allocations: 0 / 445.1 MB, free: 4.332 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001945/0.1338, allocations: 0.8926 MB / 445.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1339, allocations: 12.03 kB / 446 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.134, allocations: 64.28 kB / 446 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005906/0.1346, allocations: 396 kB / 446.4 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.1348, allocations: 109 kB / 446.5 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.1349, allocations: 48.38 kB / 446.6 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.1363, allocations: 0.6935 MB / 447.3 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.1363, allocations: 0 / 447.3 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/0.1364, allocations: 20 kB / 447.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1364, allocations: 8 kB / 447.3 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.1378, allocations: 0.6012 MB / 447.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005154/0.1429, allocations: 2.578 MB / 450.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.144, allocations: 0.5375 MB / 451 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008021/0.1448, allocations: 401.4 kB / 451.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.745e-05/0.1449, allocations: 12.44 kB / 451.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1449, allocations: 38.94 kB / 451.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 3.086e-06/0.1449, allocations: 0 / 451.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.005258/0.1502, allocations: 2.168 MB / 453.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.1503, allocations: 55.84 kB / 453.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004019/0.1507, allocations: 357.7 kB / 454 MB, free: 11.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.171e-05/0.1508, allocations: 33.7 kB / 454 MB, free: 11.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.1509, allocations: 228.4 kB / 454.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.1511, allocations: 189.3 kB / 454.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.1513, allocations: 94.23 kB / 454.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.1515, allocations: 354.8 kB / 454.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008137/0.1523, allocations: 362.7 kB / 455.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008129/0.1531, allocations: 411.9 kB / 455.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006321/0.1594, allocations: 1.981 MB / 457.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1595, allocations: 0 / 457.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001885/0.1613, allocations: 0.8419 MB / 458.5 MB, free: 6.566 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1614, allocations: 11.94 kB / 458.5 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1614, allocations: 0 / 458.5 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.1614, allocations: 4 kB / 458.5 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005741/0.1672, allocations: 0.9013 MB / 459.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.1672, allocations: 7.938 kB / 459.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005322/0.1677, allocations: 51.94 kB / 459.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.1678, allocations: 19.98 kB / 459.5 MB, free: 5.57 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: 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): 66 * 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.0003265/0.1681, allocations: 203.2 kB / 459.7 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.617e-05/0.1682, allocations: 47.45 kB / 459.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001883/0.1701, allocations: 0.8288 MB / 460.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1701, allocations: 7.938 kB / 460.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1702, allocations: 0 / 460.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1702, allocations: 0 / 460.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.1735, allocations: 1.732 MB / 462.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1735, allocations: 0 / 462.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005489/0.179, allocations: 0.8856 MB / 463.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.1791, allocations: 0 / 463.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.544e-05/0.1791, allocations: 19.98 kB / 463.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.1791, allocations: 4 kB / 463.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1791, allocations: 7.875 kB / 463.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.1817, allocations: 1.247 MB / 464.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.1818, allocations: 116.5 kB / 464.6 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.1819, allocations: 15.98 kB / 464.6 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.1824, allocations: 59.88 kB / 464.6 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.1826, allocations: 68.33 kB / 464.7 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-05/0.1826, allocations: 19.98 kB / 464.7 MB, free: 208 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002924/0.1829, allocations: 259.1 kB / 465 MB, free: 15.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.183, allocations: 0 / 465 MB, free: 15.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004729/0.1834, allocations: 144 kB / 465.1 MB, free: 15.81 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 51 * 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.0001327/0.1836, allocations: 119.2 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.1853, allocations: 0.7749 MB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1853, allocations: 4 kB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008338/0.1861, allocations: 410.4 kB / 466.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/0.1867, allocations: 103.6 kB / 466.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003872/0.1906, allocations: 1.844 MB / 468.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.191, allocations: 0.851 MB / 469.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000358/0.1914, allocations: 96.31 kB / 469.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.1916, allocations: 55.42 kB / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1916, allocations: 0 / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of Templates: time 0.01295/0.2046, allocations: 8.283 MB / 477.6 MB, free: 3.281 MB / 350.1 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)