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.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.001817/0.001817, 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.00221/0.00221, allocations: 193.2 kB / 22.23 MB, free: 5.156 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.47/1.47, 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.102/0.102, allocations: 22.7 MB / 329 MB, free: 2.336 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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002817/0.002817, allocations: 75.88 kB / 463.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1331, 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_002): time 0.005968/0.139, allocations: 4.237 MB / 0.5131 GB, free: 176 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2082/0.3472, allocations: 1.165 MB / 0.5142 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/0.3475, allocations: 13.34 kB / 0.5142 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.3478, allocations: 105.4 kB / 0.5143 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004483/0.3482, allocations: 276.3 kB / 0.5146 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006358/0.3489, allocations: 301 kB / 0.5149 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009993/0.3499, allocations: 1.203 MB / 0.5161 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006551/0.3505, allocations: 0.5637 MB / 0.5166 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004868/0.351, allocations: 490.9 kB / 0.5171 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005914/0.3516, allocations: 0.6084 MB / 0.5177 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.3518, allocations: 123.5 kB / 0.5178 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.352, allocations: 121.6 kB / 0.5179 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002446/0.3522, allocations: 325.9 kB / 0.5182 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00045/0.3527, allocations: 0.5315 MB / 0.5187 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001214/0.3539, allocations: 1.252 MB / 0.52 GB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3539, allocations: 2.031 kB / 0.52 GB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3539, allocations: 0 / 0.52 GB, free: 10.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.3539, allocations: 0 / 0.52 GB, free: 10.73 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.002787/0.3567, allocations: 1.204 MB / 0.5211 GB, free: 10.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.3567, allocations: 10.72 kB / 0.5211 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.3569, allocations: 103.2 kB / 0.5212 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007494/0.3577, allocations: 472.6 kB / 0.5217 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.3578, allocations: 157.1 kB / 0.5218 GB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.358, allocations: 86.69 kB / 0.5219 GB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/0.3603, allocations: 1.019 MB / 0.5229 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.3603, allocations: 0 / 0.5229 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.513e-05/0.3604, allocations: 31.44 kB / 0.5229 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.3604, allocations: 20.62 kB / 0.523 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002046/0.3625, allocations: 0.9044 MB / 0.5239 GB, free: 8.816 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.007041/0.3695, allocations: 3.465 MB / 0.5272 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001957/0.3715, allocations: 0.878 MB / 0.5281 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/0.3727, allocations: 0.6007 MB / 0.5287 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.196e-05/0.3728, allocations: 11.95 kB / 0.5287 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.3728, allocations: 47.77 kB / 0.5287 GB, free: 6.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.224e-06/0.3728, allocations: 2.156 kB / 0.5287 GB, free: 6.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.008828/0.3816, allocations: 3.093 MB / 0.5318 GB, free: 5.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.3817, allocations: 61.73 kB / 0.5318 GB, free: 5.219 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007702/0.3824, allocations: 0.515 MB / 0.5323 GB, free: 4.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.3825, allocations: 40.64 kB / 0.5324 GB, free: 4.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.3827, allocations: 327.5 kB / 0.5327 GB, free: 4.668 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003002/0.383, allocations: 321.5 kB / 0.533 GB, free: 4.422 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002944/0.3833, allocations: 159 kB / 0.5331 GB, free: 4.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.54e-05/0.3834, allocations: 381.2 kB / 0.5335 GB, free: 4.004 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.3846, allocations: 0.5428 MB / 0.534 GB, free: 3.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.3859, allocations: 0.6145 MB / 0.5346 GB, free: 3.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01063/0.3965, allocations: 3.066 MB / 0.5376 GB, free: 2.199 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.3965, allocations: 1.375 kB / 0.5376 GB, free: 2.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.002865/0.3994, allocations: 1.296 MB / 0.5389 GB, free: 1.547 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3994, allocations: 9.531 kB / 0.5389 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3994, allocations: 2.562 kB / 0.5389 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.3994, allocations: 6.844 kB / 0.5389 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007031/0.4065, allocations: 1.028 MB / 0.5399 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.982e-05/0.4065, allocations: 13.09 kB / 0.5399 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.4076, allocations: 76.16 kB / 0.54 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.472e-05/0.4077, allocations: 35.7 kB / 0.54 GB, free: 1.148 MB / 382.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.0005841/0.4083, allocations: 249.1 kB / 0.5403 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.4085, allocations: 74.31 kB / 0.5403 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00273/0.4112, allocations: 1.209 MB / 0.5415 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.4112, allocations: 9.219 kB / 0.5415 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4112, allocations: 0 / 0.5415 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.4112, allocations: 5.109 kB / 0.5415 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005317/0.4165, allocations: 2.428 MB / 0.5439 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.4165, allocations: 6.25 kB / 0.5439 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007333/0.4239, allocations: 1.017 MB / 0.5449 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.861e-05/0.4239, allocations: 11.88 kB / 0.5449 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/0.424, allocations: 26.61 kB / 0.5449 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.424, allocations: 5.453 kB / 0.5449 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.424, allocations: 6.391 kB / 0.5449 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/0.4282, allocations: 1.843 MB / 0.5467 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/0.4285, allocations: 74.34 kB / 0.5468 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.4287, allocations: 24.88 kB / 0.5468 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008036/0.4295, allocations: 66.06 kB / 0.5469 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.4297, allocations: 110.7 kB / 0.547 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.698e-05/0.4298, allocations: 31.42 kB / 0.547 GB, free: 13.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004754/0.4303, allocations: 371 kB / 0.5474 GB, free: 12.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4303, allocations: 0 / 0.5474 GB, free: 12.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007099/0.431, allocations: 236 kB / 0.5476 GB, free: 12.79 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.0002004/0.4312, allocations: 132.9 kB / 0.5477 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.4339, allocations: 1.094 MB / 0.5488 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4339, allocations: 1.375 kB / 0.5488 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.4352, allocations: 0.5706 MB / 0.5494 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008987/0.4361, allocations: 168.5 kB / 0.5495 GB, free: 11.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006286/0.4424, allocations: 2.812 MB / 0.5523 GB, free: 9.535 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006423/0.4431, allocations: 0.9621 MB / 0.5532 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009196/0.444, allocations: 170 kB / 0.5534 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003958/0.4444, allocations: 75.41 kB / 0.5535 GB, free: 8.309 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4444, allocations: 0 / 0.5535 GB, free: 8.309 MB / 398.1 MB Notification: Performance of Templates: time 0.02474/0.4691, allocations: 13.28 MB / 0.5664 GB, free: 11.16 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.576712749898434] Failed to read output from testmodel.py, exit status != 0: 0.48048269283026457 0.49345933500000005 0.13626238400000001 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f4db2dc57b0>