Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 102.1 kB / 16.35 MB, free: 5.875 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.001854/0.001854, allocations: 199.2 kB / 17.3 MB, free: 5.516 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09194/0.09194, allocations: 22.32 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 65.11 kB / 382.2 MB, free: 40.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1224, allocations: 54.96 MB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004624/0.1271, allocations: 3.193 MB / 440.4 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.1289, allocations: 0.9002 MB / 441.3 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003069/0.1292, allocations: 4 kB / 441.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.1296, allocations: 71.28 kB / 441.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004724/0.1301, allocations: 166.7 kB / 441.5 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006303/0.1307, allocations: 195.7 kB / 441.7 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008012/0.1315, allocations: 0.7484 MB / 442.5 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006655/0.1322, allocations: 441.8 kB / 442.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004012/0.1326, allocations: 307.1 kB / 443.2 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004394/0.133, allocations: 398.6 kB / 443.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.83e-05/0.1332, allocations: 79.94 kB / 443.7 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.1333, allocations: 80 kB / 443.7 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.1335, allocations: 211.4 kB / 443.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000314/0.1338, allocations: 330.6 kB / 444.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006931/0.1345, allocations: 0.7982 MB / 445.1 MB, free: 4.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1345, allocations: 0 / 445.1 MB, free: 4.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1345, allocations: 0 / 445.1 MB, free: 4.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1345, allocations: 0 / 445.1 MB, free: 4.34 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.00171/0.1362, allocations: 0.9081 MB / 446 MB, free: 3.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.1363, allocations: 8.031 kB / 446 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.1364, allocations: 64.28 kB / 446 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005293/0.1369, allocations: 392.1 kB / 446.4 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.1371, allocations: 113 kB / 446.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.857e-05/0.1372, allocations: 52.36 kB / 446.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.1386, allocations: 0.6897 MB / 447.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1386, allocations: 0 / 447.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.566e-05/0.1387, allocations: 20 kB / 447.3 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1387, allocations: 12 kB / 447.3 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.1401, allocations: 0.605 MB / 447.9 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004594/0.1447, allocations: 2.559 MB / 450.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.1458, allocations: 0.5538 MB / 451 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008228/0.1466, allocations: 409.9 kB / 451.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.109e-05/0.1467, allocations: 8.5 kB / 451.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1467, allocations: 42.98 kB / 451.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 1.994e-06/0.1467, allocations: 0 / 451.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.005091/0.1518, allocations: 2.193 MB / 453.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.1519, allocations: 59.78 kB / 453.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003261/0.1522, allocations: 353.7 kB / 454.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.1522, allocations: 37.7 kB / 454.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.1524, allocations: 232.4 kB / 454.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.1525, allocations: 181.3 kB / 454.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.1527, allocations: 94.23 kB / 454.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1528, allocations: 358.8 kB / 455 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007592/0.1536, allocations: 374.7 kB / 455.3 MB, free: 9.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000781/0.1544, allocations: 407.1 kB / 455.7 MB, free: 9.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006006/0.1604, allocations: 2.004 MB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1605, allocations: 4 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001766/0.1622, allocations: 0.8498 MB / 458.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.1623, allocations: 8 kB / 458.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1623, allocations: 0 / 458.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.1623, allocations: 4 kB / 458.6 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005122/0.1674, allocations: 0.9128 MB / 459.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.1675, allocations: 7.938 kB / 459.5 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004925/0.168, allocations: 51.94 kB / 459.6 MB, free: 5.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.168, allocations: 23.98 kB / 459.6 MB, free: 5.48 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.0003312/0.1684, allocations: 201.4 kB / 459.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.181e-05/0.1684, allocations: 47.47 kB / 459.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/0.1703, allocations: 0.8366 MB / 460.7 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.1703, allocations: 4 kB / 460.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.1703, allocations: 0 / 460.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.1704, allocations: 4 kB / 460.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003166/0.1735, allocations: 1.751 MB / 462.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1735, allocations: 0 / 462.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005576/0.1791, allocations: 0.9012 MB / 463.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.41e-05/0.1792, allocations: 4 kB / 463.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.143e-05/0.1793, allocations: 11.98 kB / 463.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.668e-06/0.1793, allocations: 7.938 kB / 463.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.1793, allocations: 0 / 463.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.1818, allocations: 1.27 MB / 464.6 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.182, allocations: 124.5 kB / 464.7 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.182, allocations: 15.98 kB / 464.8 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004867/0.1825, allocations: 55.94 kB / 464.8 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.1827, allocations: 72.33 kB / 464.9 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.69e-05/0.1828, allocations: 19.98 kB / 464.9 MB, free: 52 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002693/0.183, allocations: 255.3 kB / 465.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1831, allocations: 3.938 kB / 465.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004542/0.1835, allocations: 151.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.0001335/0.1837, allocations: 119.2 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.1853, allocations: 0.7827 MB / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1853, allocations: 0 / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008026/0.1861, allocations: 422.5 kB / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005381/0.1867, allocations: 109.5 kB / 466.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.1901, allocations: 1.758 MB / 468.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.1905, allocations: 0.8514 MB / 469.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003528/0.1909, allocations: 92.33 kB / 469.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.1911, allocations: 59.41 kB / 469.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1912, allocations: 0 / 469.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01278/0.2039, allocations: 8.35 MB / 477.8 MB, free: 3.113 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)