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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1092
RA = 332.474, Dec = -50.4702
tmin = 522374401, tmax = 522633601
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='210719', job_status='RUN', time_executed='2021-09-28 06:26:01.892774', time_epoch_executed='1632835561.89' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210719

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210719/ft1_4FGL_J2209.8-5028_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210719/ft2_4FGL_J2209.8-5028_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210719/ft1_4FGL_J2209.8-5028_daily_bin1092.fits outfile=/scratch/kocevski/210719/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1092.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=522374401.0 tmax=522633601.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.68
user 3.45
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210719/ft2_4FGL_J2209.8-5028_daily_bin1092.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/210719/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1092.fits evtable="EVENTS" outfile="/scratch/kocevski/210719/ft1_filtered_4FGL_J2209.8-5028_daily_bin1092.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210719/ft1_filtered_4FGL_J2209.8-5028_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/210719/ft2_4FGL_J2209.8-5028_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/210719/ltcube_522374401_522633601_4FGL_J2209.8-5028_daily_bin1092.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/210719/ft2_4FGL_J2209.8-5028_daily_bin1092.fits
.....................!
real 11.80
user 11.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210719/ft1_filtered_4FGL_J2209.8-5028_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/210719/ft2_4FGL_J2209.8-5028_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/210719/ltcube_522374401_522633601_4FGL_J2209.8-5028_daily_bin1092.fits outfile=/scratch/kocevski/210719/expmap_522374401_522633601_4FGL_J2209.8-5028_daily_bin1092.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/210719/ltcube_522374401_522633601_4FGL_J2209.8-5028_daily_bin1092.fits
.....................!
real 190.60
user 185.54
sys 4.75

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/210719/ft1_filtered_4FGL_J2209.8-5028_daily_bin1092.fits scfile=/scratch/kocevski/210719/ft2_4FGL_J2209.8-5028_daily_bin1092.fits outfile=/scratch/kocevski/210719/cmap_522374401_522633601_4FGL_J2209.8-5028_daily_bin1092.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210719/ft1_filtered_4FGL_J2209.8-5028_daily_bin1092.fits scfile=/scratch/kocevski/210719/ft2_4FGL_J2209.8-5028_daily_bin1092.fits outfile=/scratch/kocevski/210719/cmap_HighResolution_522374401_522633601_4FGL_J2209.8-5028_daily_bin1092.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/210719/ft1_filtered_4FGL_J2209.8-5028_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/210719/ft2_4FGL_J2209.8-5028_daily_bin1092.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210719/Model_4FGL_J2209.8-5028_daily_bin1092.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/210719/ft1_filtered_4FGL_J2209.8-5028_daily_bin1092.fits.....................!
real 45.29
user 44.00
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.444       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42404       1.0000         .10000E-03   10000.    
     7 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.861       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.8221       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4894       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.602       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.443       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6387       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77166       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1262       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=   5890.321     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2871 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0795        .45444E-07** at limit **
   2  Prefactor     .10000E-03    19.086        .15637E-06** at limit **
   3  Prefactor     .10000E-03    8.6629       -.21560E-07** at limit **
   4  Prefactor     16.434        24.134        .86248E-06    .41056E-04
   5  Prefactor     43.760        26.271        .37896E-06   -.19023E-04
   6  Prefactor     .42277        3.7701        .73314E-06   -.30579E-04
   7  norm          .10000E-03    2.4757       -.25793E-06** at limit **
   8  Prefactor     .10000E-03    15.331       -.41885E-06** at limit **
   9  Prefactor     54.100        33.372       -.23106E-06   -.38586E-06
  10  Prefactor     .10000E-03    2.3828        .21458E-07** at limit **
  11  Prefactor     12.862        5.1687       -.55353E-08   -.48423E-04
  12  Prefactor     .10000E-03    23.272        .30601E-06** at limit **
  13  norm          8.8215        7.7293        .16860E-07   -.84702E-05
  14  Prefactor     5.1655        4.3443       -.17883E-06    .10002E-04
  15  Prefactor     .10000E-03    27.472       -.31992E-06** at limit **
  16  Prefactor     9.4928        7.6528        .18050E-06   -.10741E-03
  17  Prefactor     25.588        44.109        .15585E-05    .15284E-04
  18  Prefactor     15.449        17.886       -.68144E-06   -.84578E-04
  19  Prefactor     .10000E-03    48.035       -.12326E-06** at limit **
  20  Prefactor     2.6396        7.5601        .48731E-05   -.33970E-04
  21  Prefactor     .10000E-03    12.245        .63701E-07** at limit **
  22  Prefactor     .10000E-03    5.3749       -.21934E-07** at limit **
  23  norm          .10000E-03    4.9928        .14744E-07** at limit **
  24  Normalizat    .77123        .20556        .56196E-06    .11788E-03
  25  Prefactor     1.1266        .15666       -.89266E-06    .32316E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4339
  Prefactor  = 43.7604
  Prefactor  = 0.422765
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.1004
  Prefactor  = 0.0001
  Prefactor  = 12.8616
  Prefactor  = 0.0001
  norm       = 8.82147
  Prefactor  = 5.16549
  Prefactor  = 0.0001
  Prefactor  = 9.49285
  Prefactor  = 25.588
  Prefactor  = 15.4488
  Prefactor  = 0.0001
  Prefactor  = 2.63962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.771229
  Prefactor  = 1.1266
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.321     FROM HESSE     STATUS=OK           425 CALLS     3296 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.434        24.156        .98768E-04   -1.4897    
   5  Prefactor     43.760        26.236        .60598E-04   -1.4384    
   6  Prefactor     .42277        3.8403        .28585E-03   -1.5578    
   7  norm          .10000E-03    2.5141        .11803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     54.100        33.407        .54535E-04   -1.4236    
  10  Prefactor     .10000E-03    2.3891        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.862        5.1721        .10532E-03   -1.4991    
  12  Prefactor     .10000E-03    23.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.8215        7.7306        .13495E-03   -1.5114    
  14  Prefactor     5.1655        4.3557        .13871E-03   -1.5253    
  15  Prefactor     .10000E-03    27.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4928        7.6880        .65047E-03   -1.5092    
  17  Prefactor     25.588        44.178        .79170E-04   -1.4696    
  18  Prefactor     15.449        17.890        .10192E-03   -1.4922    
  19  Prefactor     .10000E-03    48.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6396        7.5877        .12550E-02   -1.5383    
  21  Prefactor     .10000E-03    12.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.3809        .17378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.0324        .16749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77123        .23898        .30592E-03   -1.0114    
  25  Prefactor     1.1266        .18142        .20629E-03   -.88621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96694e-10
