Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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.001297/0.001297, 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.001428/0.001428, allocations: 206 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.515/1.515, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1131/0.1131, allocations: 24.04 MB / 337.2 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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.002995/0.002995, allocations: 71.89 kB / 474.6 MB, free: 5.648 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.369, allocations: 59.57 MB / 0.5217 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003858/0.3728, allocations: 2.93 MB / 0.5245 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.3745, allocations: 0.9111 MB / 0.5254 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.3747, allocations: 4.312 kB / 0.5254 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002094/0.3749, allocations: 71.66 kB / 0.5255 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003236/0.3753, allocations: 181 kB / 0.5257 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005341/0.3758, allocations: 192.2 kB / 0.5258 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007032/0.3765, allocations: 0.7448 MB / 0.5266 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005143/0.377, allocations: 350.2 kB / 0.5269 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000441/0.3775, allocations: 317.8 kB / 0.5272 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004763/0.3779, allocations: 361.7 kB / 0.5276 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.3781, allocations: 80.66 kB / 0.5276 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.3782, allocations: 77 kB / 0.5277 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.3783, allocations: 201.5 kB / 0.5279 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002489/0.3786, allocations: 295.6 kB / 0.5282 GB, free: 6.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007485/0.3793, allocations: 0.798 MB / 0.529 GB, free: 6.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3793, allocations: 0 / 0.529 GB, free: 6.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3793, allocations: 4.969 kB / 0.529 GB, free: 6.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.3793, allocations: 0 / 0.529 GB, free: 6.246 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001855/0.3812, allocations: 0.8472 MB / 0.5298 GB, free: 5.703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3812, allocations: 10.11 kB / 0.5298 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.3813, allocations: 92.34 kB / 0.5299 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.3815, allocations: 66.56 kB / 0.53 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/0.382, allocations: 335.4 kB / 0.5303 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.3822, allocations: 110.5 kB / 0.5304 GB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.3823, allocations: 48.72 kB / 0.5304 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.3838, allocations: 0.742 MB / 0.5312 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.872e-05/0.3839, allocations: 3.938 kB / 0.5312 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.878e-05/0.3839, allocations: 21.41 kB / 0.5312 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.3839, allocations: 11.78 kB / 0.5312 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.3854, allocations: 0.6037 MB / 0.5318 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004839/0.3902, allocations: 2.363 MB / 0.5341 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.3913, allocations: 0.5356 MB / 0.5346 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008596/0.3922, allocations: 405.6 kB / 0.535 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.48e-05/0.3923, allocations: 5 kB / 0.535 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.3923, allocations: 39.08 kB / 0.535 GB, free: 2.996 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.814e-06/0.3923, allocations: 0 / 0.535 GB, free: 2.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.006062/0.3983, allocations: 2.216 MB / 0.5372 GB, free: 2.129 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.3984, allocations: 62.8 kB / 0.5373 GB, free: 2.062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003742/0.3987, allocations: 353.2 kB / 0.5376 GB, free: 1.879 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.803e-05/0.3988, allocations: 40.06 kB / 0.5376 GB, free: 1.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.3989, allocations: 234.5 kB / 0.5379 GB, free: 1.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.3991, allocations: 202.3 kB / 0.5381 GB, free: 1.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.3992, allocations: 95.33 kB / 0.5381 GB, free: 1.434 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.346e-05/0.3993, allocations: 355.8 kB / 0.5385 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008766/0.4002, allocations: 382 kB / 0.5388 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008752/0.4011, allocations: 427 kB / 0.5393 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006671/0.4077, allocations: 2.038 MB / 0.5412 GB, free: 104 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4077, allocations: 1.594 kB / 0.5412 GB, free: 104 kB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002114/0.4099, allocations: 0.859 MB / 0.5421 GB, free: 15.67 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.4099, allocations: 5.875 kB / 0.5421 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.4099, allocations: 1.375 kB / 0.5421 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.4099, allocations: 8.5 kB / 0.5421 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00605/0.416, allocations: 0.9101 MB / 0.543 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.013e-05/0.416, allocations: 7.812 kB / 0.543 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006528/0.4166, allocations: 61.8 kB / 0.5431 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.569e-05/0.4167, allocations: 21.7 kB / 0.5431 GB, free: 15.3 MB / 398.1 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: 7 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0004063/0.4171, allocations: 200.2 kB / 0.5433 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.4172, allocations: 45.44 kB / 0.5433 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/0.4193, allocations: 0.8473 MB / 0.5441 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.4193, allocations: 9.469 kB / 0.5441 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4193, allocations: 1.375 kB / 0.5441 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.4193, allocations: 4.125 kB / 0.5441 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003714/0.423, allocations: 1.663 MB / 0.5458 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.423, allocations: 1.875 kB / 0.5458 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006218/0.4293, allocations: 0.9092 MB / 0.5467 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.025e-05/0.4293, allocations: 3.375 kB / 0.5467 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001387/0.4294, allocations: 17.78 kB / 0.5467 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.951e-05/0.4294, allocations: 11.27 kB / 0.5467 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.4294, allocations: 5.031 kB / 0.5467 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003441/0.4329, allocations: 1.292 MB / 0.548 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.4331, allocations: 44.55 kB / 0.548 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.4332, allocations: 13.31 kB / 0.548 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.4339, allocations: 59.92 kB / 0.5481 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.4341, allocations: 81.33 kB / 0.5482 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.234e-05/0.4341, allocations: 15.92 kB / 0.5482 GB, free: 12.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003758/0.4345, allocations: 259.8 kB / 0.5484 GB, free: 12.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4345, allocations: 5.344 kB / 0.5484 GB, free: 12.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006249/0.4351, allocations: 142.1 kB / 0.5486 GB, free: 12.11 MB / 398.1 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.003851/0.439, allocations: 1.871 MB / 0.5504 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.4412, allocations: 0.7529 MB / 0.5511 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4412, allocations: 0 / 0.5511 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.4422, allocations: 418.4 kB / 0.5515 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000704/0.4429, allocations: 113.9 kB / 0.5516 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.4547, allocations: 6.073 MB / 0.5576 GB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.455, allocations: 258.6 kB / 0.5578 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005231/0.4555, allocations: 92.33 kB / 0.5579 GB, free: 5.617 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00044/0.456, allocations: 191.4 kB / 0.5581 GB, free: 5.43 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.456, allocations: 3.938 kB / 0.5581 GB, free: 5.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05107/0.507, allocations: 14.36 MB / 0.5721 GB, free: 7.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.22, allocations: 7.125 kB / 0.5721 GB, free: 7.312 MB / 414.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003_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_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.240463334135711] Failed to read output from testmodel.py, exit status != 0: 12.345541694201529 12.373252487 11.988755473 Calling exit ...