Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.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_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",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.007275/0.007275, allocations: 100 kB / 15.73 MB, free: 6.02 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.001433/0.001434, allocations: 189.6 kB / 16.67 MB, free: 5.938 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1248/0.1248, allocations: 22.32 MB / 312.9 MB, free: 8.848 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 64.12 kB / 436.6 MB, free: 12.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09641/0.09776, allocations: 54.95 MB / 491.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004157/0.102, allocations: 3.214 MB / 494.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.1037, allocations: 0.8963 MB / 495.6 MB, free: 1.078 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002786/0.104, allocations: 11.94 kB / 495.6 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00025/0.1043, allocations: 67.36 kB / 495.7 MB, free: 1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00047/0.1048, allocations: 174.7 kB / 495.9 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005706/0.1053, allocations: 199.6 kB / 496.1 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008304/0.1062, allocations: 0.7445 MB / 496.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005974/0.1068, allocations: 449.7 kB / 497.2 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004263/0.1072, allocations: 307.1 kB / 497.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005519/0.1078, allocations: 386.7 kB / 497.9 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.108, allocations: 76 kB / 498 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.1081, allocations: 80 kB / 498.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.1083, allocations: 207.4 kB / 498.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003962/0.1087, allocations: 350.5 kB / 498.6 MB, free: 14.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007493/0.1095, allocations: 0.7901 MB / 499.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1095, allocations: 0 / 499.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1095, allocations: 0 / 499.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.1095, allocations: 0 / 499.4 MB, free: 13.27 MB / 382.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.001984/0.1115, allocations: 0.9154 MB / 0.4886 GB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.1115, allocations: 12.03 kB / 0.4886 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.1117, allocations: 90.7 kB / 0.4887 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.1118, allocations: 68.55 kB / 0.4888 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000541/0.1123, allocations: 392.3 kB / 0.4891 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.1125, allocations: 116.9 kB / 0.4892 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.1126, allocations: 48.38 kB / 0.4893 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.1142, allocations: 0.6933 MB / 0.49 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.1142, allocations: 4 kB / 0.49 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.1143, allocations: 16 kB / 0.49 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.1143, allocations: 12 kB / 0.49 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.1158, allocations: 0.6089 MB / 0.4906 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005056/0.1208, allocations: 2.563 MB / 0.4931 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.122, allocations: 0.5456 MB / 0.4936 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009533/0.123, allocations: 417.9 kB / 0.494 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.949e-05/0.123, allocations: 9.141 kB / 0.494 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.1231, allocations: 35 kB / 0.4941 GB, free: 6.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.304e-06/0.1231, allocations: 0 / 0.4941 GB, free: 6.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005688/0.1288, allocations: 2.202 MB / 0.4962 GB, free: 4.297 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.1288, allocations: 59.84 kB / 0.4963 GB, free: 4.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000367/0.1292, allocations: 365.6 kB / 0.4966 GB, free: 3.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/0.1293, allocations: 33.7 kB / 0.4967 GB, free: 3.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1294, allocations: 224.8 kB / 0.4969 GB, free: 3.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.1296, allocations: 202.3 kB / 0.4971 GB, free: 3.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/0.1298, allocations: 94.19 kB / 0.4972 GB, free: 3.301 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1299, allocations: 358.8 kB / 0.4975 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008606/0.1308, allocations: 374.7 kB / 0.4979 GB, free: 2.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008714/0.1316, allocations: 411.1 kB / 0.4982 GB, free: 2.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00675/0.1384, allocations: 2.004 MB / 0.5002 GB, free: 132 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1384, allocations: 0 / 0.5002 GB, free: 132 kB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.1962/0.3346, allocations: 0.8504 MB / 0.501 GB, free: 22.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3347, allocations: 5.906 kB / 0.501 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3347, allocations: 2.812 kB / 0.501 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.3347, allocations: 3.75 kB / 0.501 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005761/0.3405, allocations: 0.9107 MB / 0.5019 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.3405, allocations: 2.875 kB / 0.5019 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005595/0.3411, allocations: 61.48 kB / 0.502 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.797e-05/0.3411, allocations: 20.64 kB / 0.502 GB, free: 22.06 MB / 382.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.0003417/0.3415, allocations: 199.1 kB / 0.5022 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.35e-05/0.3416, allocations: 47.58 kB / 0.5023 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.3436, allocations: 0.8353 MB / 0.5031 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.3436, allocations: 6.125 kB / 0.5031 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3436, allocations: 0 / 0.5031 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.3436, allocations: 6.531 kB / 0.5031 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003296/0.3469, allocations: 1.727 MB / 0.5048 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.3469, allocations: 1.062 kB / 0.5048 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006051/0.353, allocations: 0.9016 MB / 0.5056 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.353, allocations: 2.656 kB / 0.5056 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.808e-05/0.3531, allocations: 15.72 kB / 0.5057 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.249e-06/0.3531, allocations: 7.516 kB / 0.5057 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3531, allocations: 1.25 kB / 0.5057 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00256/0.3557, allocations: 1.271 MB / 0.5069 GB, free: 21.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.512e-05/0.3557, allocations: 120 kB / 0.507 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.996e-05/0.3558, allocations: 14.45 kB / 0.507 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005136/0.3564, allocations: 58.38 kB / 0.5071 GB, free: 21.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.3565, allocations: 77.02 kB / 0.5072 GB, free: 21.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.602e-05/0.3566, allocations: 16.19 kB / 0.5072 GB, free: 21.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000246/0.3569, allocations: 260.8 kB / 0.5074 GB, free: 21.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3569, allocations: 0 / 0.5074 GB, free: 21.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004672/0.3573, allocations: 144 kB / 0.5076 GB, free: 21.18 MB / 382.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.002762/0.3601, allocations: 1.831 MB / 0.5094 GB, free: 20.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001821/0.3619, allocations: 0.7969 MB / 0.5101 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3619, allocations: 0 / 0.5101 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009182/0.3629, allocations: 416.1 kB / 0.5105 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000586/0.3635, allocations: 117.8 kB / 0.5106 GB, free: 20.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.3739, allocations: 5.997 MB / 0.5165 GB, free: 18.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.3743, allocations: 0.8529 MB / 0.5173 GB, free: 17.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000492/0.3748, allocations: 95.48 kB / 0.5174 GB, free: 17.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003957/0.3752, allocations: 186.6 kB / 0.5176 GB, free: 17.71 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3752, allocations: 0 / 0.5176 GB, free: 17.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.4049, allocations: 12.82 MB / 0.5301 GB, free: 12.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.641/9.046, allocations: 3.781 kB / 0.5301 GB, free: 12.44 MB / 382.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload_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_control_problems_Storage_management_Storage_tank_01_load_unload.fmu > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)