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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1423
RA = 332.474, Dec = -50.4702
tmin = 608169601, tmax = 608428801
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='211778', job_status='RUN', time_executed='2021-09-28 06:31:04.261031', time_epoch_executed='1632835864.26' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211778/ft1_4FGL_J2209.8-5028_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211778/ft2_4FGL_J2209.8-5028_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211778/ft1_4FGL_J2209.8-5028_daily_bin1423.fits outfile=/scratch/kocevski/211778/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1423.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=608169601.0 tmax=608428801.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.71
user 3.49
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211778/ft2_4FGL_J2209.8-5028_daily_bin1423.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/211778/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1423.fits evtable="EVENTS" outfile="/scratch/kocevski/211778/ft1_filtered_4FGL_J2209.8-5028_daily_bin1423.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211778/ft1_filtered_4FGL_J2209.8-5028_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/211778/ft2_4FGL_J2209.8-5028_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/211778/ltcube_608169601_608428801_4FGL_J2209.8-5028_daily_bin1423.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/211778/ft2_4FGL_J2209.8-5028_daily_bin1423.fits
.....................!
real 12.17
user 11.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211778/ft1_filtered_4FGL_J2209.8-5028_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/211778/ft2_4FGL_J2209.8-5028_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/211778/ltcube_608169601_608428801_4FGL_J2209.8-5028_daily_bin1423.fits outfile=/scratch/kocevski/211778/expmap_608169601_608428801_4FGL_J2209.8-5028_daily_bin1423.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/211778/ltcube_608169601_608428801_4FGL_J2209.8-5028_daily_bin1423.fits
.....................!
real 189.45
user 184.40
sys 4.58

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/211778/ft1_filtered_4FGL_J2209.8-5028_daily_bin1423.fits scfile=/scratch/kocevski/211778/ft2_4FGL_J2209.8-5028_daily_bin1423.fits outfile=/scratch/kocevski/211778/cmap_608169601_608428801_4FGL_J2209.8-5028_daily_bin1423.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211778/ft1_filtered_4FGL_J2209.8-5028_daily_bin1423.fits scfile=/scratch/kocevski/211778/ft2_4FGL_J2209.8-5028_daily_bin1423.fits outfile=/scratch/kocevski/211778/cmap_HighResolution_608169601_608428801_4FGL_J2209.8-5028_daily_bin1423.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211778/ft1_filtered_4FGL_J2209.8-5028_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/211778/ft2_4FGL_J2209.8-5028_daily_bin1423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211778/Model_4FGL_J2209.8-5028_daily_bin1423.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/211778/ft1_filtered_4FGL_J2209.8-5028_daily_bin1423.fits.....................!
real 51.98
user 50.63
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5061       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.286       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5550       1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    124.16       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4174       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65819       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17018       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.182       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .78641E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87062       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90062       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.

 FCN=   7114.668     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2951 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.564        .19930E-05** at limit **
   2  Prefactor     6.4875        73.099       -.73664E-05    .22271E-05
   3  Prefactor     5.7358        5.9979       -.34181E-07   -.72090E-05
   4  Prefactor     .10000E-03    7.8701       -.48881E-07** at limit **
   5  Prefactor     .10000E-03    36.057        .20631E-05** at limit **
   6  Prefactor     .10000E-03    3.1989        .17425E-06** at limit **
   7  norm          16.285        4.9756        .27830E-07   -.29892E-04
   8  Prefactor     4.5550        6.8316       -.78586E-06   -.45641E-07
   9  Prefactor     73.502        32.685        .47559E-06   -.10086E-04
  10  Prefactor     .10000E-03    4.5031        .54947E-07** at limit **
  11  Prefactor     3.2944        3.4077       -.19762E-06    .49930E-04
  12  Prefactor     124.17        86.485        .47361E-07    .77394E-05
  13  norm          8.4182        6.2520        .73465E-07    .39514E-04
  14  Prefactor     .65618        1.3705       -.97549E-06   -.14964E-03
  15  Prefactor     3.9295        29.626        .15030E-05   -.40770E-06
  16  Prefactor     .17839        2.4248       -.54270E-06    .40413E-04
  17  Prefactor     30.204        25.362        .84245E-06    .17954E-03
  18  Prefactor     .10000E-03    88.584       -.11845E-04** at limit **
  19  Prefactor     .10000E-03    32.150        .17787E-05** at limit **
  20  Prefactor     .10000E-03    3.4443       -.10861E-06** at limit **
  21  Prefactor     .10000E-03    17.340       -.25045E-05** at limit **
  22  Prefactor     .10000E-03    3.3909        .50801E-06** at limit **
  23  norm          .10000E-03    2.1232        .66183E-07** at limit **
  24  Normalizat    .87098        .17436        .29622E-05    .10325E-04
  25  Prefactor     .90034        .13619       -.23026E-05    .15636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.4875
  Prefactor  = 5.73579
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 16.2852
  Prefactor  = 4.55504
  Prefactor  = 73.5021
  Prefactor  = 0.0001
  Prefactor  = 3.29437
  Prefactor  = 124.167
  norm       = 8.41817
  Prefactor  = 0.656178
  Prefactor  = 3.92954
  Prefactor  = 0.178394
  Prefactor  = 30.2041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.87098
  Prefactor  = 0.900341
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.668     FROM HESSE     STATUS=OK           429 CALLS     3380 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4875        73.980        .15734E-03   -1.5199    
   3  Prefactor     5.7358        5.9940        .16769E-03   -1.5229    
   4  Prefactor     .10000E-03    7.8792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3015        .29423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.285        4.9736        .99247E-04   -1.4901    
   8  Prefactor     4.5550        6.9003        .94309E-03   -1.5281    
   9  Prefactor     73.502        32.690        .46832E-04   -1.3991    
  10  Prefactor     .10000E-03    4.5322        .17450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2944        3.3981        .14919E-03   -1.5345    
  12  Prefactor     124.17        86.330        .36123E-04   -1.3475    
  13  norm          8.4182        6.2527        .69087E-03   -1.5128    
  14  Prefactor     .65618        1.3740        .16859E-02   -1.5546    
  15  Prefactor     3.9295        29.703        .20363E-03   -1.5311    
  16  Prefactor     .17839        20.004        .24050E-02   -1.5624    
  17  Prefactor     30.204        24.844        .72930E-04   -1.4608    
  18  Prefactor     .10000E-03    86.679        .36305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5101        .15281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.3932        .15163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1241        .12003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87098        .19039        .25656E-03   -.97487    
  25  Prefactor     .90034        .14995        .20660E-03   -.96129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97338e-09
