Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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.001204/0.001204, allocations: 106.8 kB / 16.4 MB, free: 6.504 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.002222/0.002222, allocations: 192.5 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.511/1.511, 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.1052/0.1052, allocations: 22.33 MB / 319.6 MB, free: 6.766 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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 63.89 kB / 445.3 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.119, allocations: 54.95 MB / 0.4885 GB, free: 1.621 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004768/0.1238, allocations: 3.199 MB / 0.4916 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.1258, allocations: 0.9079 MB / 0.4925 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002182/0.1261, allocations: 8 kB / 0.4925 GB, free: 13.47 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002749/0.1264, allocations: 63.34 kB / 0.4926 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004031/0.1268, allocations: 174.6 kB / 0.4927 GB, free: 13.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006414/0.1275, allocations: 191.7 kB / 0.4929 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008911/0.1284, allocations: 0.7484 MB / 0.4936 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006863/0.1291, allocations: 441.7 kB / 0.4941 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.1295, allocations: 311 kB / 0.4944 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005697/0.13, allocations: 394.7 kB / 0.4947 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001335/0.1302, allocations: 76 kB / 0.4948 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.1303, allocations: 76 kB / 0.4949 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002235/0.1306, allocations: 207.4 kB / 0.4951 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000442/0.131, allocations: 342.5 kB / 0.4954 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009332/0.1319, allocations: 0.8017 MB / 0.4962 GB, free: 9.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.132, allocations: 0 / 0.4962 GB, free: 9.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.132, allocations: 0 / 0.4962 GB, free: 9.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.132, allocations: 0 / 0.4962 GB, free: 9.68 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.002041/0.134, allocations: 0.9138 MB / 0.4971 GB, free: 8.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1341, allocations: 8.031 kB / 0.4971 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001227/0.1342, allocations: 98.7 kB / 0.4972 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.1343, allocations: 64.56 kB / 0.4972 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006397/0.135, allocations: 388.3 kB / 0.4976 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.1352, allocations: 124.8 kB / 0.4977 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.1353, allocations: 52.38 kB / 0.4978 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.1371, allocations: 0.6856 MB / 0.4985 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1371, allocations: 4 kB / 0.4985 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.728e-05/0.1372, allocations: 20 kB / 0.4985 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.1372, allocations: 12 kB / 0.4985 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.1388, allocations: 0.6089 MB / 0.4991 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005475/0.1443, allocations: 2.567 MB / 0.5016 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.1457, allocations: 0.5539 MB / 0.5021 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009959/0.1467, allocations: 409.9 kB / 0.5025 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.304e-05/0.1468, allocations: 13.12 kB / 0.5025 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.1468, allocations: 46.92 kB / 0.5026 GB, free: 2.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.565e-06/0.1468, allocations: 0 / 0.5026 GB, free: 2.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.006713/0.1535, allocations: 2.291 MB / 0.5048 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.1536, allocations: 59.84 kB / 0.5049 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004737/0.1541, allocations: 353.7 kB / 0.5052 GB, free: 184 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.155e-05/0.1542, allocations: 41.64 kB / 0.5052 GB, free: 136 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2198/0.374, allocations: 229.6 kB / 0.5055 GB, free: 20.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003481/0.3743, allocations: 203 kB / 0.5057 GB, free: 20.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/0.3746, allocations: 101 kB / 0.5058 GB, free: 20.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3747, allocations: 354 kB / 0.5061 GB, free: 20.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008792/0.3756, allocations: 376 kB / 0.5065 GB, free: 20.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008148/0.3764, allocations: 423.3 kB / 0.5069 GB, free: 20.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006455/0.3829, allocations: 2.101 MB / 0.5089 GB, free: 20.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.3829, allocations: 0 / 0.5089 GB, free: 20.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001912/0.3848, allocations: 0.8617 MB / 0.5098 GB, free: 20.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3849, allocations: 6.328 kB / 0.5098 GB, free: 20.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3849, allocations: 1.812 kB / 0.5098 GB, free: 20.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.3849, allocations: 4.938 kB / 0.5098 GB, free: 20.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005996/0.3909, allocations: 0.9137 MB / 0.5107 GB, free: 20.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.326e-05/0.391, allocations: 8.797 kB / 0.5107 GB, free: 20.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006222/0.3916, allocations: 61.47 kB / 0.5107 GB, free: 20.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.548e-05/0.3917, allocations: 25.06 kB / 0.5107 GB, free: 20.2 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: 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.0003464/0.392, allocations: 204.3 kB / 0.5109 GB, free: 20.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.065e-05/0.3921, allocations: 47.66 kB / 0.511 GB, free: 20.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.3942, allocations: 0.8463 MB / 0.5118 GB, free: 20 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.3942, allocations: 10.8 kB / 0.5118 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3942, allocations: 0 / 0.5118 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3942, allocations: 3.766 kB / 0.5118 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003623/0.3979, allocations: 1.791 MB / 0.5136 GB, free: 19.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3979, allocations: 2.219 kB / 0.5136 GB, free: 19.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00628/0.4042, allocations: 0.9041 MB / 0.5145 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.485e-05/0.4042, allocations: 3.375 kB / 0.5145 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001701/0.4044, allocations: 17.5 kB / 0.5145 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/0.4044, allocations: 7.703 kB / 0.5145 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4044, allocations: 1.938 kB / 0.5145 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002962/0.4074, allocations: 1.306 MB / 0.5158 GB, free: 19.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.4076, allocations: 121.5 kB / 0.5159 GB, free: 19.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.788e-05/0.4077, allocations: 17.16 kB / 0.5159 GB, free: 19.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.4082, allocations: 53.58 kB / 0.5159 GB, free: 19.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.4084, allocations: 76.02 kB / 0.516 GB, free: 19.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.104e-05/0.4085, allocations: 20.27 kB / 0.516 GB, free: 19.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000297/0.4088, allocations: 259.5 kB / 0.5163 GB, free: 19.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.102e-06/0.4088, allocations: 1.125 kB / 0.5163 GB, free: 19.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006323/0.4094, allocations: 147.7 kB / 0.5164 GB, free: 19.16 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: 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.003198/0.4126, allocations: 1.857 MB / 0.5182 GB, free: 18.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002173/0.4148, allocations: 0.7952 MB / 0.519 GB, free: 18.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4149, allocations: 384 / 0.519 GB, free: 18.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009101/0.4158, allocations: 433.6 kB / 0.5194 GB, free: 18.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.4164, allocations: 111.3 kB / 0.5195 GB, free: 18.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.4278, allocations: 6.076 MB / 0.5255 GB, free: 16.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.4283, allocations: 0.8535 MB / 0.5263 GB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004612/0.4288, allocations: 94.48 kB / 0.5264 GB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004305/0.4292, allocations: 199 kB / 0.5266 GB, free: 15.57 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4292, allocations: 0 / 0.5266 GB, free: 15.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03928/0.4685, allocations: 12.89 MB / 0.5392 GB, free: 9.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.228/9.696, allocations: 28.44 kB / 0.5392 GB, free: 9.074 MB / 382.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003_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_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.87802254408598] Failed to read output from testmodel.py, exit status != 0: 9.774700155016035 9.794234173 9.657821755 Calling exit ...