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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1337
RA = 332.474, Dec = -50.4702
tmin = 585878401, tmax = 586137601
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='211649', job_status='RUN', time_executed='2021-09-28 06:34:02.795335', time_epoch_executed='1632836042.8' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211649/ft1_4FGL_J2209.8-5028_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211649/ft2_4FGL_J2209.8-5028_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211649/ft1_4FGL_J2209.8-5028_daily_bin1337.fits outfile=/scratch/kocevski/211649/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1337.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=585878401.0 tmax=586137601.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 2.81
user 2.60
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211649/ft1_filtered_4FGL_J2209.8-5028_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/211649/ft2_4FGL_J2209.8-5028_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/211649/ltcube_585878401_586137601_4FGL_J2209.8-5028_daily_bin1337.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/211649/ft2_4FGL_J2209.8-5028_daily_bin1337.fits
.....................!
real 12.53
user 12.12
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211649/ft1_filtered_4FGL_J2209.8-5028_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/211649/ft2_4FGL_J2209.8-5028_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/211649/ltcube_585878401_586137601_4FGL_J2209.8-5028_daily_bin1337.fits outfile=/scratch/kocevski/211649/expmap_585878401_586137601_4FGL_J2209.8-5028_daily_bin1337.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/211649/ltcube_585878401_586137601_4FGL_J2209.8-5028_daily_bin1337.fits
.....................!
real 191.10
user 184.92
sys 5.78

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/211649/ft1_filtered_4FGL_J2209.8-5028_daily_bin1337.fits scfile=/scratch/kocevski/211649/ft2_4FGL_J2209.8-5028_daily_bin1337.fits outfile=/scratch/kocevski/211649/cmap_585878401_586137601_4FGL_J2209.8-5028_daily_bin1337.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211649/ft1_filtered_4FGL_J2209.8-5028_daily_bin1337.fits scfile=/scratch/kocevski/211649/ft2_4FGL_J2209.8-5028_daily_bin1337.fits outfile=/scratch/kocevski/211649/cmap_HighResolution_585878401_586137601_4FGL_J2209.8-5028_daily_bin1337.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/211649/ft1_filtered_4FGL_J2209.8-5028_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/211649/ft2_4FGL_J2209.8-5028_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211649/Model_4FGL_J2209.8-5028_daily_bin1337.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/211649/ft1_filtered_4FGL_J2209.8-5028_daily_bin1337.fits.....................!
real 27.38
user 25.98
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2849       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .18901E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.405       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83394E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.691       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23158       1.0000         .10000E-03   10000.    
    23 'norm      '    5.0119       1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.1519       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .60219       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=   2427.457     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2907 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2749        210.55       -.15679E-04   -.74663E-05
   2  Prefactor     .10000E-03    85.138       -.10286E-04** at limit **
   3  Prefactor     .10000E-03    13.296        .93693E-07** at limit **
   4  Prefactor     .10000E-03    34.618       -.25668E-05** at limit **
   5  Prefactor     .10000E-03    71.840        .22104E-04** at limit **
   6  Prefactor     .10000E-03    4.1626        .13767E-06** at limit **
   7  norm          .10000E-03    23.117        .10914E-04** at limit **
   8  Prefactor     .10000E-03    22.260       -.21630E-04** at limit **
   9  Prefactor     .10000E-03    55.441       -.53380E-05** at limit **
  10  Prefactor     .10000E-03    6.4741       -.10241E-07** at limit **
  11  Prefactor     23.406        12.429       -.13883E-05   -.25472E-04
  12  Prefactor     .10000E-03    90.040       -.14051E-04** at limit **
  13  norm          .10000E-03    12.223        .17046E-06** at limit **
  14  Prefactor     9.4947        11.827        .26391E-05   -.41369E-03
  15  Prefactor     .10000E-03    226.63        .14974E-03** at limit **
  16  Prefactor     .10000E-03    5.8157       -.20340E-07** at limit **
  17  Prefactor     .10000E-03    21.439        .11655E-04** at limit **
  18  Prefactor     29.684        23.862        .56671E-06    .19248E-04
  19  Prefactor     .10000E-03    93.427       -.12494E-04** at limit **
  20  Prefactor     .10000E-03    14.754       -.15151E-06** at limit **
  21  Prefactor     .10000E-03    78.337        .45376E-05** at limit **
  22  Prefactor     .10169E-03    68.473       -.59700E-05** at limit **
  23  norm          5.0057        16.972        .54611E-05    .17018E-03
  24  Normalizat    2.1523        .41806        .62563E-06    .27310E-04
  25  Prefactor     .60175        .30338       -.92253E-06   -.32300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4063
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.49475
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.6838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101687
  norm       = 5.00568
  Normalizat = 2.15228
  Prefactor  = 0.601755
 **********
 **   18 **HESSE 
 **********

 FCN=   2427.457     FROM HESSE     STATUS=OK           425 CALLS     3332 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2749        211.50        .22340E-03   -1.5346    
   2  Prefactor     .10000E-03    85.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.322        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    72.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1683        .98175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    55.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4776        .12244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.406        12.463        .82797E-04   -1.4740    
  12  Prefactor     .10000E-03    90.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.265        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4947        11.922        .12993E-03   -1.5092    
  15  Prefactor     .10000E-03    226.03        .20877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8239        .11604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.684        23.954        .73529E-04   -1.4618    
  19  Prefactor     .10000E-03    93.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    78.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10169E-03    100.22        .93074E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.0057        17.106        .17963E-03   -1.5260    
  24  Normalizat    2.1523        .50601        .25953E-03   -.60786    
  25  Prefactor     .60175        .36009        .34186E-03   -1.0751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30685e-10
