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.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.0007631/0.0007631, allocations: 75.7 kB / 20.8 MB, free: 3.707 MB / 18.57 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.0007242/0.0007242, allocations: 166 kB / 24.09 MB, free: 420 kB / 18.57 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 0.8519/0.8519, allocations: 177.1 MB / 204.4 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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.05872/0.05872, allocations: 18.12 MB / 279 MB, free: 11.48 MB / 266.7 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_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 1.313e-06/1.313e-06, allocations: 0 / 416.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.406e-05, allocations: 3.656 kB / 416.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.002959/0.002983, allocations: 3.741 MB / 420.3 MB, free: 9.785 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.004548, allocations: 1.179 MB / 421.5 MB, free: 8.945 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.004744, allocations: 9.688 kB / 421.5 MB, free: 8.941 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.004957, allocations: 111.4 kB / 421.6 MB, free: 8.875 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003472/0.005304, allocations: 286.2 kB / 421.9 MB, free: 8.676 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006038/0.005908, allocations: 314.2 kB / 422.2 MB, free: 8.5 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007768/0.006684, allocations: 1.229 MB / 423.4 MB, free: 7.895 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005449/0.007229, allocations: 0.5735 MB / 424 MB, free: 7.547 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004837/0.007713, allocations: 469.5 kB / 424.4 MB, free: 7.355 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005111/0.008224, allocations: 0.4939 MB / 424.9 MB, free: 7.184 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.008354, allocations: 123 kB / 425.1 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.008492, allocations: 121.3 kB / 425.2 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.008689, allocations: 334.2 kB / 425.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002974/0.008986, allocations: 408.4 kB / 425.9 MB, free: 6.797 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.01, allocations: 1.324 MB / 427.2 MB, free: 6.289 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.01001, allocations: 0 / 427.2 MB, free: 6.289 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.01001, allocations: 1.125 kB / 427.2 MB, free: 6.289 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.712e-05/0.01002, allocations: 0 / 427.2 MB, free: 6.289 MB / 330.7 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.001797/0.01182, allocations: 1.201 MB / 428.4 MB, free: 5.574 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.01186, allocations: 10.36 kB / 428.4 MB, free: 5.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.012, allocations: 103.2 kB / 428.5 MB, free: 5.523 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005471/0.01255, allocations: 470.3 kB / 429 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.01266, allocations: 158.5 kB / 429.2 MB, free: 5.086 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.01277, allocations: 86.39 kB / 429.2 MB, free: 5.055 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.01417, allocations: 1.08 MB / 430.3 MB, free: 4.602 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.01419, allocations: 6.562 kB / 430.3 MB, free: 4.598 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.66e-05/0.01425, allocations: 38.05 kB / 430.4 MB, free: 4.566 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.01426, allocations: 19.78 kB / 430.4 MB, free: 4.566 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.01552, allocations: 0.8988 MB / 431.3 MB, free: 4.273 MB / 330.7 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.004153/0.01968, allocations: 3.106 MB / 434.4 MB, free: 2.547 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.02085, allocations: 0.8716 MB / 435.3 MB, free: 2.082 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007183/0.02157, allocations: 0.5899 MB / 435.8 MB, free: 1.793 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.803e-05/0.02163, allocations: 16.5 kB / 435.9 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.02165, allocations: 39 kB / 435.9 MB, free: 1.742 MB / 330.7 MB Notification: Performance of pre-optimization done (n=79): time 4.108e-06/0.02166, allocations: 0 / 435.9 MB, free: 1.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.004659/0.02632, allocations: 3.082 MB / 439 MB, free: 108 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.02635, allocations: 64.75 kB / 439 MB, free: 40 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.02673, allocations: 403.4 kB / 439.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.622e-05/0.02679, allocations: 41.7 kB / 439.5 MB, free: 15.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.02694, allocations: 345.2 kB / 439.8 MB, free: 15.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.02712, allocations: 327 kB / 440.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.0273, allocations: 153.2 kB / 440.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.02741, allocations: 371.9 kB / 440.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006985/0.02811, allocations: 0.5376 MB / 441.2 MB, free: 14.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007429/0.02885, allocations: 0.6119 MB / 441.8 MB, free: 14.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005289/0.03414, allocations: 3.071 MB / 444.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.03414, allocations: 0 / 444.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001677/0.03582, allocations: 1.278 MB / 446.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.03584, allocations: 11.94 kB / 446.2 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.03585, allocations: 4 kB / 446.2 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.03587, allocations: 4 kB / 446.2 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003123/0.03899, allocations: 1.038 MB / 447.2 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.03901, allocations: 8.781 kB / 447.2 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004926/0.0395, allocations: 75.91 kB / 447.3 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.995e-05/0.03955, allocations: 35.98 kB / 447.3 MB, free: 8.93 MB / 346.7 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.0004094/0.03996, allocations: 243.7 kB / 447.6 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.314e-05/0.04005, allocations: 67.55 kB / 447.6 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001563/0.04161, allocations: 1.205 MB / 448.8 MB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.04162, allocations: 12 kB / 448.8 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.04162, allocations: 0 / 448.8 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.04163, allocations: 3.984 kB / 448.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.04441, allocations: 2.18 MB / 451 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.04442, allocations: 4 kB / 451 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003145/0.04756, allocations: 1.007 MB / 452 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.04757, allocations: 4 kB / 452 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-05/0.04763, allocations: 31.98 kB / 452.1 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.04764, allocations: 7.938 kB / 452.1 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.04764, allocations: 4 kB / 452.1 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.04981, allocations: 1.83 MB / 453.9 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.04991, allocations: 55.61 kB / 454 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.857e-05/0.04999, allocations: 27.98 kB / 454 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003368/0.05033, allocations: 67.92 kB / 454.1 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.05049, allocations: 116.4 kB / 454.2 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.05053, allocations: 23.98 kB / 454.2 MB, free: 1.941 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002017/0.05073, allocations: 283.2 kB / 454.5 MB, free: 1.664 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05073, allocations: 0 / 454.5 MB, free: 1.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005042/0.05124, allocations: 231.9 kB / 454.7 MB, free: 1.438 MB / 346.7 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.0001373/0.05138, allocations: 135.1 kB / 454.8 MB, free: 1.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.0528, allocations: 1.095 MB / 455.9 MB, free: 208 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.05281, allocations: 0 / 455.9 MB, free: 208 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007103/0.05352, allocations: 0.5704 MB / 456.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.05397, allocations: 137.8 kB / 456.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.05696, allocations: 2.452 MB / 459.1 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.05718, allocations: 368.4 kB / 459.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003564/0.05754, allocations: 153.1 kB / 459.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.05777, allocations: 72.47 kB / 459.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.05777, allocations: 0 / 459.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of Templates: time 0.01137/0.06914, allocations: 11.53 MB / 471.2 MB, free: 1.012 MB / 362.7 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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 2.9156597079709172] Failed to read output from testmodel.py, exit status != 0: 0.07532253954559565 0.083174065 0.071638739 Calling exit ...