/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 1 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1168
RA = 332.474, Dec = -50.4702
tmin = 542073601, tmax = 542332801
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='210833', job_status='RUN', time_executed='2021-09-28 06:25:57.794128', time_epoch_executed='1632835557.79' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210833/ft1_4FGL_J2209.8-5028_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210833/ft1_4FGL_J2209.8-5028_daily_bin1168.fits outfile=/scratch/kocevski/210833/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1168.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=542073601.0 tmax=542332801.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 3.62
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.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/210833/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1168.fits evtable="EVENTS" outfile="/scratch/kocevski/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/210833/ltcube_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.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/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits
.....................!
real 12.17
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/210833/ltcube_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.fits outfile=/scratch/kocevski/210833/expmap_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.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/210833/ltcube_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.fits
.....................!
real 189.37
user 184.94
sys 4.03

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/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.fits scfile=/scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits outfile=/scratch/kocevski/210833/cmap_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.fits scfile=/scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits outfile=/scratch/kocevski/210833/cmap_HighResolution_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.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.55
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210833/Model_4FGL_J2209.8-5028_daily_bin1168.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/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.fits.....................!
real 47.92
user 46.53
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.fits', '/scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits', expMap='/scratch/kocevski/210833/expmap_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.fits', expCube='/scratch/kocevski/210833/ltcube_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/210833/Model_4FGL_J2209.8-5028_daily_bin1168.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/210833/ft1_filtered_4FGL_J2209.8-5028_daily_bin1168.fits
Spacecraft file(s): /scratch/kocevski/210833/ft2_4FGL_J2209.8-5028_daily_bin1168.fits
Exposure map: /scratch/kocevski/210833/expmap_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.fits
Exposure cube: /scratch/kocevski/210833/ltcube_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/210833/Model_4FGL_J2209.8-5028_daily_bin1168.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) = 6118.49525719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.408       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11112E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3751       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1652       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5013       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24915E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46788E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    8.7146       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.601       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6883       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63124       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4123       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=   6118.491     FROM MIGRAD    STATUS=CONVERGED   1078 CALLS     3803 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.400        22.727        .10204E-03   -.27520E-04
   2  Prefactor     .10000E-03    58.108        .18142E-02** at limit **
   3  Prefactor     .10000E-03    4.1367        .15439E-02** at limit **
   4  Prefactor     .10000E-03    9.8102        .18142E-02** at limit **
   5  Prefactor     .10000E-03    18.634        .18142E-02** at limit **
   6  Prefactor     3.3744        4.2765        .17444E-03    .24180E-03
   7  norm          7.1647        4.3697        .12402E-03    .40334E-04
   8  Prefactor     .10000E-03    11.914        .18142E-02** at limit **
   9  Prefactor     1.4883        259.19        .34944E-03    .24400E-05
  10  Prefactor     11.527        13.338        .58973E-03    .62615E-04
  11  Prefactor     .10000E-03    8.5980        .22649E-02** at limit **
  12  Prefactor     .10703E-03    205.78        .22621    ** at limit **
  13  norm          8.7121        7.5710        .13578E-03   -.49315E-04
  14  Prefactor     6.4734        3.7735        .11166E-03    .18480E-03
  15  Prefactor     .10000E-03    28.936        .18142E-02** at limit **
  16  Prefactor     .10000E-03    5.2572        .17365E-02** at limit **
  17  Prefactor     .10000E-03    203.32        .73246E-02** at limit **
  18  Prefactor     13.617        13.577        .10861E-03   -.70132E-05
  19  Prefactor     .10000E-03    33.532        .18142E-02** at limit **
  20  Prefactor     8.6875        5.7481        .13599E-03   -.56346E-04
  21  Prefactor     .10000E-03    20.675        .18142E-02** at limit **
  22  Prefactor     .10000E-03    5.1900        .17383E-02** at limit **
  23  norm          .10000E-03    3.3059        .13872E-02** at limit **
  24  Normalizat    .63129        .23600        .34140E-03    .29538E-04
  25  Prefactor     1.4123        .19347        .19926E-03    .11389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37442
  norm       = 7.16468
  Prefactor  = 0.0001
  Prefactor  = 1.48834
  Prefactor  = 11.5274
  Prefactor  = 0.0001
  Prefactor  = 0.000107034
  norm       = 8.71209
  Prefactor  = 6.4734
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.617
  Prefactor  = 0.000100001
  Prefactor  = 8.68747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.631294
  Prefactor  = 1.41229
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.491     FROM HESSE     STATUS=OK           411 CALLS     4214 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.400        22.724        .40815E-05   -1.4923    
   2  Prefactor     .10000E-03    58.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1382        .30878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3744        4.2762        .69774E-05   -1.5341    
   7  norm          7.1647        4.3696        .49608E-05   -1.5173    
   8  Prefactor     .10000E-03    11.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4883        258.67        .13978E-04   -1.5464    
  10  Prefactor     11.527        13.346        .23589E-04   -1.5029    
  11  Prefactor     .10000E-03    8.6390        .45298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10703E-03    209.10        .22430       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.7121        7.5707        .54313E-05   -1.5118    
  14  Prefactor     6.4734        3.7735        .44662E-05   -1.5199    
  15  Prefactor     .10000E-03    28.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.2601        .34730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    209.02        .29298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.617        13.527        .43444E-05   -1.4970    
  19  Prefactor     .10000E-03    33.532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6875        5.7481        .54396E-05   -1.5118    
  21  Prefactor     .10000E-03    20.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.1905        .34766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.3061        .27745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .63129        .23595        .13656E-04   -1.0667    
  25  Prefactor     1.4123        .19355        .39852E-04   -.80027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59709e-10
