/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 132 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7388
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin585
RA = 332.474, Dec = -50.4702
tmin = 390960001, tmax = 391219201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='207625', job_status='RUN', time_executed='2021-09-28 06:18:11.602824', time_epoch_executed='1632835091.6' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207625

Creating custom pfile directory:
/scratch/kocevski/207625/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=390960001.0 && nMetStart<391219201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=390960001.0 && nMetStart<391219201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207625/ft1_4FGL_J2209.8-5028_daily_bin585.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=390960001.0 && nMetStart<391219201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207625/ft1_4FGL_J2209.8-5028_daily_bin585.fits outfile=/scratch/kocevski/207625/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin585.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=390960001.0 tmax=391219201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.52
user 4.24
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/207625/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin585.fits evtable="EVENTS" outfile="/scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/207625/ltcube_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits
.....................!
real 12.37
user 11.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/207625/ltcube_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits outfile=/scratch/kocevski/207625/expmap_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/207625/ltcube_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits
.....................!
real 193.34
user 187.82
sys 5.17

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits scfile=/scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits outfile=/scratch/kocevski/207625/cmap_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits scfile=/scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits outfile=/scratch/kocevski/207625/cmap_HighResolution_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207625/Model_4FGL_J2209.8-5028_daily_bin585.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits.....................!
real 46.58
user 43.89
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits', '/scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits', expMap='/scratch/kocevski/207625/expmap_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits', expCube='/scratch/kocevski/207625/ltcube_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/207625/Model_4FGL_J2209.8-5028_daily_bin585.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/207625/ft1_filtered_4FGL_J2209.8-5028_daily_bin585.fits
Spacecraft file(s): /scratch/kocevski/207625/ft2_4FGL_J2209.8-5028_daily_bin585.fits
Exposure map: /scratch/kocevski/207625/expmap_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits
Exposure cube: /scratch/kocevski/207625/ltcube_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/207625/Model_4FGL_J2209.8-5028_daily_bin585.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5513.56227638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5513.54841485

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0772       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38233E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6824       1.0000         .10000E-03   10000.    
     7 'norm      '    11.705       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52274E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.174       1.0000         .10000E-03   10000.    
    13 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3469       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0739       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35302       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10562E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12544       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75553       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5513.548     FROM MIGRAD    STATUS=CONVERGED   1159 CALLS     3971 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0848        35.004        .17844E-03    .37462E-04
   2  Prefactor     .10000E-03    51.862        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.1313        .16362E-02** at limit **
   4  Prefactor     .10001E-03    36.121        .11106    ** at limit **
   5  Prefactor     .10000E-03    104.00        .36285E-03** at limit **
   6  Prefactor     6.6808        5.0478        .13783E-03    .14756E-03
   7  norm          11.710        6.8069        .11709E-03    .32837E-03
   8  Prefactor     .10000E-03    16.810        .36285E-03** at limit **
   9  Prefactor     56.428        53.785        .53372E-04    .56107E-04
  10  Prefactor     .10025E-03    58.413        .39262E-02** at limit **
  11  Prefactor     .10000E-03    1.9813        .10133E-02** at limit **
  12  Prefactor     69.057        113.80        .48262E-04    .10732E-03
  13  norm          .10000E-03    3.3614        .13283E-02** at limit **
  14  Prefactor     .10000E-03    6.7991        .25102E-02** at limit **
  15  Prefactor     .10001E-03    239.24        .42596E-03** at limit **
  16  Prefactor     3.3524        6.4843        .22122E-03    .58019E-04
  17  Prefactor     .10000E-03    12.469        .18142E-02** at limit **
  18  Prefactor     4.0700        8.9287        .99877E-03    .20273E-04
  19  Prefactor     .70489        66.356        .20275        .70692E-04
  20  Prefactor     .10112E-03    6.8803        .58256E-01** at limit **
  21  Prefactor     .10154E-03    46.078        .13805    ** at limit **
  22  Prefactor     .10000E-03    4.8709        .15990E-02** at limit **
  23  norm          .10000E-03    3.6125        .13744E-02** at limit **
  24  Normalizat    .75575        .22481        .28308E-03    .42467E-03
  25  Prefactor     1.1125        .17983        .19712E-03    .64866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0848
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100002
  Prefactor  = 6.68078
  norm       = 11.7099
  Prefactor  = 0.0001
  Prefactor  = 56.4282
  Prefactor  = 0.000100251
  Prefactor  = 0.0001
  Prefactor  = 69.0569
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 3.35237
  Prefactor  = 0.0001
  Prefactor  = 4.06996
  Prefactor  = 0.704889
  Prefactor  = 0.000101119
  Prefactor  = 0.000101539
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.755748
  Prefactor  = 1.11251
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.548     FROM HESSE     STATUS=OK           443 CALLS     4414 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0848        34.993        .71377E-05   -1.5257    
   2  Prefactor     .10000E-03    51.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1325        .32724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    34.876        .11365       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    104.00        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6808        5.0475        .55133E-05   -1.5191    
   7  norm          11.710        6.8036        .46836E-05   -1.5023    
   8  Prefactor     .10000E-03    16.811        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.428        53.763        .10674E-04   -1.4204    
  10  Prefactor     .10025E-03    59.475        .15705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9816        .20265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     69.057        113.14        .96524E-05   -1.4044    
  13  norm          .10000E-03    3.3615        .26566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8351        .50203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    239.25        .85193E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3524        6.4826        .88489E-05   -1.5342    
  17  Prefactor     .10000E-03    12.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0700        8.9233        .39951E-04   -1.5304    
  19  Prefactor     .70489        66.480        .20229       -1.5540    
  20  Prefactor     .10112E-03    6.6667        .59766E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10154E-03    45.972        .13825       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8712        .31980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.6130        .27488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .75575        .22493        .56616E-04   -1.0173    
  25  Prefactor     1.1125        .17996        .39424E-04   -.89068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98464e-09
