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.001425/0.001425, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002059/0.002059, allocations: 213.9 kB / 23.03 MB, free: 4.922 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.109/0.109, allocations: 22.93 MB / 336.1 MB, free: 12.41 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="cs",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="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.002746/0.002746, allocations: 79.81 kB / 472.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3805, allocations: 59.28 MB / 0.519 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004358/0.3849, allocations: 2.935 MB / 0.5219 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.3869, allocations: 0.9035 MB / 0.5228 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003129/0.3872, allocations: 7.719 kB / 0.5228 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002502/0.3874, allocations: 62.69 kB / 0.5228 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004472/0.3879, allocations: 176.8 kB / 0.523 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006566/0.3885, allocations: 201 kB / 0.5232 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009208/0.3895, allocations: 0.7486 MB / 0.5239 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006417/0.3901, allocations: 365 kB / 0.5243 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005452/0.3906, allocations: 319.2 kB / 0.5246 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005358/0.3912, allocations: 396.5 kB / 0.5249 GB, free: 6.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.3913, allocations: 75.84 kB / 0.525 GB, free: 6.887 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.3915, allocations: 82.31 kB / 0.5251 GB, free: 6.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.3917, allocations: 207.6 kB / 0.5253 GB, free: 6.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003225/0.392, allocations: 296 kB / 0.5256 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008894/0.3929, allocations: 0.8033 MB / 0.5264 GB, free: 6.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3929, allocations: 0 / 0.5264 GB, free: 6.305 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.3929, allocations: 0.9375 kB / 0.5264 GB, free: 6.305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.3929, allocations: 0 / 0.5264 GB, free: 6.305 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.002301/0.3952, allocations: 0.8431 MB / 0.5272 GB, free: 5.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.3952, allocations: 10.3 kB / 0.5272 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.729e-05/0.3953, allocations: 13.16 kB / 0.5272 GB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.3954, allocations: 99.66 kB / 0.5273 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.3956, allocations: 66.55 kB / 0.5274 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006022/0.3962, allocations: 328.1 kB / 0.5277 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.3963, allocations: 105.2 kB / 0.5278 GB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.3964, allocations: 53.69 kB / 0.5278 GB, free: 5.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.3982, allocations: 0.7378 MB / 0.5286 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.3983, allocations: 3.938 kB / 0.5286 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.997e-05/0.3983, allocations: 25.78 kB / 0.5286 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.3983, allocations: 15.19 kB / 0.5286 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.3998, allocations: 0.6016 MB / 0.5292 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004888/0.4047, allocations: 2.361 MB / 0.5315 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.406, allocations: 0.5371 MB / 0.532 GB, free: 3.266 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009817/0.407, allocations: 405 kB / 0.5324 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/0.407, allocations: 5.562 kB / 0.5324 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.4071, allocations: 38.34 kB / 0.5324 GB, free: 3.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 3.216e-06/0.4071, allocations: 0 / 0.5324 GB, free: 3.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.006175/0.4132, allocations: 2.218 MB / 0.5346 GB, free: 2.199 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.4133, allocations: 58.06 kB / 0.5347 GB, free: 2.137 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.4137, allocations: 353.4 kB / 0.535 GB, free: 1.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.4137, allocations: 36.2 kB / 0.535 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.4139, allocations: 234.7 kB / 0.5353 GB, free: 1.719 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.414, allocations: 206 kB / 0.5355 GB, free: 1.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002071/0.4142, allocations: 102.7 kB / 0.5356 GB, free: 1.496 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.978e-05/0.4143, allocations: 356 kB / 0.5359 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008485/0.4151, allocations: 378.2 kB / 0.5363 GB, free: 1.035 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008616/0.416, allocations: 427.5 kB / 0.5367 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00683/0.4228, allocations: 2.017 MB / 0.5386 GB, free: 304 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.4228, allocations: 5.188 kB / 0.5386 GB, free: 300 kB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00199/0.4248, allocations: 0.8583 MB / 0.5395 GB, free: 15.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.4248, allocations: 6.625 kB / 0.5395 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4248, allocations: 1.844 kB / 0.5395 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.4249, allocations: 5.625 kB / 0.5395 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006128/0.431, allocations: 0.912 MB / 0.5404 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.201e-05/0.431, allocations: 8.531 kB / 0.5404 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006417/0.4317, allocations: 61.48 kB / 0.5404 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.73e-05/0.4317, allocations: 26.92 kB / 0.5405 GB, free: 15.68 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.0004357/0.4322, allocations: 205.9 kB / 0.5407 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.4323, allocations: 49.31 kB / 0.5407 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.4344, allocations: 0.8442 MB / 0.5415 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.4344, allocations: 6.359 kB / 0.5415 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4344, allocations: 1.312 kB / 0.5415 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.4344, allocations: 0 / 0.5415 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003677/0.4381, allocations: 1.67 MB / 0.5432 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.4381, allocations: 1.312 kB / 0.5432 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005975/0.444, allocations: 0.8999 MB / 0.5441 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.652e-05/0.4441, allocations: 10.45 kB / 0.5441 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.106e-05/0.4442, allocations: 14.25 kB / 0.5441 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.4442, allocations: 6.25 kB / 0.5441 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4442, allocations: 9.266 kB / 0.5441 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/0.4472, allocations: 1.297 MB / 0.5454 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.4474, allocations: 44.7 kB / 0.5454 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.4475, allocations: 13.09 kB / 0.5454 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005556/0.448, allocations: 64.17 kB / 0.5455 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.4482, allocations: 77 kB / 0.5456 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-05/0.4483, allocations: 19.39 kB / 0.5456 GB, free: 12.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003898/0.4487, allocations: 256.1 kB / 0.5458 GB, free: 12.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4487, allocations: 96 / 0.5458 GB, free: 12.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005986/0.4493, allocations: 150.8 kB / 0.546 GB, free: 12.5 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.003439/0.4527, allocations: 1.865 MB / 0.5478 GB, free: 11.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.4548, allocations: 0.7569 MB / 0.5485 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.4548, allocations: 0 / 0.5485 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009769/0.4558, allocations: 418 kB / 0.5489 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000795/0.4566, allocations: 114.7 kB / 0.549 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.4687, allocations: 6.072 MB / 0.555 GB, free: 6.688 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.469, allocations: 257.1 kB / 0.5552 GB, free: 6.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005405/0.4696, allocations: 95.14 kB / 0.5553 GB, free: 6.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000461/0.47, allocations: 190 kB / 0.5555 GB, free: 6.328 MB / 398.1 MB Notification: Performance of SimCode: time 1.432e-06/0.47, allocations: 0 / 0.5555 GB, free: 6.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0422/0.5122, allocations: 14.07 MB / 0.5692 GB, free: 9.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.4, allocations: 14.36 kB / 0.5692 GB, free: 9.402 MB / 414.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 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: 16.46761469298508] Failed to read output from testmodel.py, exit status != 0: 13.582252884982154 13.610617755 13.212330882 Calling exit ...