Minuit parameter uncertainties:
  1  3.13063e-05
  2  43.8834
  3  5.99462
  4  3.03724e-06
  5  0.000376135
  6  2.40234e-05
  7  4.97371
  8  6.90155
  9  32.6975
  10  1.15609e-05
  11  3.39826
  12  86.4176
  13  6.25314
  14  1.37406
  15  21.622
  16  3.77839
  17  24.852
  18  6.89824e-05
  19  5.58797e-05
  20  4.97612e-06
  21  5.0038e-05
  22  4.42288e-06
  23  2.06861e-07
  24  0.190534
  25  0.150018
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.242e+02  8.642e+01  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:  9.003e-01  1.500e-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:  8.710e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.74
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.37e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.03e-05

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) = 7114.66655148
delta logL = 0.0016080928408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7114.66486651
delta logL = 0.00329306534422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    130.37       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3047       1.0000          .0000       10.000    
     3 'Normalizat'    .87475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89865       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.

 FCN=   7114.665     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     130.37        2036.9        .88158E-03    .12996E-03
   2  Index         2.3043        6.0706        .14265        .12075E-03
   3  Normalizat    .87494        .11262        .44578E-01    .15775E-04
   4  Prefactor     .89850        .54202E-01    .44988E-01    .66455E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 130.372
  Index      = 2.30429
  Normalizat = 0.874942
  Prefactor  = 0.898504
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.665     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     130.37        125.55        .35263E-04   -1.3419    
   2  Index         2.3043        .89916        .85385E-02   -.56942    
   3  Normalizat    .87494        .18723        .25607E-03   -.97346    
   4  Prefactor     .89850        .14875        .20679E-03   -.96193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10149e-09
Minuit parameter uncertainties:
  1  125.81
  2  0.906139
  3  0.18737
  4  0.148814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211778': 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) = 7114.66486589
delta logL = 0.00329368184612

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.304e+02  1.258e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.304e+00  9.061e-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:  8.985e-01  1.488e-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:  8.749e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.76
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.30 +/- 0.91
Photon Flux (Free Index): 4.04e-08 +/- 4.95e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/211778/cmap_HighResolution_608169601_608428801_4FGL_J2209.8-5028_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.37e-08', energy_flux2='1.52e-05', photon_flux_error='3.04e-08', dlogl='3.29e-03', energy_flux='1.49e-05', photon_flux2='4.04e-08', job_status='DONE', time_completed='2021-09-28 06:43:12.943138', photon_index_error2='0.91', photon_index2='2.30', ts='4.74', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='0.87', time_epoch_completed='1632836592.94', return_code='0', job_id='211778', GAL2='0.90', EG2='0.87', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.95e-08', ts2='4.76', photon_index='2.37' WHERE bin_id='1423' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 211778: <4FGL_J2209.8-5028_daily_bin1423> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1423> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:28 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:30 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:30:30 2021
Terminated at Tue Sep 28 06:43:13 2021
Results reported at Tue Sep 28 06:43:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1423 332.474 -50.4702 608169601 608428801 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 :                                   693.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

