Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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.001854/0.001854, allocations: 84.98 kB / 19.76 MB, free: 2.023 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.002178/0.002178, allocations: 159.2 kB / 23.01 MB, free: 4.965 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.471/1.471, allocations: 177.2 MB / 203.4 MB, free: 8.945 MB / 190.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.1026/0.1026, allocations: 17.8 MB / 277.6 MB, free: 15.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003") [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.00205/0.00205, allocations: 71.89 kB / 415.4 MB, free: 3.715 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09641/0.09846, allocations: 59.57 MB / 475 MB, free: 8.035 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004053/0.1025, allocations: 2.927 MB / 477.9 MB, free: 5.086 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.1041, allocations: 0.9002 MB / 478.8 MB, free: 4.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.1042, allocations: 8 kB / 478.8 MB, free: 4.172 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.1044, allocations: 75.28 kB / 478.9 MB, free: 4.098 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003227/0.1047, allocations: 170.7 kB / 479.1 MB, free: 3.93 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.1052, allocations: 195.7 kB / 479.3 MB, free: 3.738 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007614/0.106, allocations: 0.7563 MB / 480 MB, free: 2.977 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004862/0.1065, allocations: 362.1 kB / 480.4 MB, free: 2.617 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003821/0.1068, allocations: 311.1 kB / 480.7 MB, free: 2.312 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005019/0.1073, allocations: 350.7 kB / 481 MB, free: 1.969 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.1075, allocations: 76 kB / 481.1 MB, free: 1.895 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.1076, allocations: 80 kB / 481.2 MB, free: 1.816 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.1078, allocations: 211.3 kB / 481.4 MB, free: 1.609 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003199/0.1081, allocations: 290.9 kB / 481.7 MB, free: 1.324 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008277/0.1089, allocations: 0.8017 MB / 482.5 MB, free: 0.5195 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1089, allocations: 4 kB / 482.5 MB, free: 0.5156 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1089, allocations: 4 kB / 482.5 MB, free: 0.5117 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.109, allocations: 0 / 482.5 MB, free: 0.5117 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.208/0.317, allocations: 0.841 MB / 483.3 MB, free: 52.67 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.317, allocations: 10.67 kB / 483.3 MB, free: 52.67 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.3171, allocations: 64.53 kB / 483.4 MB, free: 52.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/0.3176, allocations: 326.3 kB / 483.7 MB, free: 52.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.3177, allocations: 110.4 kB / 483.8 MB, free: 52.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.735e-05/0.3178, allocations: 52.28 kB / 483.9 MB, free: 52.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.3192, allocations: 0.7385 MB / 484.6 MB, free: 52.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.3192, allocations: 3.938 kB / 484.6 MB, free: 52.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.381e-05/0.3193, allocations: 19.81 kB / 484.6 MB, free: 52.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.3193, allocations: 12.38 kB / 484.6 MB, free: 52.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.3205, allocations: 0.603 MB / 485.2 MB, free: 52.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.3246, allocations: 2.275 MB / 487.5 MB, free: 51.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.3257, allocations: 0.5412 MB / 488.1 MB, free: 51.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007703/0.3264, allocations: 396.8 kB / 488.4 MB, free: 50.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.151e-05/0.3265, allocations: 7.031 kB / 488.5 MB, free: 50.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/0.3265, allocations: 40.81 kB / 488.5 MB, free: 50.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=48): time 1.903e-06/0.3265, allocations: 3.594 kB / 488.5 MB, free: 50.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.005446/0.3319, allocations: 2.219 MB / 490.7 MB, free: 50.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.332, allocations: 61.94 kB / 490.8 MB, free: 49.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.3322, allocations: 280.1 kB / 491 MB, free: 49.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.3322, allocations: 36.7 kB / 491.1 MB, free: 49.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.148e-05/0.3323, allocations: 232.8 kB / 491.3 MB, free: 49.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.3324, allocations: 202.6 kB / 491.5 MB, free: 49.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3326, allocations: 101.8 kB / 491.6 MB, free: 49.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.414e-05/0.3326, allocations: 350.8 kB / 492 MB, free: 49.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000763/0.3334, allocations: 379.4 kB / 492.3 MB, free: 48.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007666/0.3342, allocations: 418.1 kB / 492.7 MB, free: 48.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006157/0.3403, allocations: 2.03 MB / 494.8 MB, free: 48.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3403, allocations: 0 / 494.8 MB, free: 48.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001714/0.342, allocations: 0.8494 MB / 495.6 MB, free: 47.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.342, allocations: 10.44 kB / 495.6 MB, free: 47.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.342, allocations: 3.125 kB / 495.6 MB, free: 47.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.3421, allocations: 3.281 kB / 495.6 MB, free: 47.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005876/0.3479, allocations: 0.9151 MB / 496.5 MB, free: 47.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.348, allocations: 9.547 kB / 496.5 MB, free: 47.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.3485, allocations: 53.92 kB / 496.6 MB, free: 47.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.944e-05/0.3485, allocations: 23.14 kB / 496.6 MB, free: 47.81 MB / 446.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: 7 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0002862/0.3488, allocations: 195.7 kB / 496.8 MB, free: 47.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.077e-05/0.3489, allocations: 42.48 kB / 496.9 MB, free: 47.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/0.3507, allocations: 0.8488 MB / 497.7 MB, free: 47.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3507, allocations: 3.344 kB / 497.7 MB, free: 47.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3507, allocations: 1.875 kB / 497.7 MB, free: 47.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.3507, allocations: 6.672 kB / 497.7 MB, free: 47.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002893/0.3536, allocations: 1.609 MB / 499.3 MB, free: 46.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3536, allocations: 0 / 499.3 MB, free: 46.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005966/0.3596, allocations: 0.9042 MB / 0.4885 GB, free: 46.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.3596, allocations: 3.125 kB / 0.4885 GB, free: 46.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-05/0.3596, allocations: 17.42 kB / 0.4885 GB, free: 46.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.3596, allocations: 3 kB / 0.4885 GB, free: 46.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3596, allocations: 0 / 0.4885 GB, free: 46.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.362, allocations: 1.303 MB / 0.4898 GB, free: 45.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-05/0.3621, allocations: 36.08 kB / 0.4898 GB, free: 45.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.096e-05/0.3622, allocations: 14.52 kB / 0.4898 GB, free: 45.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.3627, allocations: 53.97 kB / 0.4899 GB, free: 45.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.3628, allocations: 75.78 kB / 0.49 GB, free: 45.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.506e-05/0.3629, allocations: 28.25 kB / 0.49 GB, free: 45.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001403/0.363, allocations: 204.3 kB / 0.4902 GB, free: 45.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.363, allocations: 0 / 0.4902 GB, free: 45.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000482/0.3635, allocations: 145.7 kB / 0.4903 GB, free: 45.69 MB / 446.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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.0001066/0.3636, allocations: 115.3 kB / 0.4904 GB, free: 45.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.3652, allocations: 0.7558 MB / 0.4912 GB, free: 45.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3652, allocations: 7.469 kB / 0.4912 GB, free: 45.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008215/0.3661, allocations: 415 kB / 0.4916 GB, free: 45.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004881/0.3666, allocations: 81.52 kB / 0.4917 GB, free: 45.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.3696, allocations: 1.781 MB / 0.4934 GB, free: 44.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001819/0.3697, allocations: 266.2 kB / 0.4937 GB, free: 44.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003251/0.3701, allocations: 87.95 kB / 0.4937 GB, free: 44.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.3703, allocations: 51.14 kB / 0.4938 GB, free: 44.09 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3703, allocations: 0 / 0.4938 GB, free: 44.09 MB / 446.1 MB Notification: Performance of Templates: time 0.01191/0.3822, allocations: 7.887 MB / 0.5015 GB, free: 43.28 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003 -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 320.17766983399633] Failed to read output from testmodel.py, exit status != 0: 0.3905794289894402 0.402085647 0.29038200599999997 Calling exit ...