Minuit parameter uncertainties:
  1  26.7006
  2  0.000394391
  3  1.11476e-05
  4  0.00128812
  5  0.000891208
  6  5.04782
  7  6.80407
  8  1.24813e-05
  9  53.8089
  10  0.00772832
  11  6.30764e-06
  12  113.498
  13  5.65093e-06
  14  2.13564e-05
  15  0.00318827
  16  6.48394
  17  1.63176e-06
  18  8.92618
  19  13.7058
  20  0.00546202
  21  0.0168377
  22  2.36695e-06
  23  6.60059e-07
  24  0.225203
  25  0.180056
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5513.5483074

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.906e+01  1.135e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.113e+00  1.801e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  7.557e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207625/likelihoodResults_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.53890553
delta logL = 0.00940187381912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.53380142
delta logL = 0.0145059857923

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.821       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5281       1.0000          .0000       10.000    
     3 'Normalizat'    .75212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5513.534     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      260 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.841        134.00        .53218E-04    .94678E-04
   2  Index         2.5302        1.0591        .71219E-02    .11683E-03
   3  Normalizat    .75209        .21459        .28370E-03    .79427E-03
   4  Prefactor     1.1145        .17766        .19696E-03    .10736E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.8406
  Index      = 2.53024
  Normalizat = 0.75209
  Prefactor  = 1.11448
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.534     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.841        121.09        .10644E-04   -1.4199    
   2  Index         2.5302        .95709        .28487E-03   -.51663    
   3  Normalizat    .75209        .21468        .56741E-04   -1.0187    
   4  Prefactor     1.1145        .17766        .39392E-04   -.89005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12519e-09
Minuit parameter uncertainties:
  1  121.616
  2  0.964997
  3  0.214924
  4  0.177755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207625': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.53379619
delta logL = 0.0145112128021

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.684e+01  1.216e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.530e+00  9.650e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.114e+00  1.778e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  7.521e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/207625/cmap_HighResolution_390960001_391219201_4FGL_J2209.8-5028_daily_bin585.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/207625

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-28 06:30:52.402566', job_id='207625', GAL2='1.11', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1632835852.4', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.45e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='585' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:30:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 207625: <4FGL_J2209.8-5028_daily_bin585> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin585> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:48 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:15:50 2021
Terminated at Tue Sep 28 06:30:53 2021
Results reported at Tue Sep 28 06:30:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin585 332.474 -50.4702 390960001 391219201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

The output (if any) is above this job summary.

