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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 109.7 kB / 16.41 MB, free: 6.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001313, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.09994/0.09994, allocations: 22.33 MB / 319.6 MB, free: 6.773 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 75.81 kB / 445.3 MB, free: 8.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1233, allocations: 54.95 MB / 0.4885 GB, free: 1.625 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.007064/0.1305, allocations: 3.18 MB / 0.4916 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002795/0.1333, allocations: 0.9001 MB / 0.4925 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002798/0.1336, allocations: 7.938 kB / 0.4925 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002846/0.1339, allocations: 67.3 kB / 0.4925 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006036/0.1346, allocations: 174.7 kB / 0.4927 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00091/0.1355, allocations: 191.7 kB / 0.4929 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001458/0.137, allocations: 0.7484 MB / 0.4936 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.1381, allocations: 445.7 kB / 0.494 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007755/0.1389, allocations: 303.1 kB / 0.4943 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008267/0.1398, allocations: 394.7 kB / 0.4947 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002175/0.14, allocations: 76 kB / 0.4948 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.1402, allocations: 76 kB / 0.4949 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003322/0.1406, allocations: 207.5 kB / 0.4951 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005779/0.1412, allocations: 342.5 kB / 0.4954 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.1427, allocations: 0.7979 MB / 0.4962 GB, free: 9.715 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1427, allocations: 0 / 0.4962 GB, free: 9.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1428, allocations: 4 kB / 0.4962 GB, free: 9.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.1428, allocations: 0 / 0.4962 GB, free: 9.711 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.003326/0.1461, allocations: 0.9115 MB / 0.4971 GB, free: 8.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.1462, allocations: 8.031 kB / 0.4971 GB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001873/0.1464, allocations: 94.64 kB / 0.4972 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.1466, allocations: 68.56 kB / 0.4972 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009179/0.1475, allocations: 388.4 kB / 0.4976 GB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002279/0.1478, allocations: 105 kB / 0.4977 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.148, allocations: 60.31 kB / 0.4977 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002895/0.1509, allocations: 0.6817 MB / 0.4984 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.151, allocations: 0 / 0.4984 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.1511, allocations: 20 kB / 0.4984 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.1511, allocations: 16 kB / 0.4984 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002772/0.1539, allocations: 0.605 MB / 0.499 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009266/0.1632, allocations: 2.575 MB / 0.5016 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/0.1653, allocations: 0.5386 MB / 0.5021 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.1669, allocations: 397.4 kB / 0.5025 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-05/0.167, allocations: 12.89 kB / 0.5025 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.861e-05/0.1671, allocations: 42.94 kB / 0.5025 GB, free: 3.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 3.597e-06/0.1671, allocations: 0 / 0.5025 GB, free: 3.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.01055/0.1777, allocations: 2.269 MB / 0.5047 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.1777, allocations: 55.84 kB / 0.5048 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006884/0.1784, allocations: 361.7 kB / 0.5051 GB, free: 276 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.427e-05/0.1786, allocations: 37.7 kB / 0.5052 GB, free: 232 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002441/0.1788, allocations: 228.7 kB / 0.5054 GB, free: 0 / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002866/0.4154, allocations: 196.5 kB / 0.5056 GB, free: 20.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/0.4156, allocations: 96.66 kB / 0.5057 GB, free: 20.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.766e-05/0.4157, allocations: 363.6 kB / 0.506 GB, free: 20.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008926/0.4166, allocations: 367.5 kB / 0.5064 GB, free: 20.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008388/0.4174, allocations: 429.1 kB / 0.5068 GB, free: 20.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006552/0.424, allocations: 2.08 MB / 0.5088 GB, free: 20.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.424, allocations: 0.9688 kB / 0.5088 GB, free: 20.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001956/0.426, allocations: 0.8503 MB / 0.5096 GB, free: 20.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.426, allocations: 4.547 kB / 0.5096 GB, free: 20.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.426, allocations: 3.219 kB / 0.5096 GB, free: 20.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.78e-05/0.4261, allocations: 8.969 kB / 0.5096 GB, free: 20.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006049/0.4321, allocations: 0.8985 MB / 0.5105 GB, free: 20.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.743e-05/0.4322, allocations: 8.078 kB / 0.5105 GB, free: 20.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006828/0.4329, allocations: 63.09 kB / 0.5106 GB, free: 20.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/0.433, allocations: 21.09 kB / 0.5106 GB, free: 20.13 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 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: 8 * 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 (68): * Single equations (assignments): 68 * 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.0004483/0.4334, allocations: 200.1 kB / 0.5108 GB, free: 20.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.4335, allocations: 49.69 kB / 0.5108 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001983/0.4355, allocations: 0.8242 MB / 0.5117 GB, free: 19.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.4355, allocations: 7.969 kB / 0.5117 GB, free: 19.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4356, allocations: 7.938 kB / 0.5117 GB, free: 19.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.4356, allocations: 4.391 kB / 0.5117 GB, free: 19.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003589/0.4392, allocations: 1.79 MB / 0.5134 GB, free: 19.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.4392, allocations: 0 / 0.5134 GB, free: 19.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006061/0.4453, allocations: 0.8851 MB / 0.5143 GB, free: 19.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.298e-05/0.4453, allocations: 8.312 kB / 0.5143 GB, free: 19.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.4454, allocations: 17.2 kB / 0.5143 GB, free: 19.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/0.4454, allocations: 4.094 kB / 0.5143 GB, free: 19.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4454, allocations: 0 / 0.5143 GB, free: 19.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002807/0.4482, allocations: 1.276 MB / 0.5156 GB, free: 19.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.4484, allocations: 128.8 kB / 0.5157 GB, free: 19.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.931e-05/0.4485, allocations: 14.36 kB / 0.5157 GB, free: 19.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005261/0.449, allocations: 60.83 kB / 0.5158 GB, free: 19.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.4492, allocations: 72.23 kB / 0.5158 GB, free: 19.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/0.4493, allocations: 17.25 kB / 0.5158 GB, free: 19.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002729/0.4496, allocations: 259 kB / 0.5161 GB, free: 19.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4496, allocations: 0 / 0.5161 GB, free: 19.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005298/0.4501, allocations: 148.2 kB / 0.5162 GB, free: 19.09 MB / 382.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: 0 () * 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.002941/0.4531, allocations: 1.831 MB / 0.518 GB, free: 18.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001932/0.455, allocations: 0.7861 MB / 0.5188 GB, free: 18.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.84e-06/0.455, allocations: 1.406 kB / 0.5188 GB, free: 18.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009361/0.456, allocations: 424.8 kB / 0.5192 GB, free: 18.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005951/0.4566, allocations: 111.4 kB / 0.5193 GB, free: 18.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.4678, allocations: 6.154 MB / 0.5253 GB, free: 16.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.4682, allocations: 0.8568 MB / 0.5261 GB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004502/0.4686, allocations: 98.61 kB / 0.5262 GB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003777/0.469, allocations: 187.5 kB / 0.5264 GB, free: 15.51 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.469, allocations: 0 / 0.5264 GB, free: 15.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03801/0.5071, allocations: 12.78 MB / 0.5389 GB, free: 9.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.209/9.716, allocations: 14.23 kB / 0.5389 GB, free: 9.152 MB / 382.1 MB " [Timeout remaining time 650] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.530865323962644] Failed to read output from testmodel.py, exit status != 0: 9.793458472937346 9.813984507 9.666486933 Calling exit ...