Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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.001419/0.001419, allocations: 107.7 kB / 16.4 MB, free: 6.492 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.001601/0.001601, allocations: 191.7 kB / 19.36 MB, free: 3.75 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.417/1.417, allocations: 222.9 MB / 245.1 MB, free: 15.02 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.1029/0.1029, allocations: 22.33 MB / 319.6 MB, free: 6.781 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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002472/0.002472, allocations: 71.88 kB / 445.3 MB, free: 8.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1146, allocations: 54.96 MB / 0.4885 GB, free: 1.641 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005515/0.1202, allocations: 4.195 MB / 0.4926 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002546/0.1227, allocations: 1.165 MB / 0.4937 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002635/0.123, allocations: 4 kB / 0.4937 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000275/0.1233, allocations: 114.9 kB / 0.4938 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005362/0.1239, allocations: 261.9 kB / 0.4941 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000747/0.1246, allocations: 299.5 kB / 0.4944 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.126, allocations: 1.202 MB / 0.4956 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.127, allocations: 0.6723 MB / 0.4962 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006791/0.1277, allocations: 478.6 kB / 0.4967 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008418/0.1286, allocations: 0.6112 MB / 0.4973 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002143/0.1288, allocations: 120 kB / 0.4974 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.129, allocations: 120 kB / 0.4975 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003194/0.1293, allocations: 327 kB / 0.4978 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006323/0.13, allocations: 0.5328 MB / 0.4983 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.1314, allocations: 1.249 MB / 0.4995 GB, free: 6.254 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1314, allocations: 0 / 0.4995 GB, free: 6.254 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1314, allocations: 4 kB / 0.4995 GB, free: 6.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.1314, allocations: 0 / 0.4995 GB, free: 6.25 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.003023/0.1345, allocations: 1.286 MB / 0.5008 GB, free: 4.914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.1345, allocations: 8.031 kB / 0.5008 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001877/0.1347, allocations: 131.1 kB / 0.5009 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.1349, allocations: 108.3 kB / 0.501 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008982/0.1358, allocations: 0.5154 MB / 0.5015 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.136, allocations: 159.7 kB / 0.5017 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.1362, allocations: 84.33 kB / 0.5018 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002224/0.1384, allocations: 1.014 MB / 0.5028 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.1385, allocations: 7.984 kB / 0.5028 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.049e-05/0.1386, allocations: 28 kB / 0.5028 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.1386, allocations: 20 kB / 0.5028 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002127/0.1407, allocations: 0.9017 MB / 0.5037 GB, free: 1.875 MB / 382.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(tube.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2137/0.3545, allocations: 3.535 MB / 0.5072 GB, free: 19.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/0.3564, allocations: 0.9046 MB / 0.508 GB, free: 19.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.3576, allocations: 0.6342 MB / 0.5087 GB, free: 19.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.722e-05/0.3577, allocations: 17.47 kB / 0.5087 GB, free: 19.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.3577, allocations: 43.44 kB / 0.5087 GB, free: 19.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.835e-06/0.3577, allocations: 0 / 0.5087 GB, free: 19.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.007965/0.3657, allocations: 3.156 MB / 0.5118 GB, free: 18.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.3658, allocations: 64.69 kB / 0.5119 GB, free: 18.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006458/0.3664, allocations: 0.5124 MB / 0.5124 GB, free: 18.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.949e-05/0.3665, allocations: 41.67 kB / 0.5124 GB, free: 18.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.3667, allocations: 329.8 kB / 0.5127 GB, free: 18.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.367, allocations: 320.2 kB / 0.513 GB, free: 18.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002893/0.3673, allocations: 155.4 kB / 0.5132 GB, free: 18.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.3674, allocations: 384.9 kB / 0.5135 GB, free: 18.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.3686, allocations: 0.5403 MB / 0.5141 GB, free: 18.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.3699, allocations: 0.6206 MB / 0.5147 GB, free: 17.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/0.3808, allocations: 3.137 MB / 0.5177 GB, free: 17.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.3808, allocations: 1.438 kB / 0.5177 GB, free: 17.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003179/0.384, allocations: 1.287 MB / 0.519 GB, free: 17.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.3841, allocations: 7.25 kB / 0.519 GB, free: 17.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.3841, allocations: 2.344 kB / 0.519 GB, free: 17.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.787e-05/0.3841, allocations: 6.562 kB / 0.519 GB, free: 17.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006893/0.391, allocations: 1.035 MB / 0.52 GB, free: 17.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.591e-05/0.3911, allocations: 9.672 kB / 0.52 GB, free: 17.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009231/0.392, allocations: 75.3 kB / 0.5201 GB, free: 17.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.757e-05/0.3921, allocations: 38.66 kB / 0.5201 GB, free: 17.53 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.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.tubeNoTank.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (114): * Single equations (assignments): 114 * 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.0004962/0.3926, allocations: 247.2 kB / 0.5204 GB, free: 17.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.3928, allocations: 73.78 kB / 0.5204 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.3956, allocations: 1.209 MB / 0.5216 GB, free: 17.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.3956, allocations: 9.125 kB / 0.5216 GB, free: 17.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3956, allocations: 1.469 kB / 0.5216 GB, free: 17.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.3956, allocations: 4.031 kB / 0.5216 GB, free: 17.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004852/0.4005, allocations: 2.48 MB / 0.5241 GB, free: 16.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.4005, allocations: 2.719 kB / 0.5241 GB, free: 16.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006861/0.4074, allocations: 1.01 MB / 0.525 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.717e-05/0.4074, allocations: 8.953 kB / 0.5251 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.4076, allocations: 33.86 kB / 0.5251 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.378e-06/0.4076, allocations: 4.281 kB / 0.5251 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4076, allocations: 5.781 kB / 0.5251 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.4112, allocations: 1.845 MB / 0.5269 GB, free: 16.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.4114, allocations: 148.3 kB / 0.527 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.4116, allocations: 25.22 kB / 0.5271 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007503/0.4124, allocations: 69.11 kB / 0.5271 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002386/0.4126, allocations: 102.4 kB / 0.5272 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-05/0.4127, allocations: 35.84 kB / 0.5273 GB, free: 15.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003891/0.4131, allocations: 367.1 kB / 0.5276 GB, free: 15.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4131, allocations: 0 / 0.5276 GB, free: 15.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000743/0.4139, allocations: 234.3 kB / 0.5278 GB, free: 15.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * 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 simulation (87): * Single equations (assignments): 87 * 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.003762/0.4176, allocations: 2.412 MB / 0.5302 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002549/0.4202, allocations: 1.171 MB / 0.5313 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4202, allocations: 0 / 0.5313 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/0.4214, allocations: 0.5879 MB / 0.5319 GB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008088/0.4223, allocations: 171.4 kB / 0.5321 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/0.4363, allocations: 8.91 MB / 0.5408 GB, free: 7.328 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.4367, allocations: 0.9621 MB / 0.5417 GB, free: 6.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006632/0.4374, allocations: 170 kB / 0.5419 GB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005177/0.4379, allocations: 307.3 kB / 0.5422 GB, free: 5.867 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4379, allocations: 0 / 0.5422 GB, free: 5.867 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05113/0.4891, allocations: 19.21 MB / 0.5609 GB, free: 2.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.45, allocations: 7.688 kB / 0.5609 GB, free: 2.871 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002_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_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.486499933991581] Failed to read output from testmodel.py, exit status != 0: 11.52934141003061 11.543319684 11.409094997 Calling exit ...