Minuit parameter uncertainties:
  1  52.8315
  2  3.58898e-05
  3  1.63623e-06
  4  5.66149e-06
  5  3.26486e-05
  6  2.4715e-06
  7  0.000143373
  8  6.38978e-06
  9  5.08336e-06
  10  2.28913e-06
  11  12.464
  12  1.42593e-05
  13  1.93332e-05
  14  11.9253
  15  0.00149735
  16  6.71193e-06
  17  2.23169e-06
  18  23.9616
  19  8.76984e-06
  20  3.05956e-05
  21  7.04191e-06
  22  0.0260484
  23  17.1227
  24  0.507301
  25  0.361479
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.426e-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:  6.018e-01  3.615e-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:  2.152e+00  5.073e-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: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211649/likelihoodResults_585878401_586137601_4FGL_J2209.8-5028_daily_bin1337.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) = 2427.45735893
delta logL = -5.23552221239e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2427.45730696
delta logL = -3.87548880099e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6211       1.0000          .0000       10.000    
     3 'Normalizat'    2.1522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60179       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=   2427.457     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10260E-03    41.187        .18142E-01** at limit **
   2  Index         2.5479        5.8462        .50000        .44223E-05
   3  Normalizat    2.1523        .74814E-02    .25953E-03    .17084E-03
   4  Prefactor     .60176        .57030E-02    .34186E-03    .85816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102602
  Index      = 2.54785
  Normalizat = 2.15228
  Prefactor  = 0.601756
 **********
 **   18 **HESSE 
 **********

 FCN=   2427.457     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10260E-03    208.93        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5479        6.2669        .50000       -.51258    
   3  Normalizat    2.1523        .16934E-01    .51905E-04   -.60786    
   4  Prefactor     .60176        .12908E-01    .13674E-04   -1.0751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.04927e-10
Minuit parameter uncertainties:
  1  0.0467996
  2  333.479
  3  0.0169337
  4  0.0129084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211649': 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) = 2427.45730673
delta logL = -1.58775492309e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.026e-04  4.680e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.548e+00  3.335e+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.018e-01  1.291e-02  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:  2.152e+00  1.693e-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/211649/cmap_HighResolution_585878401_586137601_4FGL_J2209.8-5028_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-28 06:42:31.364252', job_id='211649', GAL2='0.60', fit_tolerance='1e-08', EG2='2.15', EG='2.15', time_epoch_completed='1632836551.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='-1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1337' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:42:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 211649: <4FGL_J2209.8-5028_daily_bin1337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1337 332.474 -50.4702 585878401 586137601 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 :                                   471.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             194.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

