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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 191.4 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 225.6 MB / 251 MB, free: 13 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.1002/0.1002, allocations: 22.71 MB / 329 MB, free: 2.352 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001")
translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 71.88 kB / 463.1 MB, free: 14.6 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1329, allocations: 58.05 MB / 0.5089 GB, free: 4.441 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.005061/0.138, allocations: 3.215 MB / 0.5121 GB, free: 1.195 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001833/0.1398, allocations: 0.9041 MB / 0.513 GB, free: 292 kB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/0.14, allocations: 4 kB / 0.513 GB, free: 288 kB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000223/0.1402, allocations: 79.28 kB / 0.513 GB, free: 208 kB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003535/0.1406, allocations: 174.7 kB / 0.5132 GB, free: 32 kB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.2267/0.3673, allocations: 189.1 kB / 0.5134 GB, free: 12.05 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009836/0.3683, allocations: 0.752 MB / 0.5141 GB, free: 12.04 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000505/0.3688, allocations: 354.3 kB / 0.5145 GB, free: 12.02 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003558/0.3691, allocations: 315.3 kB / 0.5148 GB, free: 12 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004311/0.3695, allocations: 398 kB / 0.5151 GB, free: 11.94 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.3697, allocations: 76.59 kB / 0.5152 GB, free: 11.94 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.3698, allocations: 78.16 kB / 0.5153 GB, free: 11.94 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.37, allocations: 207.2 kB / 0.5155 GB, free: 11.92 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000268/0.3702, allocations: 341.6 kB / 0.5158 GB, free: 11.84 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006967/0.3709, allocations: 0.799 MB / 0.5166 GB, free: 11.74 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3709, allocations: 0 / 0.5166 GB, free: 11.74 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.753e-06/0.3709, allocations: 1.281 kB / 0.5166 GB, free: 11.74 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.081e-05/0.371, allocations: 0 / 0.5166 GB, free: 11.74 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.001871/0.3728, allocations: 0.8335 MB / 0.5174 GB, free: 11.3 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3729, allocations: 13.78 kB / 0.5174 GB, free: 11.3 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.373, allocations: 65.78 kB / 0.5175 GB, free: 11.27 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005392/0.3735, allocations: 335.1 kB / 0.5178 GB, free: 11.09 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.3737, allocations: 107.8 kB / 0.5179 GB, free: 11.03 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.3738, allocations: 55.8 kB / 0.518 GB, free: 11.02 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.3755, allocations: 0.6837 MB / 0.5186 GB, free: 10.98 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.3755, allocations: 0.9844 kB / 0.5186 GB, free: 10.98 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.581e-05/0.3756, allocations: 19.53 kB / 0.5186 GB, free: 10.98 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.3756, allocations: 12.88 kB / 0.5187 GB, free: 10.98 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.3771, allocations: 0.6007 MB / 0.5192 GB, free: 10.97 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005607/0.3827, allocations: 2.539 MB / 0.5217 GB, free: 9.812 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.3841, allocations: 0.5321 MB / 0.5222 GB, free: 9.609 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.3852, allocations: 384.3 kB / 0.5226 GB, free: 9.473 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.959e-05/0.3852, allocations: 16.48 kB / 0.5226 GB, free: 9.465 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.3853, allocations: 34.03 kB / 0.5227 GB, free: 9.426 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=46): time 2.986e-06/0.3853, allocations: 0 / 0.5227 GB, free: 9.426 MB / 382.1 MB
Notification: Performance of matching and sorting (n=52): time 0.006521/0.3918, allocations: 2.187 MB / 0.5248 GB, free: 8.562 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.3918, allocations: 57.56 kB / 0.5248 GB, free: 8.5 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005376/0.3924, allocations: 363.4 kB / 0.5252 GB, free: 8.309 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.971e-05/0.3924, allocations: 32.27 kB / 0.5252 GB, free: 8.273 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.3926, allocations: 233.1 kB / 0.5254 GB, free: 8.082 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001597/0.3927, allocations: 203.8 kB / 0.5256 GB, free: 7.926 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.3929, allocations: 97.25 kB / 0.5257 GB, free: 7.879 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 8.632e-05/0.393, allocations: 355.6 kB / 0.5261 GB, free: 7.547 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000877/0.3939, allocations: 373.9 kB / 0.5264 GB, free: 7.414 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009115/0.3948, allocations: 427.7 kB / 0.5268 GB, free: 7.227 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.006902/0.4017, allocations: 1.995 MB / 0.5288 GB, free: 6.676 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4017, allocations: 7.938 kB / 0.5288 GB, free: 6.668 MB / 382.1 MB
Notification: Performance of matching and sorting (n=68) (initialization): time 0.00211/0.4038, allocations: 0.8504 MB / 0.5296 GB, free: 6.355 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.4038, allocations: 6.625 kB / 0.5296 GB, free: 6.355 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4038, allocations: 3.125 kB / 0.5296 GB, free: 6.355 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.861e-05/0.4039, allocations: 6.062 kB / 0.5296 GB, free: 6.355 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006158/0.41, allocations: 0.9061 MB / 0.5305 GB, free: 6.324 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.17e-05/0.4101, allocations: 5.875 kB / 0.5305 GB, free: 6.324 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006759/0.4107, allocations: 62.28 kB / 0.5306 GB, free: 6.309 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.195e-05/0.4108, allocations: 21.53 kB / 0.5306 GB, free: 6.305 MB / 382.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.000412/0.4112, allocations: 207.9 kB / 0.5308 GB, free: 6.148 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.4113, allocations: 44.81 kB / 0.5309 GB, free: 6.125 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002081/0.4134, allocations: 0.8235 MB / 0.5317 GB, free: 5.812 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.4134, allocations: 5.344 kB / 0.5317 GB, free: 5.812 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4134, allocations: 0 / 0.5317 GB, free: 5.812 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4134, allocations: 7.672 kB / 0.5317 GB, free: 5.812 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/0.417, allocations: 1.766 MB / 0.5334 GB, free: 4.953 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.417, allocations: 1.031 kB / 0.5334 GB, free: 4.953 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006159/0.4232, allocations: 0.8914 MB / 0.5343 GB, free: 4.824 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.861e-05/0.4232, allocations: 8.141 kB / 0.5343 GB, free: 4.82 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/0.4234, allocations: 15.08 kB / 0.5343 GB, free: 4.812 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.084e-05/0.4234, allocations: 17.27 kB / 0.5343 GB, free: 4.801 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.4234, allocations: 4.641 kB / 0.5343 GB, free: 4.797 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.4261, allocations: 1.273 MB / 0.5356 GB, free: 4.07 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.4262, allocations: 42.95 kB / 0.5356 GB, free: 4.039 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.603e-05/0.4263, allocations: 13.31 kB / 0.5356 GB, free: 4.031 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005517/0.4269, allocations: 51.36 kB / 0.5357 GB, free: 4.008 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.4271, allocations: 88.27 kB / 0.5357 GB, free: 3.949 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.743e-05/0.4271, allocations: 18.98 kB / 0.5358 GB, free: 3.941 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0002568/0.4274, allocations: 256.5 kB / 0.536 GB, free: 3.777 MB / 382.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.4274, allocations: 0 / 0.536 GB, free: 3.777 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0005462/0.4279, allocations: 145.5 kB / 0.5361 GB, free: 3.762 MB / 382.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.0001327/0.428, allocations: 110.7 kB / 0.5362 GB, free: 3.668 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.001821/0.4299, allocations: 0.746 MB / 0.537 GB, free: 3.328 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.4299, allocations: 4 kB / 0.537 GB, free: 3.324 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008665/0.4307, allocations: 411.5 kB / 0.5374 GB, free: 3.145 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005925/0.4313, allocations: 102.2 kB / 0.5375 GB, free: 3.098 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003908/0.4352, allocations: 1.893 MB / 0.5393 GB, free: 1.93 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.4355, allocations: 0.8546 MB / 0.5401 GB, free: 1.156 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0004535/0.4359, allocations: 102.2 kB / 0.5402 GB, free: 1.109 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00026/0.4362, allocations: 49.73 kB / 0.5403 GB, free: 1.098 MB / 382.1 MB
Notification: Performance of SimCode: time 9.42e-07/0.4362, allocations: 0 / 0.5403 GB, free: 1.098 MB / 382.1 MB
Notification: Performance of Templates: time 0.01738/0.4536, allocations: 8.872 MB / 0.549 GB, free: 12.8 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile [Timeout 660]
(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 & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.323258267715573]
Failed to read output from testmodel.py, exit status != 0:
0.4633499076589942 0.479211587 0.10484658300000001
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f6c15a917b0>