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.001814/0.001814, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001513/0.001513, allocations: 219.9 kB / 23.03 MB, free: 4.953 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.438/1.438, 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.1029/0.1029, allocations: 22.94 MB / 336.2 MB, free: 12.43 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="cs",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="cs",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.002024/0.002024, allocations: 65.16 kB / 472.2 MB, free: 7.891 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3195, allocations: 59.29 MB / 0.519 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004419/0.3239, allocations: 3.745 MB / 0.5227 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.3262, allocations: 1.173 MB / 0.5238 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003324/0.3266, allocations: 9.219 kB / 0.5238 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002857/0.3268, allocations: 110.6 kB / 0.5239 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005401/0.3274, allocations: 275.7 kB / 0.5242 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007558/0.3281, allocations: 308.8 kB / 0.5245 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000965/0.3291, allocations: 1.192 MB / 0.5256 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006807/0.3298, allocations: 0.5612 MB / 0.5262 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006661/0.3304, allocations: 0.4919 MB / 0.5267 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007869/0.3312, allocations: 0.61 MB / 0.5273 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001918/0.3314, allocations: 119.3 kB / 0.5274 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.3316, allocations: 120.5 kB / 0.5275 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002698/0.3319, allocations: 325.3 kB / 0.5278 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000509/0.3324, allocations: 463.1 kB / 0.5283 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.3336, allocations: 1.268 MB / 0.5295 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3336, allocations: 1.953 kB / 0.5295 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3336, allocations: 0 / 0.5295 GB, free: 4.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.3336, allocations: 0 / 0.5295 GB, free: 4.586 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.002856/0.3365, allocations: 1.209 MB / 0.5307 GB, free: 3.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3365, allocations: 11.28 kB / 0.5307 GB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.3e-05/0.3366, allocations: 25.22 kB / 0.5307 GB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.3367, allocations: 130.1 kB / 0.5308 GB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.3369, allocations: 103.2 kB / 0.5309 GB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007468/0.3377, allocations: 466.9 kB / 0.5314 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/0.3378, allocations: 159.6 kB / 0.5315 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.338, allocations: 89.67 kB / 0.5316 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002321/0.3403, allocations: 1.079 MB / 0.5327 GB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.3403, allocations: 1.047 kB / 0.5327 GB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-05/0.3404, allocations: 38.59 kB / 0.5327 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.941e-05/0.3404, allocations: 19.03 kB / 0.5327 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00219/0.3426, allocations: 0.9045 MB / 0.5336 GB, free: 2.477 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.007098/0.3497, allocations: 3.213 MB / 0.5367 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001909/0.3516, allocations: 0.8658 MB / 0.5376 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/0.3528, allocations: 0.5968 MB / 0.5382 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.624e-05/0.3529, allocations: 17 kB / 0.5382 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.3529, allocations: 39.88 kB / 0.5382 GB, free: 208 kB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.835e-06/0.3529, allocations: 4 kB / 0.5382 GB, free: 204 kB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.008479/0.3614, allocations: 3.086 MB / 0.5412 GB, free: 14.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.3614, allocations: 63.97 kB / 0.5413 GB, free: 14.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006728/0.3621, allocations: 0.5128 MB / 0.5418 GB, free: 14.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.71e-05/0.3622, allocations: 40.45 kB / 0.5418 GB, free: 14.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002742/0.3625, allocations: 334.1 kB / 0.5422 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003291/0.3628, allocations: 324.9 kB / 0.5425 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.3631, allocations: 152.6 kB / 0.5426 GB, free: 13.69 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002351/0.3634, allocations: 388.6 kB / 0.543 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.3647, allocations: 0.5378 MB / 0.5435 GB, free: 13.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.366, allocations: 0.6117 MB / 0.5441 GB, free: 12.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/0.3771, allocations: 3.069 MB / 0.5471 GB, free: 11.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.3771, allocations: 0 / 0.5471 GB, free: 11.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003088/0.3802, allocations: 1.291 MB / 0.5484 GB, free: 10.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.3802, allocations: 6.844 kB / 0.5484 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.3802, allocations: 2.125 kB / 0.5484 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.758e-05/0.3802, allocations: 7.438 kB / 0.5484 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006821/0.387, allocations: 1.033 MB / 0.5494 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.133e-05/0.3871, allocations: 6.438 kB / 0.5494 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.3881, allocations: 71.92 kB / 0.5495 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.47e-05/0.3882, allocations: 34.64 kB / 0.5495 GB, free: 10.09 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.0005714/0.3888, allocations: 252.9 kB / 0.5497 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000166/0.3889, allocations: 76.88 kB / 0.5498 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002826/0.3918, allocations: 1.21 MB / 0.551 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.3918, allocations: 7.953 kB / 0.551 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3918, allocations: 9.078 kB / 0.551 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.3918, allocations: 3.984 kB / 0.551 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005022/0.3968, allocations: 2.283 MB / 0.5532 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.3968, allocations: 5.375 kB / 0.5533 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006753/0.4036, allocations: 1.012 MB / 0.5542 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.391e-05/0.4036, allocations: 5.5 kB / 0.5542 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/0.4037, allocations: 29.59 kB / 0.5543 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.067e-06/0.4037, allocations: 9.484 kB / 0.5543 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.4037, allocations: 1.375 kB / 0.5543 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003869/0.4076, allocations: 1.85 MB / 0.5561 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000227/0.4078, allocations: 75.11 kB / 0.5562 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.408, allocations: 25.14 kB / 0.5562 GB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007741/0.4087, allocations: 70.05 kB / 0.5563 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002635/0.409, allocations: 107.3 kB / 0.5564 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.833e-05/0.4091, allocations: 34.95 kB / 0.5564 GB, free: 6.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004567/0.4095, allocations: 361.9 kB / 0.5567 GB, free: 5.887 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4095, allocations: 1.188 kB / 0.5567 GB, free: 5.887 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007869/0.4103, allocations: 237.6 kB / 0.557 GB, free: 5.758 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.004293/0.4146, allocations: 2.421 MB / 0.5593 GB, free: 3.293 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002629/0.4173, allocations: 1.095 MB / 0.5604 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.4173, allocations: 0 / 0.5604 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.4186, allocations: 0.5704 MB / 0.561 GB, free: 1.625 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000947/0.4195, allocations: 170.1 kB / 0.5611 GB, free: 1.461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01661/0.4361, allocations: 8.888 MB / 0.5698 GB, free: 8.371 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.4366, allocations: 376.7 kB / 0.5702 GB, free: 7.973 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007204/0.4373, allocations: 173.9 kB / 0.5703 GB, free: 7.801 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006382/0.4379, allocations: 303.3 kB / 0.5706 GB, free: 7.504 MB / 414.1 MB Notification: Performance of SimCode: time 1.794e-06/0.4379, allocations: 0 / 0.5706 GB, free: 7.504 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04875/0.4867, allocations: 20.89 MB / 0.591 GB, free: 2.992 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/14.65, allocations: 0 / 0.591 GB, free: 2.992 MB / 430.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 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.767665729043074] Failed to read output from testmodel.py, exit status != 0: 14.829341102973558 14.860374435 14.520740198 Calling exit ...