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.001176/0.001176, allocations: 103.2 kB / 16.36 MB, free: 6.336 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.00125/0.00125, allocations: 198 kB / 17.3 MB, free: 5.883 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09114/0.09114, allocations: 22.33 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002274/0.002274, allocations: 61.25 kB / 382.2 MB, free: 41.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08861, allocations: 54.96 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004491/0.09314, allocations: 3.181 MB / 440.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.0951, allocations: 0.8963 MB / 441.3 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003879/0.09551, allocations: 4 kB / 441.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002981/0.09589, allocations: 67.3 kB / 441.3 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006525/0.09656, allocations: 166.7 kB / 441.5 MB, free: 7.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006753/0.09725, allocations: 199.6 kB / 441.7 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000874/0.09813, allocations: 0.7445 MB / 442.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007128/0.09886, allocations: 441.8 kB / 442.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004976/0.09937, allocations: 307.1 kB / 443.2 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006103/0.09999, allocations: 390.6 kB / 443.6 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001991/0.1002, allocations: 87.98 kB / 443.6 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001978/0.1004, allocations: 76 kB / 443.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002453/0.1007, allocations: 199.5 kB / 443.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004317/0.1011, allocations: 338.5 kB / 444.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008067/0.1019, allocations: 0.7943 MB / 445 MB, free: 4.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1019, allocations: 0 / 445 MB, free: 4.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1019, allocations: 0 / 445 MB, free: 4.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.218e-05/0.102, allocations: 0 / 445 MB, free: 4.391 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.002076/0.104, allocations: 0.9004 MB / 445.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.1041, allocations: 8.031 kB / 445.9 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.1042, allocations: 64.28 kB / 446 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006353/0.1049, allocations: 400 kB / 446.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.105, allocations: 108.9 kB / 446.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.1052, allocations: 52.38 kB / 446.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.1068, allocations: 0.6857 MB / 447.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.1068, allocations: 0 / 447.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.339e-05/0.1069, allocations: 20 kB / 447.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.1069, allocations: 12 kB / 447.3 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.1084, allocations: 0.5972 MB / 447.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005359/0.1137, allocations: 2.571 MB / 450.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.1149, allocations: 0.5386 MB / 451 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008191/0.1157, allocations: 405 kB / 451.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.246e-05/0.1158, allocations: 8.922 kB / 451.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.1158, allocations: 38.97 kB / 451.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.334e-06/0.1158, allocations: 0 / 451.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.005432/0.1213, allocations: 2.165 MB / 453.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.1213, allocations: 55.84 kB / 453.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003997/0.1217, allocations: 365.6 kB / 454 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/0.1218, allocations: 33.7 kB / 454 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.1219, allocations: 228.4 kB / 454.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.1221, allocations: 181.3 kB / 454.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.1223, allocations: 98.22 kB / 454.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1224, allocations: 354.8 kB / 454.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008037/0.1233, allocations: 362.7 kB / 455.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008197/0.1241, allocations: 419.9 kB / 455.6 MB, free: 9.465 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006352/0.1304, allocations: 1.978 MB / 457.6 MB, free: 7.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.1305, allocations: 0 / 457.6 MB, free: 7.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001798/0.1323, allocations: 0.8418 MB / 458.5 MB, free: 6.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1323, allocations: 6.688 kB / 458.5 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.1323, allocations: 8 kB / 458.5 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1323, allocations: 4 kB / 458.5 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005428/0.1378, allocations: 0.8933 MB / 459.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.1378, allocations: 8 kB / 459.4 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005223/0.1383, allocations: 55.94 kB / 459.4 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.572e-05/0.1384, allocations: 19.98 kB / 459.5 MB, free: 5.625 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.0003214/0.1387, allocations: 207.2 kB / 459.7 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.1388, allocations: 47.38 kB / 459.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001854/0.1407, allocations: 0.8133 MB / 460.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.1407, allocations: 12 kB / 460.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1407, allocations: 0 / 460.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1407, allocations: 0 / 460.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003283/0.144, allocations: 1.74 MB / 462.3 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.144, allocations: 4.031 kB / 462.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005441/0.1495, allocations: 0.8816 MB / 463.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.1495, allocations: 4 kB / 463.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.34e-05/0.1496, allocations: 15.98 kB / 463.2 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.1496, allocations: 4 kB / 463.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.1496, allocations: 0 / 463.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.1522, allocations: 1.254 MB / 464.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.1523, allocations: 120.5 kB / 464.5 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.1524, allocations: 19.98 kB / 464.6 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005036/0.1529, allocations: 47.94 kB / 464.6 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.1531, allocations: 80.36 kB / 464.7 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.068e-05/0.1532, allocations: 19.98 kB / 464.7 MB, free: 256 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002836/0.1535, allocations: 255.4 kB / 465 MB, free: 16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1535, allocations: 0 / 465 MB, free: 16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004989/0.154, allocations: 147.9 kB / 465.1 MB, free: 15.85 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.0001486/0.1541, allocations: 111.2 kB / 465.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.1559, allocations: 0.7788 MB / 466 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1559, allocations: 0 / 466 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008213/0.1567, allocations: 410.2 kB / 466.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005601/0.1573, allocations: 108.2 kB / 466.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003973/0.1613, allocations: 1.848 MB / 468.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.1617, allocations: 0.8549 MB / 469.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003495/0.162, allocations: 96.31 kB / 469.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.1623, allocations: 47.42 kB / 469.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1623, allocations: 3.938 kB / 469.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of Templates: time 0.01478/0.1771, allocations: 8.277 MB / 477.6 MB, free: 3.328 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 gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)