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.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.0008146/0.0008146, allocations: 76.5 kB / 19.95 MB, free: 4.617 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.0008242/0.0008242, allocations: 169.2 kB / 23.23 MB, free: 1.336 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.9199/0.9199, allocations: 177.1 MB / 203.5 MB, free: 5.75 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.06149/0.06149, allocations: 18.13 MB / 278.1 MB, free: 11.55 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_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 1.523e-06/1.523e-06, allocations: 0 / 415.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.687e-05/1.84e-05, allocations: 2.781 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.002883/0.002902, allocations: 3.74 MB / 418.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.004337, allocations: 1.182 MB / 420 MB, free: 9.359 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.004519, allocations: 9.75 kB / 420 MB, free: 9.355 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.004724, allocations: 115.2 kB / 420.1 MB, free: 9.285 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003502/0.005074, allocations: 282.8 kB / 420.4 MB, free: 9.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005242/0.005598, allocations: 313.2 kB / 420.7 MB, free: 8.914 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007368/0.006335, allocations: 1.234 MB / 421.9 MB, free: 8.305 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005461/0.006881, allocations: 0.551 MB / 422.5 MB, free: 8.051 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004317/0.007313, allocations: 467.7 kB / 422.9 MB, free: 7.859 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004785/0.007791, allocations: 0.4935 MB / 423.4 MB, free: 7.688 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001355/0.007927, allocations: 120.8 kB / 423.5 MB, free: 7.688 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.008059, allocations: 119.8 kB / 423.7 MB, free: 7.688 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001889/0.008248, allocations: 334.9 kB / 424 MB, free: 7.492 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002878/0.008536, allocations: 408 kB / 424.4 MB, free: 7.305 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009188/0.009454, allocations: 1.328 MB / 425.7 MB, free: 6.793 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.009458, allocations: 5.438 kB / 425.7 MB, free: 6.789 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.009459, allocations: 0 / 425.7 MB, free: 6.789 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.009471, allocations: 0 / 425.7 MB, free: 6.789 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.001721/0.01119, allocations: 1.192 MB / 426.9 MB, free: 6.082 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.01123, allocations: 10.08 kB / 426.9 MB, free: 6.082 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.01135, allocations: 130.4 kB / 427 MB, free: 5.992 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.01149, allocations: 103.2 kB / 427.1 MB, free: 5.941 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005399/0.01203, allocations: 467.8 kB / 427.6 MB, free: 5.629 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.01214, allocations: 157.4 kB / 427.8 MB, free: 5.504 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.01225, allocations: 87.31 kB / 427.8 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.01364, allocations: 1.085 MB / 428.9 MB, free: 5.016 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.01366, allocations: 0.75 kB / 428.9 MB, free: 5.016 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.109e-05/0.01372, allocations: 34.84 kB / 429 MB, free: 4.988 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.01374, allocations: 22.5 kB / 429 MB, free: 4.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.01504, allocations: 0.8979 MB / 429.9 MB, free: 4.695 MB / 330.7 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.004104/0.01915, allocations: 3.227 MB / 433.1 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.02034, allocations: 0.8697 MB / 434 MB, free: 2.383 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007779/0.02112, allocations: 0.5892 MB / 434.6 MB, free: 2.094 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.523e-05/0.02117, allocations: 11.75 kB / 434.6 MB, free: 2.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.0212, allocations: 39.53 kB / 434.6 MB, free: 2.047 MB / 330.7 MB Notification: Performance of pre-optimization done (n=79): time 2.034e-06/0.0212, allocations: 0.6562 kB / 434.6 MB, free: 2.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.00464/0.02584, allocations: 3.101 MB / 437.7 MB, free: 404 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.02587, allocations: 61.09 kB / 437.8 MB, free: 340 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003763/0.02624, allocations: 0.5169 MB / 438.3 MB, free: 20 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.166e-05/0.02631, allocations: 40.73 kB / 438.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.02647, allocations: 329.6 kB / 438.7 MB, free: 15.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.02668, allocations: 321.1 kB / 439 MB, free: 15.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/0.02689, allocations: 151 kB / 439.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.02702, allocations: 388.7 kB / 439.5 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007869/0.02781, allocations: 0.5443 MB / 440 MB, free: 14.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007799/0.02859, allocations: 0.6151 MB / 440.7 MB, free: 14.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005552/0.03414, allocations: 3.064 MB / 443.7 MB, free: 11.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.03414, allocations: 0 / 443.7 MB, free: 11.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001801/0.03594, allocations: 1.29 MB / 445 MB, free: 10.44 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.03596, allocations: 8 kB / 445 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.03597, allocations: 0 / 445 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.03598, allocations: 8 kB / 445 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/0.03918, allocations: 1.034 MB / 446.1 MB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.0392, allocations: 10.5 kB / 446.1 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000419/0.03962, allocations: 71.92 kB / 446.1 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.991e-05/0.03967, allocations: 35.98 kB / 446.2 MB, free: 9.273 MB / 346.7 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.0003483/0.04002, allocations: 252.3 kB / 446.4 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.45e-05/0.0401, allocations: 75.5 kB / 446.5 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/0.04167, allocations: 1.217 MB / 447.7 MB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.04168, allocations: 12 kB / 447.7 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.04168, allocations: 3.938 kB / 447.7 MB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.04169, allocations: 3.984 kB / 447.7 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003331/0.04502, allocations: 2.265 MB / 450 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-06/0.04503, allocations: 4 kB / 450 MB, free: 5.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003246/0.04827, allocations: 1.003 MB / 451 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.04829, allocations: 4 kB / 451 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.28e-05/0.04836, allocations: 35.97 kB / 451 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.453e-06/0.04836, allocations: 7.938 kB / 451 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.04837, allocations: 7.938 kB / 451.1 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.05062, allocations: 1.83 MB / 452.9 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.649e-05/0.05071, allocations: 71.52 kB / 453 MB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.608e-05/0.0508, allocations: 23.98 kB / 453 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/0.05115, allocations: 75.86 kB / 453.1 MB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.05131, allocations: 108.4 kB / 453.2 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.01e-05/0.05135, allocations: 27.98 kB / 453.2 MB, free: 2.137 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002646/0.05161, allocations: 370.8 kB / 453.5 MB, free: 1.777 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05161, allocations: 0 / 453.5 MB, free: 1.777 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004586/0.05207, allocations: 232 kB / 453.8 MB, free: 1.551 MB / 346.7 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.002415/0.05449, allocations: 2.421 MB / 456.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.05594, allocations: 1.091 MB / 457.3 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.05595, allocations: 7.938 kB / 457.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007222/0.05667, allocations: 0.5705 MB / 457.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/0.05718, allocations: 166.8 kB / 458 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009452/0.06663, allocations: 8.65 MB / 466.7 MB, free: 4.395 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.06687, allocations: 384.7 kB / 467.1 MB, free: 3.988 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003744/0.06724, allocations: 169.9 kB / 467.2 MB, free: 3.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004035/0.06764, allocations: 308.4 kB / 467.5 MB, free: 3.52 MB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.06764, allocations: 0 / 467.5 MB, free: 3.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.09649, allocations: 21.2 MB / 488.7 MB, free: 14.61 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.341/7.437, allocations: 3.438 kB / 488.7 MB, free: 14.61 MB / 394.7 MB " [Timeout remaining time 652] (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: 9.593384427949786] Failed to read output from testmodel.py, exit status != 0: 7.528797695413232 7.536209461 7.5250277 Calling exit ...