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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1093
RA = 332.474, Dec = -50.4702
tmin = 522633601, tmax = 522892801
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='210720', job_status='RUN', time_executed='2021-09-28 06:26:09.652495', time_epoch_executed='1632835569.65' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210720/ft1_4FGL_J2209.8-5028_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210720/ft2_4FGL_J2209.8-5028_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210720/ft1_4FGL_J2209.8-5028_daily_bin1093.fits outfile=/scratch/kocevski/210720/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1093.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=522633601.0 tmax=522892801.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.56
user 3.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210720/ft2_4FGL_J2209.8-5028_daily_bin1093.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/210720/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1093.fits evtable="EVENTS" outfile="/scratch/kocevski/210720/ft1_filtered_4FGL_J2209.8-5028_daily_bin1093.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210720/ft1_filtered_4FGL_J2209.8-5028_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/210720/ft2_4FGL_J2209.8-5028_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/210720/ltcube_522633601_522892801_4FGL_J2209.8-5028_daily_bin1093.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/210720/ft2_4FGL_J2209.8-5028_daily_bin1093.fits
.....................!
real 12.33
user 11.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210720/ft1_filtered_4FGL_J2209.8-5028_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/210720/ft2_4FGL_J2209.8-5028_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/210720/ltcube_522633601_522892801_4FGL_J2209.8-5028_daily_bin1093.fits outfile=/scratch/kocevski/210720/expmap_522633601_522892801_4FGL_J2209.8-5028_daily_bin1093.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/210720/ltcube_522633601_522892801_4FGL_J2209.8-5028_daily_bin1093.fits
.....................!
real 191.03
user 185.70
sys 4.84

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/210720/ft1_filtered_4FGL_J2209.8-5028_daily_bin1093.fits scfile=/scratch/kocevski/210720/ft2_4FGL_J2209.8-5028_daily_bin1093.fits outfile=/scratch/kocevski/210720/cmap_522633601_522892801_4FGL_J2209.8-5028_daily_bin1093.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.61
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210720/ft1_filtered_4FGL_J2209.8-5028_daily_bin1093.fits scfile=/scratch/kocevski/210720/ft2_4FGL_J2209.8-5028_daily_bin1093.fits outfile=/scratch/kocevski/210720/cmap_HighResolution_522633601_522892801_4FGL_J2209.8-5028_daily_bin1093.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7169       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1712       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9758       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.252       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.267       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50849E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5867       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.326       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.393       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'    1.5397       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67915       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=   5209.446     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2851 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.999        21.818        .39775E-06   -.37481E-05
   2  Prefactor     .10000E-03    31.239        .63354E-06** at limit **
   3  Prefactor     6.1790        10.848       -.31076E-06   -.23061E-04
   4  Prefactor     .10000E-03    64.932        .26067E-06** at limit **
   5  Prefactor     3.7200        26.429        .34268E-05    .43155E-04
   6  Prefactor     3.1704        5.9176        .47125E-05    .38072E-03
   7  norm          1.9740        2.9917        .34681E-07   -.31866E-04
   8  Prefactor     24.240        19.011        .28008E-06   -.15420E-04
   9  Prefactor     11.347        43.220        .11314E-04   -.60640E-05
  10  Prefactor     25.270        12.792       -.11591E-05    .48102E-04
  11  Prefactor     .10005E-03    3.9020       -.23302E-05** at limit **
  12  Prefactor     .10000E-03    35.647       -.25489E-05** at limit **
  13  norm          5.5875        5.7097       -.70509E-06   -.82585E-04
  14  Prefactor     .10000E-03    1.8824       -.38005E-08** at limit **
  15  Prefactor     .10000E-03    17.294        .21310E-07** at limit **
  16  Prefactor     13.325        6.9750        .41472E-07    .18291E-05
  17  Prefactor     .10000E-03    8.2685       -.10509E-06** at limit **
  18  Prefactor     .10000E-03    14.871       -.24973E-06** at limit **
  19  Prefactor     .10000E-03    29.624        .17639E-05** at limit **
  20  Prefactor     .10000E-03    6.0183        .27478E-07** at limit **
  21  Prefactor     58.387        45.543        .88684E-06   -.20252E-05
  22  Prefactor     .10000E-03    6.3626        .81927E-07** at limit **
  23  norm          .10000E-03    4.8094       -.21048E-08** at limit **
  24  Normalizat    1.5403        .22569       -.89690E-06    .15552E-03
  25  Prefactor     .67877        .16466       -.15902E-05   -.33903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9992
  Prefactor  = 0.0001
  Prefactor  = 6.17896
  Prefactor  = 0.0001
  Prefactor  = 3.72005
  Prefactor  = 3.17044
  norm       = 1.97399
  Prefactor  = 24.2403
  Prefactor  = 11.3467
  Prefactor  = 25.2705
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  norm       = 5.58747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.3869
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.54027
  Prefactor  = 0.678771
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.446     FROM HESSE     STATUS=OK           425 CALLS     3276 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.999        21.828        .11563E-03   -1.5015    
   2  Prefactor     .10000E-03    31.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1790        10.825        .16137E-03   -1.5211    
   4  Prefactor     .10000E-03    65.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7200        26.338        .10473E-02   -1.5322    
   6  Prefactor     3.1704        6.0109        .11342E-02   -1.5352    
   7  norm          1.9740        2.9692        .14931E-03   -1.5427    
   8  Prefactor     24.240        19.005        .81340E-04   -1.4723    
   9  Prefactor     11.347        43.269        .11869E-03   -1.5034    
  10  Prefactor     25.270        12.691        .79693E-04   -1.4702    
  11  Prefactor     .10005E-03    14.620        .24212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5875        5.7103        .84984E-03   -1.5235    
  14  Prefactor     .10000E-03    1.9020        .96688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.325        6.9875        .10973E-03   -1.4978    
  17  Prefactor     .10000E-03    8.2717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0686        .17292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.387        45.560        .52501E-04   -1.4178    
  22  Prefactor     .10000E-03    6.3713        .17782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.8182        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5403        .26148        .24122E-03   -.76653    
  25  Prefactor     .67877        .19190        .26139E-03   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74804e-09
