Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 108 kB / 15.6 MB, free: 132 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.001264/0.001264, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.372/1.372, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2057/0.2057, allocations: 22.34 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 63.89 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2528, allocations: 54.94 MB / 435.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004134/0.257, allocations: 4.197 MB / 440.1 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.2588, allocations: 1.172 MB / 441.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002356/0.259, allocations: 6 kB / 441.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.2593, allocations: 113.8 kB / 441.4 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004348/0.2598, allocations: 265.8 kB / 441.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006829/0.2604, allocations: 303.8 kB / 441.9 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008843/0.2613, allocations: 1.18 MB / 443.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007376/0.2621, allocations: 0.6775 MB / 443.8 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004357/0.2625, allocations: 483.3 kB / 444.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005561/0.2631, allocations: 0.604 MB / 444.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.2632, allocations: 119.4 kB / 445 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.2634, allocations: 118.7 kB / 445.1 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.2636, allocations: 330.1 kB / 445.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003524/0.264, allocations: 0.522 MB / 445.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007312/0.2647, allocations: 1.238 MB / 447.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2647, allocations: 0 / 447.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2647, allocations: 0 / 447.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.068e-05/0.2648, allocations: 0 / 447.2 MB, free: 33.07 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002451/0.2672, allocations: 1.256 MB / 448.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.2673, allocations: 10.97 kB / 448.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.2674, allocations: 139 kB / 448.6 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.2676, allocations: 93.94 kB / 448.7 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006054/0.2682, allocations: 0.5151 MB / 449.2 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.2684, allocations: 164 kB / 449.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.2685, allocations: 83.44 kB / 449.4 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.2704, allocations: 1.011 MB / 450.4 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.2704, allocations: 0 / 450.4 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.741e-05/0.2705, allocations: 31.88 kB / 450.5 MB, free: 31.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.2705, allocations: 20.44 kB / 450.5 MB, free: 31.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001782/0.2723, allocations: 0.9042 MB / 451.4 MB, free: 30.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006278/0.2786, allocations: 3.567 MB / 455 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.2804, allocations: 0.903 MB / 455.9 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.2817, allocations: 0.6209 MB / 456.5 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.323e-05/0.2817, allocations: 15.88 kB / 456.5 MB, free: 28.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.2818, allocations: 51.12 kB / 456.5 MB, free: 28.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.895e-06/0.2818, allocations: 0 / 456.5 MB, free: 28.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007325/0.2891, allocations: 3.016 MB / 459.6 MB, free: 27.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.2892, allocations: 60.72 kB / 459.6 MB, free: 27.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005889/0.2898, allocations: 0.5087 MB / 460.1 MB, free: 26.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.486e-05/0.2899, allocations: 41.11 kB / 460.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.29, allocations: 324.9 kB / 460.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.2902, allocations: 295.6 kB / 460.8 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.2905, allocations: 158.3 kB / 460.9 MB, free: 26.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.573e-05/0.2906, allocations: 387 kB / 461.3 MB, free: 25.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.2918, allocations: 0.5332 MB / 461.8 MB, free: 25.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.2929, allocations: 0.6122 MB / 462.5 MB, free: 25.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.3035, allocations: 3.046 MB / 465.5 MB, free: 24.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3035, allocations: 1.062 kB / 465.5 MB, free: 24.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002736/0.3063, allocations: 1.279 MB / 466.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3063, allocations: 7.422 kB / 466.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.3063, allocations: 1.781 kB / 466.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.3064, allocations: 7 kB / 466.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006983/0.3133, allocations: 1.029 MB / 467.8 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.175e-05/0.3134, allocations: 6.453 kB / 467.8 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009763/0.3144, allocations: 68.77 kB / 467.9 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.49e-05/0.3145, allocations: 46.72 kB / 467.9 MB, free: 24.05 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.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: 10 * 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 (112): * Single equations (assignments): 112 * 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.0005067/0.315, allocations: 255 kB / 468.2 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001471/0.3152, allocations: 68.56 kB / 468.3 MB, free: 23.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002712/0.3179, allocations: 1.198 MB / 469.5 MB, free: 23.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.3179, allocations: 8 kB / 469.5 MB, free: 23.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.3179, allocations: 4 kB / 469.5 MB, free: 23.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.3179, allocations: 5.641 kB / 469.5 MB, free: 23.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004762/0.3227, allocations: 2.377 MB / 471.9 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3227, allocations: 5.125 kB / 471.9 MB, free: 22.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007084/0.3298, allocations: 1.006 MB / 472.9 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.3298, allocations: 3.625 kB / 472.9 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/0.33, allocations: 27.19 kB / 472.9 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.386e-06/0.33, allocations: 6.266 kB / 472.9 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.33, allocations: 5.469 kB / 472.9 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003685/0.3337, allocations: 1.81 MB / 474.7 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001896/0.3339, allocations: 148.2 kB / 474.9 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.334, allocations: 23.25 kB / 474.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007503/0.3348, allocations: 66.75 kB / 474.9 MB, free: 21.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002409/0.3351, allocations: 107.5 kB / 475.1 MB, free: 21.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.941e-05/0.3351, allocations: 24.95 kB / 475.1 MB, free: 21.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003808/0.3355, allocations: 366.8 kB / 475.4 MB, free: 20.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3355, allocations: 0 / 475.4 MB, free: 20.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007042/0.3362, allocations: 230.9 kB / 475.7 MB, free: 20.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * 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 simulation (85): * Single equations (assignments): 85 * 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.003592/0.3398, allocations: 2.395 MB / 478.1 MB, free: 19.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002674/0.3425, allocations: 1.302 MB / 479.4 MB, free: 17.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3425, allocations: 0 / 479.4 MB, free: 17.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.3436, allocations: 0.582 MB / 479.9 MB, free: 17.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007641/0.3444, allocations: 170.1 kB / 480.1 MB, free: 17.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.3572, allocations: 9.042 MB / 489.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.3575, allocations: 0.9582 MB / 490.1 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006523/0.3582, allocations: 169.8 kB / 490.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004784/0.3587, allocations: 303.3 kB / 490.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3587, allocations: 4 kB / 490.6 MB, free: 6.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/0.3957, allocations: 18.84 MB / 0.4975 GB, free: 3.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/8.074, allocations: 9 kB / 0.4975 GB, free: 3.809 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1)