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.001158/0.001158, allocations: 77.88 kB / 21.46 MB, free: 3.039 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.001221/0.001221, allocations: 159.3 kB / 24.85 MB, free: 9.238 MB / 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.9753/0.9753, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.06589/0.06589, allocations: 18.14 MB / 280 MB, free: 11.15 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.603e-06/1.603e-06, allocations: 0 / 358.6 MB, free: 7.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.708e-05/2.868e-05, allocations: 2.312 kB / 358.6 MB, free: 7.516 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005193/0.005221, allocations: 4.106 MB / 362.7 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.007652, allocations: 1.189 MB / 363.8 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002715/0.007923, allocations: 4 kB / 363.9 MB, free: 2.184 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002701/0.008193, allocations: 106.9 kB / 364 MB, free: 2.078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005534/0.008747, allocations: 289.7 kB / 364.2 MB, free: 1.793 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007705/0.009517, allocations: 307.3 kB / 364.5 MB, free: 1.492 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.01074, allocations: 1.229 MB / 365.8 MB, free: 268 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008175/0.01156, allocations: 0.5793 MB / 366.3 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006746/0.01223, allocations: 470.9 kB / 366.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007023/0.01294, allocations: 0.4987 MB / 367.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001919/0.01313, allocations: 120 kB / 367.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.0133, allocations: 116 kB / 367.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002804/0.01358, allocations: 343.1 kB / 367.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004272/0.014, allocations: 395.1 kB / 368.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009143/0.01492, allocations: 0.8488 MB / 369.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.01492, allocations: 0 / 369.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.01492, allocations: 0 / 369.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.01494, allocations: 0 / 369.1 MB, free: 12.91 MB / 298.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.00182/0.01676, allocations: 1.294 MB / 370.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.01679, allocations: 8.922 kB / 370.4 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001974/0.01698, allocations: 176.3 kB / 370.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004311/0.01741, allocations: 430 kB / 371 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.01752, allocations: 159.7 kB / 371.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.01762, allocations: 88.3 kB / 371.2 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007675/0.01839, allocations: 0.6537 MB / 371.9 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.01841, allocations: 4.188 kB / 371.9 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.759e-05/0.01847, allocations: 36.12 kB / 371.9 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.01848, allocations: 20 kB / 372 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/0.01894, allocations: 353.7 kB / 372.3 MB, free: 9.602 MB / 298.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.003408/0.02235, allocations: 2.494 MB / 374.8 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006307/0.02298, allocations: 488.4 kB / 375.3 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.02327, allocations: 261.5 kB / 375.5 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.02331, allocations: 20.66 kB / 375.5 MB, free: 6.281 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.02334, allocations: 50.03 kB / 375.6 MB, free: 6.223 MB / 298.7 MB Notification: Performance of pre-optimization done (n=79): time 1.894e-06/0.02334, allocations: 0 / 375.6 MB, free: 6.223 MB / 298.7 MB Notification: Performance of matching and sorting (n=85): time 0.002215/0.02555, allocations: 1.53 MB / 377.1 MB, free: 4.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.02558, allocations: 64.41 kB / 377.2 MB, free: 4.586 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/0.02582, allocations: 414.4 kB / 377.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.867e-05/0.02587, allocations: 41.7 kB / 377.6 MB, free: 4.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.02602, allocations: 395.5 kB / 378 MB, free: 3.723 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.02621, allocations: 325.1 kB / 378.3 MB, free: 3.402 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.02639, allocations: 168.2 kB / 378.5 MB, free: 3.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.02654, allocations: 0.5521 MB / 379.1 MB, free: 2.668 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002835/0.02682, allocations: 223.5 kB / 379.3 MB, free: 2.449 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.02714, allocations: 347.2 kB / 379.6 MB, free: 2.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009091/0.02804, allocations: 0.6879 MB / 380.3 MB, free: 1.332 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.02805, allocations: 4 kB / 380.3 MB, free: 1.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.0007866/0.02884, allocations: 0.6728 MB / 381 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.02885, allocations: 8 kB / 381 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.02886, allocations: 11.94 kB / 381 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.02887, allocations: 4 kB / 381 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002939/0.03181, allocations: 0.7454 MB / 381.7 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.03182, allocations: 15.88 kB / 381.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.03211, allocations: 43.97 kB / 381.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.03216, allocations: 31.98 kB / 381.8 MB, free: 15.78 MB / 314.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.0002573/0.03242, allocations: 239.3 kB / 382.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.03253, allocations: 87.77 kB / 382.2 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008216/0.03335, allocations: 0.6464 MB / 382.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.03336, allocations: 12 kB / 382.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.03336, allocations: 0 / 382.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.03337, allocations: 3.984 kB / 382.8 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001739/0.03511, allocations: 1.453 MB / 384.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.03511, allocations: 224 / 384.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002551/0.03766, allocations: 0.7296 MB / 385 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.03767, allocations: 4 kB / 385 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.327e-05/0.03775, allocations: 27.98 kB / 385 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.03775, allocations: 8 kB / 385 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.03775, allocations: 0 / 385 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.03884, allocations: 1.003 MB / 386 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.96e-05/0.0389, allocations: 63.56 kB / 386.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.45e-05/0.03898, allocations: 20 kB / 386.1 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/0.03924, allocations: 47.95 kB / 386.2 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.03938, allocations: 104.4 kB / 386.3 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.03942, allocations: 19.98 kB / 386.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001484/0.03957, allocations: 270.9 kB / 386.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03957, allocations: 0 / 386.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000403/0.03998, allocations: 228 kB / 386.8 MB, free: 10.71 MB / 314.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.0001311/0.04011, allocations: 139.1 kB / 386.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006423/0.04075, allocations: 0.5427 MB / 387.5 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.04075, allocations: 4 kB / 387.5 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003108/0.04106, allocations: 285.1 kB / 387.7 MB, free: 9.738 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004196/0.04148, allocations: 157 kB / 387.9 MB, free: 9.586 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003169/0.04465, allocations: 2.152 MB / 390 MB, free: 7.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.04476, allocations: 171.5 kB / 390.2 MB, free: 7.176 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003035/0.04506, allocations: 105.1 kB / 390.3 MB, free: 7.074 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.04552, allocations: 250.1 kB / 390.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of SimCode: time 8.62e-07/0.04552, allocations: 0 / 390.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of Templates: time 0.01437/0.05989, allocations: 12.75 MB / 403.3 MB, free: 10.23 MB / 330.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=240 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.3038705843500793]