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: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",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.001783/0.001783, 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.002174/0.002174, allocations: 195.7 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.393/1.393, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1895/0.1895, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002369, allocations: 67.88 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3143, allocations: 54.94 MB / 435.9 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.00356/0.3179, allocations: 3.182 MB / 439.1 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.3191, allocations: 0.8981 MB / 440 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.3193, allocations: 9.719 kB / 440 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.3195, allocations: 69 kB / 440 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002626/0.3198, allocations: 165 kB / 440.2 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.3202, allocations: 193.7 kB / 440.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004826/0.3207, allocations: 0.737 MB / 441.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004472/0.3211, allocations: 444.5 kB / 441.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.3214, allocations: 309.4 kB / 441.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.3218, allocations: 392.6 kB / 442.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.955e-05/0.3219, allocations: 76.78 kB / 442.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.322, allocations: 77.38 kB / 442.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.3222, allocations: 201.1 kB / 442.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002581/0.3224, allocations: 347.4 kB / 442.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005225/0.323, allocations: 0.7902 MB / 443.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.323, allocations: 0 / 443.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.323, allocations: 0 / 443.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.323, allocations: 0 / 443.7 MB, free: 34.94 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001859/0.3249, allocations: 0.9021 MB / 444.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.3249, allocations: 8.75 kB / 444.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.3251, allocations: 93.61 kB / 444.7 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.3252, allocations: 64.28 kB / 444.8 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.3257, allocations: 391 kB / 445.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.3258, allocations: 107.9 kB / 445.3 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.958e-05/0.3259, allocations: 52.22 kB / 445.3 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.3273, allocations: 0.6845 MB / 446 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.3274, allocations: 0 / 446 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.213e-05/0.3274, allocations: 21.5 kB / 446 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3275, allocations: 12 kB / 446 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.3288, allocations: 0.5986 MB / 446.6 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004571/0.3334, allocations: 2.592 MB / 449.2 MB, free: 31.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.3344, allocations: 0.5383 MB / 449.8 MB, free: 31.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007743/0.3352, allocations: 403.4 kB / 450.2 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.384e-05/0.3352, allocations: 7.594 kB / 450.2 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.3353, allocations: 37.59 kB / 450.2 MB, free: 31.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.023e-06/0.3353, allocations: 0 / 450.2 MB, free: 31.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005036/0.3403, allocations: 2.16 MB / 452.4 MB, free: 30.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.3404, allocations: 65.66 kB / 452.4 MB, free: 30.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.3407, allocations: 359.4 kB / 452.8 MB, free: 30.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.3407, allocations: 36.73 kB / 452.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.3408, allocations: 227.1 kB / 453 MB, free: 30.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.341, allocations: 182.3 kB / 453.2 MB, free: 30.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3411, allocations: 96.56 kB / 453.3 MB, free: 29.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.368e-05/0.3412, allocations: 355.8 kB / 453.7 MB, free: 29.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007577/0.342, allocations: 368.3 kB / 454 MB, free: 29.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007801/0.3427, allocations: 412.5 kB / 454.4 MB, free: 29.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006395/0.3491, allocations: 1.977 MB / 456.4 MB, free: 28.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3492, allocations: 0 / 456.4 MB, free: 28.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001836/0.351, allocations: 0.8403 MB / 457.2 MB, free: 28.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.3511, allocations: 9.484 kB / 457.2 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.3511, allocations: 2.25 kB / 457.3 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.3511, allocations: 3.094 kB / 457.3 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006042/0.3571, allocations: 0.8996 MB / 458.2 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.3572, allocations: 5.156 kB / 458.2 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006074/0.3578, allocations: 62.39 kB / 458.2 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-05/0.3579, allocations: 20.88 kB / 458.2 MB, free: 28.38 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: 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.0003852/0.3583, allocations: 205.8 kB / 458.4 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.3584, allocations: 48.72 kB / 458.5 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.3603, allocations: 0.8106 MB / 459.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.3604, allocations: 5.062 kB / 459.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3604, allocations: 5.406 kB / 459.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3604, allocations: 2.578 kB / 459.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003392/0.3638, allocations: 1.745 MB / 461.1 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.3638, allocations: 0 / 461.1 MB, free: 26.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006195/0.37, allocations: 0.8842 MB / 461.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.285e-05/0.37, allocations: 2.75 kB / 461.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.543e-05/0.3701, allocations: 17.38 kB / 462 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.3701, allocations: 6.562 kB / 462 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3701, allocations: 4 kB / 462 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002845/0.373, allocations: 1.247 MB / 463.2 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/0.3732, allocations: 120.3 kB / 463.3 MB, free: 26.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.533e-05/0.3733, allocations: 12.92 kB / 463.3 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005279/0.3738, allocations: 54.44 kB / 463.4 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.374, allocations: 67.05 kB / 463.5 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-05/0.3741, allocations: 21.59 kB / 463.5 MB, free: 26.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003019/0.3744, allocations: 262.2 kB / 463.7 MB, free: 26.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3744, allocations: 0 / 463.7 MB, free: 26.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005668/0.375, allocations: 143.5 kB / 463.9 MB, free: 26.09 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.002911/0.3779, allocations: 1.801 MB / 465.7 MB, free: 25.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.38, allocations: 0.83 MB / 466.5 MB, free: 24.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.38, allocations: 0 / 466.5 MB, free: 24.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008772/0.3809, allocations: 406.8 kB / 466.9 MB, free: 24.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006278/0.3815, allocations: 110.6 kB / 467 MB, free: 24.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.392, allocations: 6.123 MB / 473.1 MB, free: 21.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.3923, allocations: 0.8583 MB / 474 MB, free: 20.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004758/0.3928, allocations: 95.56 kB / 474.1 MB, free: 20.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.3931, allocations: 182.6 kB / 474.3 MB, free: 20.42 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3931, allocations: 0 / 474.3 MB, free: 20.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.4228, allocations: 12.52 MB / 486.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.413/7.836, allocations: 20.89 kB / 486.8 MB, free: 10.54 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)