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.0009092/0.0009092, allocations: 92.55 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009648/0.0009648, allocations: 174.9 kB / 16.92 MB, free: 6.652 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.3/1.3, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.204/0.204, allocations: 22.35 MB / 314.4 MB, free: 13.02 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003007, allocations: 8 kB / 383.3 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.245, allocations: 55.98 MB / 439.2 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.002311/0.2474, allocations: 3.044 MB / 442.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.2484, allocations: 0.925 MB / 443.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.2486, allocations: 7.719 kB / 443.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.2488, allocations: 47.44 kB / 443.3 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002974/0.2491, allocations: 151.8 kB / 443.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004258/0.2495, allocations: 164 kB / 443.6 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000532/0.25, allocations: 0.8019 MB / 444.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/0.2504, allocations: 391.4 kB / 444.8 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002047/0.2506, allocations: 268.8 kB / 445 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003304/0.251, allocations: 365.2 kB / 445.4 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.906e-05/0.2511, allocations: 45.72 kB / 445.4 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.074e-05/0.2511, allocations: 47.66 kB / 445.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.2513, allocations: 169.8 kB / 445.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002081/0.2515, allocations: 333.8 kB / 446 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003282/0.2518, allocations: 0.5871 MB / 446.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.2518, allocations: 0 / 446.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2518, allocations: 4 kB / 446.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2518, allocations: 3.938 kB / 446.6 MB, free: 35.05 MB / 350.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.001404/0.2532, allocations: 0.8004 MB / 447.4 MB, free: 34.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.83e-05/0.2533, allocations: 12.75 kB / 447.4 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.2534, allocations: 71.78 kB / 447.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003858/0.2538, allocations: 382.8 kB / 447.8 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.2539, allocations: 107.9 kB / 447.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.793e-05/0.254, allocations: 61.38 kB / 448 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.2554, allocations: 0.7272 MB / 448.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.2554, allocations: 0 / 448.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.124e-05/0.2555, allocations: 26.53 kB / 448.7 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.2555, allocations: 13.64 kB / 448.7 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.2569, allocations: 0.6528 MB / 449.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004282/0.2612, allocations: 2.673 MB / 452.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.2623, allocations: 0.588 MB / 452.7 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008304/0.2631, allocations: 441 kB / 453.1 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.2632, allocations: 14.38 kB / 453.1 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/0.2632, allocations: 37.62 kB / 453.1 MB, free: 31.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.744e-06/0.2632, allocations: 3.938 kB / 453.1 MB, free: 31.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005336/0.2685, allocations: 2.376 MB / 455.5 MB, free: 30.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.2686, allocations: 61.34 kB / 455.6 MB, free: 30.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003481/0.2689, allocations: 356.7 kB / 455.9 MB, free: 30.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.269, allocations: 35.95 kB / 456 MB, free: 30.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.2691, allocations: 229.8 kB / 456.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.2692, allocations: 189.7 kB / 456.4 MB, free: 30.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.952e-05/0.2693, allocations: 53.84 kB / 456.4 MB, free: 30.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.484e-05/0.2694, allocations: 355.3 kB / 456.8 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009117/0.2703, allocations: 403.8 kB / 457.2 MB, free: 29.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008952/0.2712, allocations: 448.9 kB / 457.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006951/0.2782, allocations: 2.247 MB / 459.8 MB, free: 28.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2782, allocations: 0 / 459.8 MB, free: 28.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002079/0.2803, allocations: 0.9178 MB / 460.8 MB, free: 28.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.2803, allocations: 10.62 kB / 460.8 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2803, allocations: 1.062 kB / 460.8 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.2804, allocations: 5 kB / 460.8 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006866/0.2872, allocations: 1.195 MB / 462 MB, free: 28.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.2873, allocations: 11.73 kB / 462 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005708/0.2878, allocations: 74.97 kB / 462.1 MB, free: 28.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.548e-05/0.2879, allocations: 25.88 kB / 462.1 MB, free: 28.48 MB / 350.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.0003129/0.2882, allocations: 192.7 kB / 462.3 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.346e-05/0.2883, allocations: 49.14 kB / 462.3 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002151/0.2905, allocations: 0.9056 MB / 463.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.2905, allocations: 6.188 kB / 463.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2905, allocations: 3.938 kB / 463.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2905, allocations: 6.625 kB / 463.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003364/0.2939, allocations: 1.831 MB / 465.1 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2939, allocations: 4 kB / 465.1 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006821/0.3007, allocations: 1.191 MB / 466.3 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.3007, allocations: 2.75 kB / 466.3 MB, free: 27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.089e-05/0.3008, allocations: 21.61 kB / 466.3 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3008, allocations: 6.688 kB / 466.3 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3008, allocations: 0 / 466.3 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002888/0.3037, allocations: 1.371 MB / 467.7 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.405e-05/0.3038, allocations: 123.3 kB / 467.8 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.243e-05/0.3039, allocations: 13.27 kB / 467.8 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005584/0.3045, allocations: 75.08 kB / 467.9 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.3046, allocations: 71.14 kB / 468 MB, free: 26.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.3047, allocations: 14.06 kB / 468 MB, free: 26.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.305, allocations: 260.2 kB / 468.2 MB, free: 26.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.305, allocations: 3.938 kB / 468.2 MB, free: 26.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000493/0.3055, allocations: 144.4 kB / 468.4 MB, free: 26.12 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.000119/0.3056, allocations: 118 kB / 468.5 MB, free: 26.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001918/0.3075, allocations: 0.8567 MB / 469.3 MB, free: 25.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3075, allocations: 0 / 469.3 MB, free: 25.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009466/0.3085, allocations: 459 kB / 469.8 MB, free: 25.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006153/0.3091, allocations: 96.91 kB / 469.9 MB, free: 25.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003642/0.3128, allocations: 2.191 MB / 472.1 MB, free: 24.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.3131, allocations: 0.853 MB / 472.9 MB, free: 23.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.3134, allocations: 50.78 kB / 473 MB, free: 23.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3134, allocations: 4 kB / 473 MB, free: 23.59 MB / 350.1 MB Notification: Performance of Templates: time 0.01102/0.3244, allocations: 7.344 MB / 480.3 MB, free: 19.59 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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)