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.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.0008274/0.0008274, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.000852/0.000852, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.8881/0.8881, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.06678/0.06678, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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_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 1.352e-06/1.352e-06, allocations: 0 / 415.8 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.803e-05/1.939e-05, allocations: 3.656 kB / 415.8 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002519/0.002539, allocations: 2.917 MB / 418.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.003714, allocations: 0.9035 MB / 419.7 MB, free: 9.781 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.003853, allocations: 8.188 kB / 419.7 MB, free: 9.777 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.004016, allocations: 69.5 kB / 419.7 MB, free: 9.734 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.004273, allocations: 176.5 kB / 419.9 MB, free: 9.613 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004958/0.004769, allocations: 203.3 kB / 420.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006082/0.005378, allocations: 0.7703 MB / 420.9 MB, free: 9.117 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004473/0.005825, allocations: 357.2 kB / 421.2 MB, free: 8.957 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003662/0.006191, allocations: 301.7 kB / 421.5 MB, free: 8.832 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003824/0.006573, allocations: 314.9 kB / 421.8 MB, free: 8.727 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.686e-05/0.00667, allocations: 76.59 kB / 421.9 MB, free: 8.727 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.817e-05/0.006759, allocations: 77.69 kB / 422 MB, free: 8.727 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.006886, allocations: 219.9 kB / 422.2 MB, free: 8.594 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000206/0.007092, allocations: 254.4 kB / 422.4 MB, free: 8.477 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006538/0.007746, allocations: 0.8412 MB / 423.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.007748, allocations: 1.062 kB / 423.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.007749, allocations: 4 kB / 423.3 MB, free: 8.148 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.007761, allocations: 0.7969 kB / 423.3 MB, free: 8.148 MB / 330.7 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.001232/0.008993, allocations: 0.841 MB / 424.1 MB, free: 7.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.009028, allocations: 9.891 kB / 424.1 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.969e-05/0.009108, allocations: 91.44 kB / 424.2 MB, free: 7.535 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.647e-05/0.009204, allocations: 62.11 kB / 424.3 MB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.009578, allocations: 335.9 kB / 424.6 MB, free: 7.254 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.5e-05/0.009663, allocations: 109.9 kB / 424.7 MB, free: 7.172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.581e-05/0.009739, allocations: 49.2 kB / 424.8 MB, free: 7.156 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.01074, allocations: 0.7345 MB / 425.5 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.01075, allocations: 1.031 kB / 425.5 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.0108, allocations: 19.62 kB / 425.5 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.01081, allocations: 13.88 kB / 425.5 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009463/0.01175, allocations: 0.6037 MB / 426.2 MB, free: 6.641 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003076/0.01483, allocations: 2.378 MB / 428.5 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007044/0.01553, allocations: 0.5208 MB / 429.1 MB, free: 5.113 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005077/0.01604, allocations: 385.6 kB / 429.4 MB, free: 4.977 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.537e-05/0.01608, allocations: 5.984 kB / 429.4 MB, free: 4.977 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.532e-05/0.01609, allocations: 38.39 kB / 429.5 MB, free: 4.934 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 1.673e-06/0.01609, allocations: 4 kB / 429.5 MB, free: 4.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.00345/0.01954, allocations: 2.188 MB / 431.7 MB, free: 4.066 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.01957, allocations: 57.33 kB / 431.7 MB, free: 4.004 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002653/0.01983, allocations: 357 kB / 432.1 MB, free: 3.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.311e-05/0.01986, allocations: 35.89 kB / 432.1 MB, free: 3.781 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.819e-05/0.01994, allocations: 241.7 kB / 432.3 MB, free: 3.582 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.226e-05/0.02002, allocations: 200 kB / 432.5 MB, free: 3.422 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.02015, allocations: 95.52 kB / 432.6 MB, free: 3.375 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.451e-05/0.0202, allocations: 354.1 kB / 433 MB, free: 3.043 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/0.02072, allocations: 373.8 kB / 433.3 MB, free: 2.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005324/0.02125, allocations: 425.5 kB / 433.8 MB, free: 2.715 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003513/0.02477, allocations: 2.007 MB / 435.8 MB, free: 1.719 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.02477, allocations: 1.188 kB / 435.8 MB, free: 1.719 MB / 330.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001103/0.02587, allocations: 0.8543 MB / 436.6 MB, free: 1.285 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.02589, allocations: 10.44 kB / 436.6 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.0259, allocations: 2.188 kB / 436.6 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.02591, allocations: 4.594 kB / 436.6 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002808/0.02872, allocations: 0.9032 MB / 437.5 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.02873, allocations: 3.969 kB / 437.5 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.02898, allocations: 54.16 kB / 437.6 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.02901, allocations: 27.67 kB / 437.6 MB, free: 0.9258 MB / 330.7 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.000215/0.02923, allocations: 208.2 kB / 437.8 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.674e-05/0.02928, allocations: 57.59 kB / 437.9 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.03037, allocations: 0.8327 MB / 438.7 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.03037, allocations: 5.312 kB / 438.7 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.03038, allocations: 0 / 438.7 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.03038, allocations: 7.922 kB / 438.7 MB, free: 236 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.03255, allocations: 1.661 MB / 440.4 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.03255, allocations: 4.094 kB / 440.4 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002819/0.03537, allocations: 0.8855 MB / 441.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.03538, allocations: 4 kB / 441.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.115e-05/0.03542, allocations: 23.98 kB / 441.3 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.03542, allocations: 0 / 441.3 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.03543, allocations: 4 kB / 441.3 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.03706, allocations: 1.271 MB / 442.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.537e-05/0.03711, allocations: 51.66 kB / 442.6 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.614e-05/0.03717, allocations: 12 kB / 442.6 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.03741, allocations: 51.92 kB / 442.7 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.03753, allocations: 80.3 kB / 442.8 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.03756, allocations: 16 kB / 442.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001789/0.03774, allocations: 263.2 kB / 443 MB, free: 12.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03774, allocations: 0 / 443 MB, free: 12.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000365/0.0381, allocations: 148 kB / 443.2 MB, free: 12.3 MB / 346.7 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.001855/0.03996, allocations: 1.831 MB / 445 MB, free: 10.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.04101, allocations: 0.7443 MB / 445.8 MB, free: 9.695 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.04101, allocations: 0 / 445.8 MB, free: 9.695 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005228/0.04154, allocations: 407 kB / 446.2 MB, free: 9.297 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.04192, allocations: 113.7 kB / 446.3 MB, free: 9.188 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006709/0.04863, allocations: 6 MB / 452.3 MB, free: 3.035 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.0488, allocations: 261.9 kB / 452.5 MB, free: 2.758 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002622/0.04906, allocations: 92.34 kB / 452.6 MB, free: 2.668 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.04934, allocations: 188.4 kB / 452.8 MB, free: 2.484 MB / 346.7 MB Notification: Performance of SimCode: time 6.51e-07/0.04935, allocations: 0 / 452.8 MB, free: 2.484 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.07384, allocations: 14.35 MB / 467.2 MB, free: 4.371 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.458/7.532, allocations: 10.78 kB / 467.2 MB, free: 4.363 MB / 362.7 MB " [Timeout remaining time 652] (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: 9.644012527540326] Failed to read output from testmodel.py, exit status != 0: 7.6194657031446695 7.629210561 7.619797644 Calling exit ...