Minuit parameter uncertainties:
  1  22.7367
  2  6.62476e-06
  3  1.26796e-05
  4  2.81973e-05
  5  0.000116225
  6  4.27657
  7  4.36983
  8  2.6077e-05
  9  39.4152
  10  13.349
  11  4.52292e-05
  12  0.0769724
  13  7.57148
  14  3.77359
  15  0.000340243
  16  1.87024e-05
  17  0.000735715
  18  13.5299
  19  0.000351849
  20  5.74843
  21  0.000126693
  22  6.2261e-07
  23  2.12021e-06
  24  0.236328
  25  0.193649
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.070e-04  7.697e-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.412e+00  1.936e-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:  6.313e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 9.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210833/likelihoodResults_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.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): 102
logL (Free Index) = 6118.49065609
delta logL = -1.14939211926e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6118.49065609
delta logL = -1.14703652798e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .63129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4123       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6118.460     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      348 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7760        680.33        .18142E-02   -.27516E-04
   2  Index         3.0969        6.4035        .10112E-01   -.84465E-05
   3  Normalizat    .61763        .23324        .34486E-03   -.13879E-03
   4  Prefactor     1.4173        .19319        .19892E-03   -.12032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.77601
  Index      = 3.09689
  Normalizat = 0.617629
  Prefactor  = 1.41727
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.460     FROM HESSE     STATUS=OK            27 CALLS      375 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7760        88.383        .72569E-04   -1.5115    
   2  Index         3.0969        2.3894        .40449E-03   -.39047    
   3  Normalizat    .61763        .23364        .13795E-04   -1.0724    
   4  Prefactor     1.4173        .19298        .39784E-04   -.79884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56386e-11
Minuit parameter uncertainties:
  1  55.8079
  2  2.51105
  3  0.234017
  4  0.193077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210833': 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) = 6118.45996728
delta logL = 0.0306886882036

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  8.776e+00  5.581e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.097e+00  2.511e+00  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.417e+00  1.931e-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:  6.176e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/210833/cmap_HighResolution_542073601_542332801_4FGL_J2209.8-5028_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.84e-08', time_completed='2021-09-28 06:39:47.409395', job_id='210833', GAL2='1.42', fit_tolerance='1e-08', EG2='0.62', EG='0.63', time_epoch_completed='1632836387.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='3.07e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1168' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:39:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 210833: <4FGL_J2209.8-5028_daily_bin1168> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:45 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:48 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:25:48 2021
Terminated at Tue Sep 28 06:39:48 2021
Results reported at Tue Sep 28 06:39:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1168 332.474 -50.4702 542073601 542332801 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 :                                   778.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            843 sec.

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

