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.00136/0.00136, allocations: 92.42 kB / 20.46 MB, free: 1.246 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.001581/0.001581, allocations: 218.3 kB / 23.77 MB, free: 4.43 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.1131/0.1131, allocations: 24.03 MB / 338 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: 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: 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.002837/0.002837, allocations: 63.89 kB / 475.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2892, allocations: 59.58 MB / 0.5229 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003367/0.2925, allocations: 2.924 MB / 0.5257 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2938, allocations: 0.9048 MB / 0.5266 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.294, allocations: 3.625 kB / 0.5266 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.2941, allocations: 66.94 kB / 0.5267 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002887/0.2944, allocations: 175.7 kB / 0.5269 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004513/0.2949, allocations: 194.1 kB / 0.5271 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005863/0.2955, allocations: 0.7475 MB / 0.5278 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00043/0.2959, allocations: 353.5 kB / 0.5281 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003407/0.2962, allocations: 316.9 kB / 0.5284 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004104/0.2966, allocations: 356.1 kB / 0.5288 GB, free: 7.184 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2968, allocations: 76.84 kB / 0.5288 GB, free: 7.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.2969, allocations: 76.62 kB / 0.5289 GB, free: 7.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.297, allocations: 206.2 kB / 0.5291 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002564/0.2973, allocations: 290.5 kB / 0.5294 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007009/0.298, allocations: 0.7979 MB / 0.5302 GB, free: 6.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.298, allocations: 1.156 kB / 0.5302 GB, free: 6.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.298, allocations: 0 / 0.5302 GB, free: 6.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.298, allocations: 1.031 kB / 0.5302 GB, free: 6.613 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.001731/0.2997, allocations: 0.8434 MB / 0.531 GB, free: 6.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.2998, allocations: 11.17 kB / 0.531 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.2999, allocations: 66.78 kB / 0.5311 GB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.3004, allocations: 337.7 kB / 0.5314 GB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.3005, allocations: 110.7 kB / 0.5315 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.3006, allocations: 49.53 kB / 0.5315 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.3022, allocations: 0.7393 MB / 0.5323 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3022, allocations: 3.984 kB / 0.5323 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-05/0.3023, allocations: 20.38 kB / 0.5323 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3023, allocations: 11.69 kB / 0.5323 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.3038, allocations: 0.5995 MB / 0.5329 GB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004921/0.3087, allocations: 2.28 MB / 0.5351 GB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.3098, allocations: 0.5197 MB / 0.5356 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008606/0.3107, allocations: 389.4 kB / 0.536 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.3107, allocations: 4.75 kB / 0.536 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.3108, allocations: 39.08 kB / 0.536 GB, free: 3.523 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 1.894e-06/0.3108, allocations: 3.938 kB / 0.536 GB, free: 3.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005902/0.3167, allocations: 2.175 MB / 0.5382 GB, free: 2.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.3167, allocations: 58.8 kB / 0.5382 GB, free: 2.602 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/0.317, allocations: 281.9 kB / 0.5385 GB, free: 2.441 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.535e-05/0.317, allocations: 36.14 kB / 0.5385 GB, free: 2.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.941e-05/0.3171, allocations: 241.5 kB / 0.5387 GB, free: 2.203 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3172, allocations: 204.5 kB / 0.5389 GB, free: 2.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.3174, allocations: 95.25 kB / 0.539 GB, free: 1.992 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.045e-05/0.3175, allocations: 352.1 kB / 0.5394 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008484/0.3183, allocations: 374.5 kB / 0.5397 GB, free: 1.531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008555/0.3192, allocations: 423.9 kB / 0.5401 GB, free: 1.344 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006633/0.3258, allocations: 2.009 MB / 0.5421 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3258, allocations: 1.719 kB / 0.5421 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001813/0.3276, allocations: 0.8513 MB / 0.5429 GB, free: 176 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3276, allocations: 5.062 kB / 0.5429 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.3276, allocations: 3.094 kB / 0.5429 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.3277, allocations: 3.812 kB / 0.5429 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006081/0.3337, allocations: 0.9021 MB / 0.5438 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.3337, allocations: 5.719 kB / 0.5438 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000535/0.3343, allocations: 59.55 kB / 0.5439 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.286e-05/0.3343, allocations: 18.88 kB / 0.5439 GB, free: 15.82 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.0003709/0.3347, allocations: 202.5 kB / 0.5441 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.743e-05/0.3348, allocations: 42.8 kB / 0.5441 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00207/0.3369, allocations: 0.8188 MB / 0.5449 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3369, allocations: 5.75 kB / 0.5449 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3369, allocations: 0 / 0.5449 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3369, allocations: 5.266 kB / 0.5449 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003705/0.3406, allocations: 1.601 MB / 0.5465 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3406, allocations: 1.281 kB / 0.5465 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006241/0.3468, allocations: 0.8907 MB / 0.5474 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.3468, allocations: 2.688 kB / 0.5474 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.927e-05/0.3469, allocations: 14.36 kB / 0.5474 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3469, allocations: 6.312 kB / 0.5474 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3469, allocations: 1.344 kB / 0.5474 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002959/0.3499, allocations: 1.271 MB / 0.5486 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.55e-05/0.3499, allocations: 38.72 kB / 0.5487 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.112e-05/0.35, allocations: 17.52 kB / 0.5487 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005315/0.3506, allocations: 59.7 kB / 0.5487 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.3508, allocations: 80.36 kB / 0.5488 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.012e-05/0.3508, allocations: 19.56 kB / 0.5488 GB, free: 12.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002238/0.351, allocations: 201 kB / 0.549 GB, free: 12.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.351, allocations: 0 / 0.549 GB, free: 12.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005199/0.3515, allocations: 143.8 kB / 0.5492 GB, free: 12.76 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.0001588/0.3517, allocations: 123.7 kB / 0.5493 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.3536, allocations: 0.7374 MB / 0.55 GB, free: 12.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3536, allocations: 1.062 kB / 0.55 GB, free: 12.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009625/0.3546, allocations: 407.7 kB / 0.5504 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005325/0.3551, allocations: 81.42 kB / 0.5505 GB, free: 12.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004456/0.3596, allocations: 1.923 MB / 0.5524 GB, free: 10.81 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.3598, allocations: 264.1 kB / 0.5526 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.3602, allocations: 49.66 kB / 0.5527 GB, free: 10.62 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3602, allocations: 0 / 0.5527 GB, free: 10.62 MB / 398.1 MB Notification: Performance of Templates: time 0.01087/0.371, allocations: 7.164 MB / 0.5596 GB, free: 5.137 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_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -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: 7.6268360377289355] Failed to read output from testmodel.py, exit status != 0: 0.38093632087111473 0.394789034 0.09358186799999994 Calling exit ...