Minuit parameter uncertainties:
  1  8.05859e-07
  2  3.00603e-05
  3  8.65989e-06
  4  24.1699
  5  26.243
  6  2.54829
  7  2.76705e-05
  8  7.83492e-06
  9  33.4185
  10  2.02949e-06
  11  5.17225
  12  1.2808e-05
  13  7.73148
  14  4.35599
  15  2.81654e-05
  16  7.68879
  17  44.2349
  18  17.8964
  19  5.8518e-05
  20  7.59051
  21  2.18225e-05
  22  4.37129e-06
  23  2.58355e-06
  24  0.239309
  25  0.181518
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.281e-05  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.127e+00  1.815e-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.712e-01  2.393e-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: 4.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210719/likelihoodResults_522374401_522633601_4FGL_J2209.8-5028_daily_bin1092.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) = 5890.32081452
delta logL = -0.000204211520213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5890.32061165
delta logL = -1.34704077936e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7134       1.0000          .0000       10.000    
     3 'Normalizat'    .77121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1266       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=   5890.321     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      274 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10519E-03    10.699        .18142E-01** at limit **
   2  Index         2.6087        7.9886        .50000        .20415E-04
   3  Normalizat    .77123        .38527E-02    .30592E-03    .15783E-03
   4  Prefactor     1.1266        .31045E-02    .20629E-03   -.18221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105193
  Index      = 2.60873
  Normalizat = 0.771231
  Prefactor  = 1.12659
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.321     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10519E-03    74.724        .30726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6087        5.6304        .50000       -.49867    
   3  Normalizat    .77123        .10230E-01    .12237E-04   -1.0114    
   4  Prefactor     1.1266        .82432E-02    .41259E-04   -.88621    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.786e-09
Minuit parameter uncertainties:
  1  0.0394461
  2  258.915
  3  0.0102299
  4  0.00824319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210719': 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): 102
logL (Free Index) = 5890.32061129
delta logL = -9.81328412308e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.052e-04  3.945e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.609e+00  2.589e+02  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.127e+00  8.243e-03  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.712e-01  1.023e-02  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/210719/cmap_HighResolution_522374401_522633601_4FGL_J2209.8-5028_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-03', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-28 06:37:50.325222', job_id='210719', GAL2='1.13', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632836270.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-9.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1092' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:37:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 210719: <4FGL_J2209.8-5028_daily_bin1092> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1092 332.474 -50.4702 522374401 522633601 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 :                                   688.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

