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.00176/0.00176, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.002166/0.002166, allocations: 210.8 kB / 22.25 MB, free: 5.086 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.512/1.512, allocations: 230.6 MB / 256 MB, free: 8.012 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.1101/0.1101, allocations: 24.13 MB / 336.6 MB, free: 11.45 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.002023/0.002023, allocations: 63.91 kB / 473.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3391, allocations: 59.6 MB / 0.5204 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004392/0.3435, allocations: 4.239 MB / 0.5246 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.3456, allocations: 1.223 MB / 0.5257 GB, free: 6.148 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.3458, allocations: 9.25 kB / 0.5258 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002635/0.3461, allocations: 111.1 kB / 0.5259 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005052/0.3466, allocations: 274.8 kB / 0.5261 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007362/0.3473, allocations: 308.7 kB / 0.5264 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.3484, allocations: 1.191 MB / 0.5276 GB, free: 5.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.3495, allocations: 0.5648 MB / 0.5281 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009166/0.3504, allocations: 487.4 kB / 0.5286 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001029/0.3514, allocations: 0.6095 MB / 0.5292 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002506/0.3517, allocations: 119.8 kB / 0.5293 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002899/0.352, allocations: 124.6 kB / 0.5294 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003389/0.3523, allocations: 337.2 kB / 0.5297 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006901/0.353, allocations: 0.5256 MB / 0.5303 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001847/0.3548, allocations: 1.255 MB / 0.5315 GB, free: 3.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3548, allocations: 2.391 kB / 0.5315 GB, free: 3.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3548, allocations: 0 / 0.5315 GB, free: 3.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.3549, allocations: 0 / 0.5315 GB, free: 3.387 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.003897/0.3587, allocations: 1.204 MB / 0.5327 GB, free: 2.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.3588, allocations: 11.48 kB / 0.5327 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.359, allocations: 132.9 kB / 0.5328 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.3593, allocations: 103.6 kB / 0.5329 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.3605, allocations: 463.5 kB / 0.5333 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/0.3608, allocations: 157.8 kB / 0.5335 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002655/0.3611, allocations: 87.36 kB / 0.5336 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003365/0.3644, allocations: 1.016 MB / 0.5346 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.14e-05/0.3645, allocations: 0 / 0.5346 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.3646, allocations: 32.08 kB / 0.5346 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.553e-05/0.3646, allocations: 18.78 kB / 0.5346 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002913/0.3675, allocations: 0.9035 MB / 0.5355 GB, free: 1.379 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.009617/0.3771, allocations: 3.475 MB / 0.5389 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002875/0.38, allocations: 0.8708 MB / 0.5397 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001856/0.3819, allocations: 0.5963 MB / 0.5403 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.382, allocations: 12.31 kB / 0.5403 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.852e-05/0.382, allocations: 45.08 kB / 0.5404 GB, free: 14.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 4.158e-06/0.382, allocations: 3.938 kB / 0.5404 GB, free: 14.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.01175/0.3938, allocations: 3.091 MB / 0.5434 GB, free: 13.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.3938, allocations: 61.88 kB / 0.5435 GB, free: 13.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009218/0.3948, allocations: 0.5069 MB / 0.544 GB, free: 12.9 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.3949, allocations: 41.77 kB / 0.544 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.3952, allocations: 333.4 kB / 0.5443 GB, free: 12.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004066/0.3956, allocations: 328.5 kB / 0.5446 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004139/0.396, allocations: 156.4 kB / 0.5448 GB, free: 12.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002464/0.3963, allocations: 383.4 kB / 0.5451 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/0.3981, allocations: 0.5426 MB / 0.5457 GB, free: 11.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/0.3999, allocations: 0.6134 MB / 0.5463 GB, free: 11.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01496/0.4148, allocations: 3.075 MB / 0.5493 GB, free: 9.613 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.4149, allocations: 0.9375 kB / 0.5493 GB, free: 9.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004376/0.4192, allocations: 1.287 MB / 0.5505 GB, free: 8.965 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.768e-05/0.4193, allocations: 6.5 kB / 0.5505 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.4193, allocations: 2.156 kB / 0.5505 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.92e-05/0.4193, allocations: 6.469 kB / 0.5505 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009576/0.4289, allocations: 1.031 MB / 0.5516 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.056e-05/0.4289, allocations: 18.23 kB / 0.5516 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.4303, allocations: 67.89 kB / 0.5516 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.4305, allocations: 34.52 kB / 0.5517 GB, free: 8.566 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.0007588/0.4312, allocations: 252.1 kB / 0.5519 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002425/0.4315, allocations: 73.88 kB / 0.552 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004063/0.4355, allocations: 1.212 MB / 0.5532 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.4355, allocations: 8.688 kB / 0.5532 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.4356, allocations: 0 / 0.5532 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.4356, allocations: 5.484 kB / 0.5532 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007294/0.4429, allocations: 2.455 MB / 0.5556 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.4429, allocations: 6.844 kB / 0.5556 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01003/0.4529, allocations: 1.004 MB / 0.5566 GB, free: 5.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.538e-05/0.4529, allocations: 9.469 kB / 0.5566 GB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002106/0.4531, allocations: 26.14 kB / 0.5566 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.508e-05/0.4532, allocations: 8.828 kB / 0.5566 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.4532, allocations: 2.281 kB / 0.5566 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005965/0.4591, allocations: 1.85 MB / 0.5584 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/0.4595, allocations: 75.44 kB / 0.5585 GB, free: 3.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002145/0.4597, allocations: 27.98 kB / 0.5585 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.4608, allocations: 67.92 kB / 0.5586 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003982/0.4612, allocations: 112.4 kB / 0.5587 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.4614, allocations: 23.98 kB / 0.5587 GB, free: 3.762 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007093/0.4621, allocations: 366.8 kB / 0.5591 GB, free: 3.406 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4621, allocations: 0 / 0.5591 GB, free: 3.406 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001206/0.4633, allocations: 240 kB / 0.5593 GB, free: 3.172 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.006364/0.4696, allocations: 2.421 MB / 0.5616 GB, free: 0.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00404/0.4737, allocations: 1.103 MB / 0.5627 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.289e-06/0.4737, allocations: 0 / 0.5627 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/0.4756, allocations: 0.5743 MB / 0.5633 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.477, allocations: 162.1 kB / 0.5634 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02461/0.5017, allocations: 8.904 MB / 0.5721 GB, free: 5.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008962/0.5026, allocations: 0.9621 MB / 0.5731 GB, free: 4.777 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000975/0.5035, allocations: 170 kB / 0.5732 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009345/0.5045, allocations: 307.3 kB / 0.5735 GB, free: 4.309 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5045, allocations: 4 kB / 0.5735 GB, free: 4.305 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07316/0.5776, allocations: 20.09 MB / 0.5932 GB, free: 472 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.15, allocations: 10.09 kB / 0.5932 GB, free: 468 kB / 430.1 MB " [Timeout remaining time 646] (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: 17.226398683997104] Failed to read output from testmodel.py, exit status != 0: 14.271678782999516 14.302943089 13.941218499 Calling exit ...