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.001837/0.001837, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.0023/0.0023, allocations: 206.2 kB / 23.01 MB, free: 4.625 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.545/1.545, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1106/0.1106, allocations: 24.04 MB / 337.2 MB, free: 11.33 MB / 270.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) 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: 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.002285/0.002285, allocations: 67.89 kB / 473.8 MB, free: 6.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3104, allocations: 59.58 MB / 0.5209 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004299/0.3147, allocations: 3.75 MB / 0.5246 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.317, allocations: 1.167 MB / 0.5257 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.3173, allocations: 18.56 kB / 0.5257 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.3175, allocations: 109.7 kB / 0.5258 GB, free: 6.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004762/0.318, allocations: 267.8 kB / 0.5261 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007489/0.3188, allocations: 308.6 kB / 0.5264 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.3199, allocations: 1.197 MB / 0.5275 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007804/0.3206, allocations: 0.5463 MB / 0.5281 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006658/0.3213, allocations: 495.3 kB / 0.5286 GB, free: 5.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007426/0.3221, allocations: 0.5429 MB / 0.5291 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001986/0.3222, allocations: 120.3 kB / 0.5292 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002444/0.3225, allocations: 120.1 kB / 0.5293 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003018/0.3228, allocations: 328.4 kB / 0.5296 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004872/0.3233, allocations: 464.6 kB / 0.5301 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00151/0.3248, allocations: 1.275 MB / 0.5313 GB, free: 4.312 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3248, allocations: 3.938 kB / 0.5313 GB, free: 4.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3248, allocations: 1.125 kB / 0.5313 GB, free: 4.309 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.221e-05/0.3248, allocations: 0 / 0.5313 GB, free: 4.309 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.002648/0.3275, allocations: 1.198 MB / 0.5325 GB, free: 3.605 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3275, allocations: 11.2 kB / 0.5325 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001628/0.3277, allocations: 129.2 kB / 0.5326 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.3279, allocations: 103.4 kB / 0.5327 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008578/0.3287, allocations: 463.6 kB / 0.5332 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001861/0.3289, allocations: 157.1 kB / 0.5333 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001704/0.3291, allocations: 87.52 kB / 0.5334 GB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002197/0.3313, allocations: 1.088 MB / 0.5345 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/0.3313, allocations: 4.547 kB / 0.5345 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.881e-05/0.3314, allocations: 31.28 kB / 0.5345 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.3314, allocations: 26.81 kB / 0.5345 GB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/0.3334, allocations: 0.8952 MB / 0.5354 GB, free: 2.207 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.007305/0.3407, allocations: 3.225 MB / 0.5385 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001892/0.3426, allocations: 0.8671 MB / 0.5394 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3439, allocations: 0.5988 MB / 0.54 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.114e-05/0.3439, allocations: 9 kB / 0.54 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.344, allocations: 48.97 kB / 0.54 GB, free: 15.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.565e-06/0.344, allocations: 0 / 0.54 GB, free: 15.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.008462/0.3524, allocations: 3.099 MB / 0.5431 GB, free: 14.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.3525, allocations: 61.91 kB / 0.5431 GB, free: 14.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006746/0.3532, allocations: 0.5118 MB / 0.5436 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.667e-05/0.3533, allocations: 40.98 kB / 0.5437 GB, free: 13.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002614/0.3535, allocations: 325.5 kB / 0.544 GB, free: 13.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003122/0.3538, allocations: 322.1 kB / 0.5443 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003216/0.3542, allocations: 159.8 kB / 0.5444 GB, free: 13.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002135/0.3544, allocations: 384.3 kB / 0.5448 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.3556, allocations: 0.5384 MB / 0.5453 GB, free: 12.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.3569, allocations: 0.6196 MB / 0.5459 GB, free: 12.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/0.3674, allocations: 3.057 MB / 0.5489 GB, free: 10.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.3674, allocations: 1.219 kB / 0.5489 GB, free: 10.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003053/0.3705, allocations: 1.29 MB / 0.5502 GB, free: 10.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3705, allocations: 6.344 kB / 0.5502 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3705, allocations: 3.219 kB / 0.5502 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.3706, allocations: 5.75 kB / 0.5502 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006723/0.3773, allocations: 1.035 MB / 0.5512 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.733e-05/0.3773, allocations: 6.312 kB / 0.5512 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.3785, allocations: 79.69 kB / 0.5513 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.3786, allocations: 35.55 kB / 0.5513 GB, free: 9.637 MB / 398.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.0007248/0.3794, allocations: 259.5 kB / 0.5516 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002506/0.3796, allocations: 69.08 kB / 0.5516 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003191/0.3828, allocations: 1.213 MB / 0.5528 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.3828, allocations: 7.75 kB / 0.5528 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.3828, allocations: 1.219 kB / 0.5528 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3828, allocations: 3.984 kB / 0.5528 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00568/0.3885, allocations: 2.286 MB / 0.5551 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.3885, allocations: 1.531 kB / 0.5551 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006709/0.3952, allocations: 1.013 MB / 0.556 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.881e-05/0.3952, allocations: 13.34 kB / 0.5561 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.3954, allocations: 26.11 kB / 0.5561 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/0.3954, allocations: 5.375 kB / 0.5561 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.3954, allocations: 6.156 kB / 0.5561 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004119/0.3995, allocations: 1.834 MB / 0.5579 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.3998, allocations: 79.44 kB / 0.558 GB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.4, allocations: 31.94 kB / 0.558 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008149/0.4008, allocations: 67.91 kB / 0.5581 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.401, allocations: 108.5 kB / 0.5582 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.914e-05/0.4011, allocations: 27.98 kB / 0.5582 GB, free: 4.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005036/0.4016, allocations: 366.8 kB / 0.5585 GB, free: 4.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4016, allocations: 0 / 0.5585 GB, free: 4.508 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000794/0.4024, allocations: 232 kB / 0.5588 GB, free: 4.281 MB / 398.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.004429/0.4068, allocations: 2.417 MB / 0.5611 GB, free: 1.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002772/0.4096, allocations: 1.095 MB / 0.5622 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4096, allocations: 0 / 0.5622 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.411, allocations: 0.5744 MB / 0.5627 GB, free: 152 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009013/0.4119, allocations: 172.5 kB / 0.5629 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/0.4295, allocations: 8.896 MB / 0.5716 GB, free: 6.891 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.43, allocations: 368.8 kB / 0.5719 GB, free: 6.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008395/0.4308, allocations: 173.9 kB / 0.5721 GB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006986/0.4315, allocations: 311.3 kB / 0.5724 GB, free: 6.023 MB / 414.1 MB Notification: Performance of SimCode: time 1.843e-06/0.4315, allocations: 0 / 0.5724 GB, free: 6.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06345/0.4949, allocations: 21.11 MB / 0.593 GB, free: 1.238 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.44, allocations: 4 kB / 0.593 GB, free: 1.234 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.514447567984462] Failed to read output from testmodel.py, exit status != 0: 12.564239169005305 12.581083099 12.25270896 Calling exit ...