Minuit parameter uncertainties:
  1  21.8423
  2  1.34677e-05
  3  10.8284
  4  1.13107e-05
  5  19.8088
  6  6.012
  7  2.9694
  8  19.0096
  9  43.3885
  10  12.6921
  11  0.00171783
  12  5.0395e-06
  13  5.7109
  14  1.22502e-06
  15  5.48397e-06
  16  6.98795
  17  5.95591e-06
  18  6.32285e-05
  19  2.49491e-06
  20  1.2897e-05
  21  45.587
  22  4.24792e-06
  23  2.05273e-06
  24  0.261713
  25  0.192085
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.039e-06  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:  6.788e-01  1.921e-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:  1.540e+00  2.617e-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: 6.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210720/likelihoodResults_522633601_522892801_4FGL_J2209.8-5028_daily_bin1093.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) = 5209.44574065
delta logL = -0.000133304442897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5209.44560837
delta logL = -1.02409376268e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8329       1.0000          .0000       10.000    
     3 'Normalizat'    1.5403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67878       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=   5209.446     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      283 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10602E-03    13.654        .18142E-01** at limit **
   2  Index         2.7080        5.4844        .50000        .12209E-04
   3  Normalizat    1.5403        .41287E-02    .24122E-03    .96144E-05
   4  Prefactor     .67877        .31272E-02    .26139E-03    .14701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106016
  Index      = 2.70799
  Normalizat = 1.54027
  Prefactor  = 0.678774
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.446     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10602E-03    117.51        .34717E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7080        7.9311        .50000       -.47620    
   3  Normalizat    1.5403        .12182E-01    .96489E-05   -.76653    
   4  Prefactor     .67877        .92266E-02    .10456E-04   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.94118e-09
Minuit parameter uncertainties:
  1  0.0532842
  2  413.161
  3  0.0121816
  4  0.00922665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210720': 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) = 5209.44560813
delta logL = -7.82802089816e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.060e-04  5.328e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.708e+00  4.132e+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:  6.788e-01  9.227e-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:  1.540e+00  1.218e-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/210720/cmap_HighResolution_522633601_522892801_4FGL_J2209.8-5028_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2021-09-28 06:37:28.539445', job_id='210720', GAL2='0.68', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1632836248.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-7.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1093' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:37:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 210720: <4FGL_J2209.8-5028_daily_bin1093> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1093> 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) <bullet0117>, 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:29 2021
Results reported at Tue Sep 28 06:37:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1093 332.474 -50.4702 522633601 522892801 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 :                                   655.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

