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.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.002111/0.002111, allocations: 108.8 kB / 17.15 MB, free: 6.02 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.002773/0.002773, allocations: 208.5 kB / 20.11 MB, free: 3.062 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.538/1.538, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.105/0.105, allocations: 24.03 MB / 333.6 MB, free: 1.562 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld 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: 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.002075/0.002075, allocations: 65 kB / 469.1 MB, free: 31.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1142, allocations: 59.55 MB / 0.5163 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004636/0.1189, allocations: 3.214 MB / 0.5194 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.1207, allocations: 0.9469 MB / 0.5203 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.1209, allocations: 7.938 kB / 0.5203 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.1211, allocations: 71.34 kB / 0.5204 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003519/0.1214, allocations: 174.7 kB / 0.5206 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005485/0.122, allocations: 195.6 kB / 0.5208 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008035/0.1228, allocations: 0.7446 MB / 0.5215 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005462/0.1233, allocations: 385.7 kB / 0.5219 GB, free: 5.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004208/0.1237, allocations: 323 kB / 0.5222 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004978/0.1242, allocations: 394.7 kB / 0.5225 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1244, allocations: 80 kB / 0.5226 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.1245, allocations: 80 kB / 0.5227 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.1247, allocations: 199.4 kB / 0.5229 GB, free: 4.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003319/0.125, allocations: 346.5 kB / 0.5232 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008318/0.1258, allocations: 0.7939 MB / 0.524 GB, free: 3.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1258, allocations: 0 / 0.524 GB, free: 3.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.822e-06/0.1258, allocations: 7.922 kB / 0.524 GB, free: 3.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.1259, allocations: 0 / 0.524 GB, free: 3.625 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.002077/0.1279, allocations: 0.9116 MB / 0.5249 GB, free: 2.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.128, allocations: 12.62 kB / 0.5249 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.1281, allocations: 94.7 kB / 0.525 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.1283, allocations: 68.56 kB / 0.5251 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005852/0.1288, allocations: 396.3 kB / 0.5254 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/0.129, allocations: 105 kB / 0.5255 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.1291, allocations: 56.36 kB / 0.5256 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.1307, allocations: 0.6856 MB / 0.5263 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.1307, allocations: 0 / 0.5263 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.1308, allocations: 20 kB / 0.5263 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.1308, allocations: 12 kB / 0.5263 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.1324, allocations: 0.605 MB / 0.5269 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.1377, allocations: 2.579 MB / 0.5294 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.139, allocations: 0.5456 MB / 0.5299 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009374/0.1399, allocations: 397.9 kB / 0.5303 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.14, allocations: 4.438 kB / 0.5303 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.14, allocations: 42.94 kB / 0.5303 GB, free: 12.92 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.194e-06/0.14, allocations: 0 / 0.5303 GB, free: 12.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.006664/0.1467, allocations: 2.297 MB / 0.5326 GB, free: 10.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.1467, allocations: 59.84 kB / 0.5326 GB, free: 10.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.1471, allocations: 361.6 kB / 0.533 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.624e-05/0.1472, allocations: 33.7 kB / 0.533 GB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.1474, allocations: 232.7 kB / 0.5332 GB, free: 9.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.1475, allocations: 202.3 kB / 0.5334 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.1478, allocations: 98.23 kB / 0.5335 GB, free: 9.566 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.1479, allocations: 354.8 kB / 0.5339 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009831/0.1489, allocations: 379 kB / 0.5342 GB, free: 8.836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009825/0.1499, allocations: 424 kB / 0.5346 GB, free: 8.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007252/0.1572, allocations: 2.1 MB / 0.5367 GB, free: 6.262 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1572, allocations: 0 / 0.5367 GB, free: 6.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002152/0.1593, allocations: 0.8657 MB / 0.5375 GB, free: 5.387 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.1593, allocations: 4 kB / 0.5375 GB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1593, allocations: 4 kB / 0.5375 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.1594, allocations: 4 kB / 0.5375 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006334/0.1657, allocations: 0.9168 MB / 0.5384 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.234e-05/0.1657, allocations: 4 kB / 0.5384 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00065/0.1664, allocations: 59.92 kB / 0.5385 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.109e-05/0.1664, allocations: 20 kB / 0.5385 GB, free: 4.375 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.000436/0.1669, allocations: 217.6 kB / 0.5387 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.167, allocations: 43.72 kB / 0.5388 GB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002165/0.1691, allocations: 0.8475 MB / 0.5396 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.1692, allocations: 7.984 kB / 0.5396 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1692, allocations: 0 / 0.5396 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.1692, allocations: 4 kB / 0.5396 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/0.1729, allocations: 1.819 MB / 0.5414 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1729, allocations: 0 / 0.5414 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006319/0.1792, allocations: 0.9013 MB / 0.5423 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.407e-05/0.1792, allocations: 4 kB / 0.5423 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.1793, allocations: 19.98 kB / 0.5423 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/0.1793, allocations: 3.938 kB / 0.5423 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1793, allocations: 4 kB / 0.5423 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003065/0.1824, allocations: 1.3 MB / 0.5436 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.1825, allocations: 120.8 kB / 0.5437 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.1826, allocations: 15.98 kB / 0.5437 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005657/0.1832, allocations: 55.88 kB / 0.5437 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.1834, allocations: 80.31 kB / 0.5438 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.082e-05/0.1835, allocations: 20 kB / 0.5438 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003098/0.1838, allocations: 259.1 kB / 0.5441 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1838, allocations: 0 / 0.5441 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000545/0.1843, allocations: 148 kB / 0.5442 GB, free: 14.39 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.003454/0.1878, allocations: 1.859 MB / 0.546 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002098/0.1899, allocations: 0.7524 MB / 0.5468 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.1899, allocations: 0 / 0.5468 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.1909, allocations: 418.5 kB / 0.5472 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008155/0.1917, allocations: 109.7 kB / 0.5473 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.2038, allocations: 6.074 MB / 0.5532 GB, free: 5.023 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/0.2043, allocations: 0.8631 MB / 0.5541 GB, free: 4.133 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004389/0.2048, allocations: 92.33 kB / 0.5541 GB, free: 4.039 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004625/0.2052, allocations: 191.3 kB / 0.5543 GB, free: 3.852 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2052, allocations: 0 / 0.5543 GB, free: 3.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04265/0.2479, allocations: 12.98 MB / 0.567 GB, free: 7.047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.493/9.741, allocations: 11.84 kB / 0.567 GB, free: 7.035 MB / 430.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.97811394999735] Failed to read output from testmodel.py, exit status != 0: 9.819496093783528 9.846333449 9.71517174 Calling exit ...