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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 109.1 kB / 17.14 MB, free: 5.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 204 kB / 20.11 MB, free: 2.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.602/1.602, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1073/0.1073, allocations: 24.03 MB / 333.6 MB, free: 1.57 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 65.28 kB / 468.4 MB, free: 31.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1251, allocations: 59.55 MB / 0.5156 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004698/0.1298, allocations: 3.223 MB / 0.5187 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.1318, allocations: 0.9547 MB / 0.5197 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002573/0.1321, allocations: 4 kB / 0.5197 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002409/0.1323, allocations: 67.28 kB / 0.5197 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004105/0.1327, allocations: 174.7 kB / 0.5199 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006084/0.1333, allocations: 195.7 kB / 0.5201 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008395/0.1342, allocations: 0.7484 MB / 0.5208 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005906/0.1348, allocations: 377.8 kB / 0.5212 GB, free: 6.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004707/0.1352, allocations: 327 kB / 0.5215 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005279/0.1358, allocations: 398.7 kB / 0.5219 GB, free: 5.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.1359, allocations: 76 kB / 0.5219 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.136, allocations: 76 kB / 0.522 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.1362, allocations: 203.5 kB / 0.5222 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003603/0.1366, allocations: 346.5 kB / 0.5225 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008757/0.1374, allocations: 0.8017 MB / 0.5233 GB, free: 4.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1374, allocations: 0 / 0.5233 GB, free: 4.336 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1374, allocations: 4 kB / 0.5233 GB, free: 4.332 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.1375, allocations: 3.938 kB / 0.5233 GB, free: 4.328 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.002087/0.1395, allocations: 0.9116 MB / 0.5242 GB, free: 3.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1396, allocations: 12.62 kB / 0.5242 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.1397, allocations: 94.64 kB / 0.5243 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.1398, allocations: 64.56 kB / 0.5244 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005936/0.1404, allocations: 388.4 kB / 0.5248 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/0.1406, allocations: 109 kB / 0.5249 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1407, allocations: 60.36 kB / 0.5249 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.1424, allocations: 0.6856 MB / 0.5256 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.1424, allocations: 0 / 0.5256 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.749e-05/0.1425, allocations: 24 kB / 0.5256 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.1425, allocations: 12 kB / 0.5256 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.1441, allocations: 0.6011 MB / 0.5262 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005523/0.1496, allocations: 2.583 MB / 0.5287 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.1509, allocations: 0.5435 MB / 0.5293 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009486/0.1519, allocations: 396.9 kB / 0.5296 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.707e-05/0.1519, allocations: 8.438 kB / 0.5296 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.152, allocations: 39 kB / 0.5297 GB, free: 13.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.424e-06/0.152, allocations: 0 / 0.5297 GB, free: 13.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.006679/0.1587, allocations: 2.297 MB / 0.5319 GB, free: 11.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.1587, allocations: 59.84 kB / 0.532 GB, free: 11.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004542/0.1592, allocations: 353.7 kB / 0.5323 GB, free: 10.85 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.1592, allocations: 33.7 kB / 0.5324 GB, free: 10.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.1594, allocations: 236.7 kB / 0.5326 GB, free: 10.58 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.1596, allocations: 202.3 kB / 0.5328 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002106/0.1598, allocations: 94.23 kB / 0.5329 GB, free: 10.28 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.16, allocations: 358.8 kB / 0.5332 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009254/0.1609, allocations: 375 kB / 0.5336 GB, free: 9.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009521/0.1619, allocations: 427.9 kB / 0.534 GB, free: 9.109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00737/0.1693, allocations: 2.103 MB / 0.536 GB, free: 6.969 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1693, allocations: 0 / 0.536 GB, free: 6.969 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002154/0.1714, allocations: 0.8656 MB / 0.5369 GB, free: 6.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.1714, allocations: 4 kB / 0.5369 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1714, allocations: 4 kB / 0.5369 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.1715, allocations: 4 kB / 0.5369 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00646/0.1779, allocations: 0.9129 MB / 0.5378 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.296e-05/0.1779, allocations: 4 kB / 0.5378 GB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006581/0.1786, allocations: 63.86 kB / 0.5378 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-05/0.1787, allocations: 23.98 kB / 0.5379 GB, free: 5.078 MB / 398.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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (69): * Single equations (assignments): 69 * 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.0004553/0.1792, allocations: 201.9 kB / 0.5381 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.1793, allocations: 43.72 kB / 0.5381 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00224/0.1815, allocations: 0.8513 MB / 0.5389 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.1816, allocations: 4 kB / 0.5389 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1816, allocations: 0 / 0.5389 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.1816, allocations: 0 / 0.5389 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003856/0.1854, allocations: 1.819 MB / 0.5407 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.1854, allocations: 8 kB / 0.5407 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006255/0.1917, allocations: 0.9013 MB / 0.5416 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.06e-05/0.1917, allocations: 4 kB / 0.5416 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/0.1919, allocations: 19.98 kB / 0.5416 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.229e-05/0.1919, allocations: 7.938 kB / 0.5416 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/0.1919, allocations: 7.938 kB / 0.5416 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003307/0.1952, allocations: 1.292 MB / 0.5429 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.1954, allocations: 120.8 kB / 0.543 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.1955, allocations: 16 kB / 0.543 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006037/0.1961, allocations: 59.88 kB / 0.5431 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.1963, allocations: 84.28 kB / 0.5432 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.549e-05/0.1964, allocations: 12 kB / 0.5432 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003402/0.1967, allocations: 263.2 kB / 0.5434 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1967, allocations: 0 / 0.5434 GB, free: 15.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005934/0.1973, allocations: 140 kB / 0.5436 GB, free: 15.11 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (55): * Single equations (assignments): 55 * 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.003451/0.2008, allocations: 1.871 MB / 0.5454 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.2029, allocations: 0.7522 MB / 0.5461 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2029, allocations: 4.375 kB / 0.5461 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.2039, allocations: 418.2 kB / 0.5465 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.2045, allocations: 107.9 kB / 0.5466 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/0.2163, allocations: 6.078 MB / 0.5526 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005245/0.2168, allocations: 0.8592 MB / 0.5534 GB, free: 4.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004223/0.2172, allocations: 104.3 kB / 0.5535 GB, free: 4.734 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004547/0.2177, allocations: 187.4 kB / 0.5537 GB, free: 4.551 MB / 414.1 MB Notification: Performance of SimCode: time 1.432e-06/0.2177, allocations: 0 / 0.5537 GB, free: 4.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04484/0.2625, allocations: 13 MB / 0.5664 GB, free: 7.773 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.12/9.383, allocations: 9.047 kB / 0.5664 GB, free: 7.766 MB / 430.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.61002932395786] Failed to read output from testmodel.py, exit status != 0: 9.462987880920991 9.485401065 9.343582231 Calling exit ...