Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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.001643/0.001643, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001976/0.001976, allocations: 209.6 kB / 23.01 MB, free: 4.992 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.476/1.476, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.1058/0.1058, allocations: 24.04 MB / 337.2 MB, free: 11.35 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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",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.002355/0.002355, allocations: 67.89 kB / 474.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3555, allocations: 59.57 MB / 0.5217 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004408/0.3599, allocations: 2.921 MB / 0.5245 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.3621, allocations: 0.915 MB / 0.5254 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005008/0.3626, allocations: 4.344 kB / 0.5254 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003488/0.3629, allocations: 70.33 kB / 0.5255 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006332/0.3636, allocations: 168.3 kB / 0.5256 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000703/0.3643, allocations: 202.5 kB / 0.5258 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.3653, allocations: 0.7416 MB / 0.5266 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007486/0.3661, allocations: 354.5 kB / 0.5269 GB, free: 6.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007519/0.3668, allocations: 315.8 kB / 0.5272 GB, free: 6.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008027/0.3676, allocations: 351.8 kB / 0.5275 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002707/0.3679, allocations: 76.78 kB / 0.5276 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.3682, allocations: 77.91 kB / 0.5277 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002217/0.3684, allocations: 206.2 kB / 0.5279 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003233/0.3687, allocations: 294.4 kB / 0.5282 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009225/0.3696, allocations: 0.8024 MB / 0.5289 GB, free: 6.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3696, allocations: 0 / 0.5289 GB, free: 6.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3696, allocations: 0 / 0.5289 GB, free: 6.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.3697, allocations: 1.312 kB / 0.5289 GB, free: 6.121 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002054/0.3717, allocations: 0.842 MB / 0.5298 GB, free: 5.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.3718, allocations: 10.86 kB / 0.5298 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.3719, allocations: 90.67 kB / 0.5299 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.372, allocations: 66.2 kB / 0.5299 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005805/0.3726, allocations: 331.6 kB / 0.5302 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.3727, allocations: 109.4 kB / 0.5303 GB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.3728, allocations: 50.22 kB / 0.5304 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.3745, allocations: 0.7421 MB / 0.5311 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.3745, allocations: 0 / 0.5311 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.173e-05/0.3746, allocations: 16.91 kB / 0.5311 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.3746, allocations: 11.34 kB / 0.5311 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.3761, allocations: 0.604 MB / 0.5317 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00546/0.3816, allocations: 2.368 MB / 0.5341 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.3828, allocations: 0.5194 MB / 0.5346 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008766/0.3837, allocations: 384.9 kB / 0.5349 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.3837, allocations: 13.86 kB / 0.5349 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.3837, allocations: 42.34 kB / 0.535 GB, free: 2.902 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 3.457e-06/0.3837, allocations: 3.984 kB / 0.535 GB, free: 2.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.006546/0.3903, allocations: 2.184 MB / 0.5371 GB, free: 2.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.3903, allocations: 58.12 kB / 0.5372 GB, free: 1.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005246/0.3908, allocations: 359.7 kB / 0.5375 GB, free: 1.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.323e-05/0.3909, allocations: 32.7 kB / 0.5375 GB, free: 1.754 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.3911, allocations: 240.9 kB / 0.5378 GB, free: 1.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.3912, allocations: 197.6 kB / 0.538 GB, free: 1.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/0.3915, allocations: 98.16 kB / 0.5381 GB, free: 1.348 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3916, allocations: 360.2 kB / 0.5384 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009188/0.3925, allocations: 378 kB / 0.5388 GB, free: 0.875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009304/0.3934, allocations: 428.5 kB / 0.5392 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007147/0.4005, allocations: 1.995 MB / 0.5411 GB, free: 60 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.4006, allocations: 1.375 kB / 0.5411 GB, free: 60 kB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002426/0.403, allocations: 0.8578 MB / 0.542 GB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.403, allocations: 7.312 kB / 0.542 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.403, allocations: 1.438 kB / 0.542 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.646e-05/0.403, allocations: 4.312 kB / 0.542 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005996/0.409, allocations: 0.9021 MB / 0.5429 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.838e-05/0.4091, allocations: 8.312 kB / 0.5429 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000767/0.4098, allocations: 57.34 kB / 0.5429 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.4099, allocations: 22.36 kB / 0.5429 GB, free: 15.25 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: 8 * 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 (68): * Single equations (assignments): 68 * 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.0005935/0.4105, allocations: 211.5 kB / 0.5431 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.4107, allocations: 45.34 kB / 0.5432 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002245/0.4129, allocations: 0.8274 MB / 0.544 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.413, allocations: 8.828 kB / 0.544 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.413, allocations: 1.344 kB / 0.544 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.413, allocations: 3.984 kB / 0.544 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004201/0.4172, allocations: 1.665 MB / 0.5456 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4172, allocations: 0 / 0.5456 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005946/0.4231, allocations: 0.8873 MB / 0.5465 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.602e-05/0.4231, allocations: 1.469 kB / 0.5465 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/0.4233, allocations: 19.42 kB / 0.5465 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.364e-05/0.4233, allocations: 10.41 kB / 0.5465 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.758e-06/0.4233, allocations: 1.344 kB / 0.5465 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/0.4267, allocations: 1.275 MB / 0.5478 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002353/0.427, allocations: 43.58 kB / 0.5478 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.4271, allocations: 12.62 kB / 0.5478 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006285/0.4277, allocations: 51.5 kB / 0.5479 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.428, allocations: 84.94 kB / 0.548 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.824e-05/0.428, allocations: 15.16 kB / 0.548 GB, free: 12.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004029/0.4284, allocations: 260.9 kB / 0.5482 GB, free: 12.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4284, allocations: 0 / 0.5482 GB, free: 12.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007126/0.4291, allocations: 149.8 kB / 0.5484 GB, free: 12.1 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.003625/0.4328, allocations: 1.84 MB / 0.5502 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.4349, allocations: 0.7373 MB / 0.5509 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.4349, allocations: 5.094 kB / 0.5509 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.436, allocations: 413.1 kB / 0.5513 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009249/0.437, allocations: 101.8 kB / 0.5514 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/0.4505, allocations: 6.144 MB / 0.5574 GB, free: 6.039 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.4509, allocations: 258 kB / 0.5576 GB, free: 5.766 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005468/0.4514, allocations: 96.33 kB / 0.5577 GB, free: 5.668 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004451/0.4519, allocations: 191.3 kB / 0.5579 GB, free: 5.48 MB / 398.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4519, allocations: 192 / 0.5579 GB, free: 5.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04921/0.5011, allocations: 14.26 MB / 0.5718 GB, free: 7.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.13, allocations: 17.16 kB / 0.5718 GB, free: 7.465 MB / 414.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001_fmu --startTime=0 --stopTime=10000 --stepSize=1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.072577342856675] Failed to read output from testmodel.py, exit status != 0: 12.254882239736617 12.28491331 11.909957338 Calling exit ...