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.001673/0.001673, allocations: 103.2 kB / 16.45 MB, free: 6.449 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.001376/0.001376, allocations: 187.8 kB / 19.4 MB, free: 3.66 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.449/1.449, allocations: 225.6 MB / 247.8 MB, free: 13.95 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 / 325.4 MB, free: 3.547 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.001979/0.001979, allocations: 63.89 kB / 457.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.11, allocations: 58.01 MB / 0.5036 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005746/0.1157, allocations: 4.219 MB / 0.5077 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002376/0.1181, allocations: 1.169 MB / 0.5089 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002698/0.1184, allocations: 7.938 kB / 0.5089 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002958/0.1187, allocations: 106.9 kB / 0.509 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005681/0.1192, allocations: 277.9 kB / 0.5092 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000847/0.1201, allocations: 299.5 kB / 0.5095 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2066/0.3267, allocations: 1.197 MB / 0.5107 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009741/0.3276, allocations: 0.5761 MB / 0.5112 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006479/0.3283, allocations: 493.4 kB / 0.5117 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006971/0.329, allocations: 0.6101 MB / 0.5123 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000169/0.3291, allocations: 118.8 kB / 0.5124 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001608/0.3293, allocations: 122.5 kB / 0.5125 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.3295, allocations: 331.3 kB / 0.5129 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003724/0.3299, allocations: 0.5233 MB / 0.5134 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001033/0.3309, allocations: 1.26 MB / 0.5146 GB, free: 10.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3309, allocations: 0 / 0.5146 GB, free: 10.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3309, allocations: 0 / 0.5146 GB, free: 10.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.3309, allocations: 0 / 0.5146 GB, free: 10.48 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.002731/0.3337, allocations: 1.285 MB / 0.5159 GB, free: 9.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.3337, allocations: 8.594 kB / 0.5159 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.3339, allocations: 105.7 kB / 0.516 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006836/0.3346, allocations: 0.5154 MB / 0.5165 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/0.3347, allocations: 159.2 kB / 0.5166 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3349, allocations: 90.61 kB / 0.5167 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/0.3371, allocations: 1.012 MB / 0.5177 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.3371, allocations: 0.5 kB / 0.5177 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.356e-05/0.3372, allocations: 33.38 kB / 0.5177 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.3372, allocations: 21.56 kB / 0.5177 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001997/0.3392, allocations: 0.9016 MB / 0.5186 GB, free: 9.258 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.006451/0.3457, allocations: 3.557 MB / 0.5221 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/0.3475, allocations: 0.8725 MB / 0.523 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.3486, allocations: 0.5989 MB / 0.5235 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.991e-05/0.3487, allocations: 14.77 kB / 0.5235 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.3487, allocations: 39.45 kB / 0.5236 GB, free: 6.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.464e-06/0.3487, allocations: 0 / 0.5236 GB, free: 6.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.007643/0.3564, allocations: 3.168 MB / 0.5267 GB, free: 5.602 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.3564, allocations: 61.08 kB / 0.5267 GB, free: 5.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005143/0.3569, allocations: 0.512 MB / 0.5272 GB, free: 5.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.176e-05/0.357, allocations: 41.33 kB / 0.5273 GB, free: 5.254 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.3571, allocations: 329.1 kB / 0.5276 GB, free: 4.992 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000191/0.3573, allocations: 323.7 kB / 0.5279 GB, free: 4.742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002746/0.3576, allocations: 159.6 kB / 0.5281 GB, free: 4.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.402e-05/0.3577, allocations: 382.9 kB / 0.5284 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.3588, allocations: 0.5348 MB / 0.5289 GB, free: 4.125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/0.36, allocations: 0.6186 MB / 0.5295 GB, free: 3.844 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.37, allocations: 3.137 MB / 0.5326 GB, free: 2.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.37, allocations: 6.75 kB / 0.5326 GB, free: 2.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.002528/0.3726, allocations: 1.294 MB / 0.5339 GB, free: 2.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.3726, allocations: 6.75 kB / 0.5339 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3726, allocations: 1.5 kB / 0.5339 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.3726, allocations: 8.297 kB / 0.5339 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006533/0.3792, allocations: 1.031 MB / 0.5349 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.02e-05/0.3792, allocations: 11.02 kB / 0.5349 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008142/0.38, allocations: 70.39 kB / 0.535 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.947e-05/0.3801, allocations: 35.8 kB / 0.535 GB, free: 1.91 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.0004801/0.3805, allocations: 260.4 kB / 0.5353 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.3807, allocations: 74.03 kB / 0.5353 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002495/0.3832, allocations: 1.209 MB / 0.5365 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.3832, allocations: 12.62 kB / 0.5365 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3832, allocations: 0 / 0.5365 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3832, allocations: 9.422 kB / 0.5365 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004405/0.3876, allocations: 2.456 MB / 0.5389 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3876, allocations: 2.688 kB / 0.5389 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006727/0.3943, allocations: 1.011 MB / 0.5399 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.3943, allocations: 5.312 kB / 0.5399 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-05/0.3944, allocations: 33.03 kB / 0.54 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.3945, allocations: 5.531 kB / 0.54 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3945, allocations: 3.812 kB / 0.54 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003771/0.3982, allocations: 1.843 MB / 0.5418 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.3984, allocations: 148 kB / 0.5419 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.3986, allocations: 28.33 kB / 0.5419 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007328/0.3993, allocations: 69.64 kB / 0.542 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.3995, allocations: 105.8 kB / 0.5421 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.915e-05/0.3996, allocations: 28.36 kB / 0.5421 GB, free: 13.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004227/0.4, allocations: 364.5 kB / 0.5425 GB, free: 13.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4, allocations: 4 kB / 0.5425 GB, free: 13.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006591/0.4007, allocations: 235.7 kB / 0.5427 GB, free: 13.49 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.0001802/0.4009, allocations: 136.4 kB / 0.5428 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.4032, allocations: 1.092 MB / 0.5439 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4032, allocations: 3.906 kB / 0.5439 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.4044, allocations: 0.5708 MB / 0.5445 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007602/0.4052, allocations: 173.8 kB / 0.5446 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005879/0.4111, allocations: 2.812 MB / 0.5474 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006459/0.4117, allocations: 0.9619 MB / 0.5483 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007248/0.4124, allocations: 169.9 kB / 0.5485 GB, free: 9.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003726/0.4128, allocations: 75.41 kB / 0.5485 GB, free: 9.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.041e-06/0.4128, allocations: 0 / 0.5485 GB, free: 9.59 MB / 398.1 MB Notification: Performance of Templates: time 0.0218/0.4346, allocations: 12.75 MB / 0.561 GB, free: 12.99 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.3544636480510235] Failed to read output from testmodel.py, exit status != 0: 0.44291387824341655 0.45594061700000005 0.122081011 Calling exit ...