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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1652
RA = 332.474, Dec = -50.4702
tmin = 667526401, tmax = 667785601
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='739821', job_status='RUN', time_executed='2022-03-01 00:52:42.375313', time_epoch_executed='1646124762.38' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739821

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739821/ft1_4FGL_J2209.8-5028_daily_bin1652.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739821/ft2_4FGL_J2209.8-5028_daily_bin1652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739821/ft1_4FGL_J2209.8-5028_daily_bin1652.fits outfile=/scratch/kocevski/739821/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1652.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=667526401.0 tmax=667785601.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 4.64
user 4.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739821/ft2_4FGL_J2209.8-5028_daily_bin1652.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/739821/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1652.fits evtable="EVENTS" outfile="/scratch/kocevski/739821/ft1_filtered_4FGL_J2209.8-5028_daily_bin1652.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.15
Number of photons that survived the gtmktime cut: 507

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739821/ft1_filtered_4FGL_J2209.8-5028_daily_bin1652.fits" evtable="EVENTS" scfile=/scratch/kocevski/739821/ft2_4FGL_J2209.8-5028_daily_bin1652.fits sctable="SC_DATA" outfile=/scratch/kocevski/739821/ltcube_667526401_667785601_4FGL_J2209.8-5028_daily_bin1652.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/739821/ft2_4FGL_J2209.8-5028_daily_bin1652.fits
.....................!
real 16.04
user 15.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739821/ft1_filtered_4FGL_J2209.8-5028_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/739821/ft2_4FGL_J2209.8-5028_daily_bin1652.fits sctable="SC_DATA" expcube=/scratch/kocevski/739821/ltcube_667526401_667785601_4FGL_J2209.8-5028_daily_bin1652.fits outfile=/scratch/kocevski/739821/expmap_667526401_667785601_4FGL_J2209.8-5028_daily_bin1652.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/739821/ltcube_667526401_667785601_4FGL_J2209.8-5028_daily_bin1652.fits
.....................!
real 190.55
user 185.95
sys 4.17

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/739821/ft1_filtered_4FGL_J2209.8-5028_daily_bin1652.fits scfile=/scratch/kocevski/739821/ft2_4FGL_J2209.8-5028_daily_bin1652.fits outfile=/scratch/kocevski/739821/cmap_667526401_667785601_4FGL_J2209.8-5028_daily_bin1652.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739821/ft1_filtered_4FGL_J2209.8-5028_daily_bin1652.fits scfile=/scratch/kocevski/739821/ft2_4FGL_J2209.8-5028_daily_bin1652.fits outfile=/scratch/kocevski/739821/cmap_HighResolution_667526401_667785601_4FGL_J2209.8-5028_daily_bin1652.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739821/ft1_filtered_4FGL_J2209.8-5028_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/739821/ft2_4FGL_J2209.8-5028_daily_bin1652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739821/Model_4FGL_J2209.8-5028_daily_bin1652.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/739821/ft1_filtered_4FGL_J2209.8-5028_daily_bin1652.fits.....................!
real 42.98
user 41.69
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.138       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.402       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 '    7.2844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12603E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3823       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.436       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90336       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8361       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.755       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9192       1.0000         .10000E-03   10000.    
    19 'Prefactor '    89.314       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2055       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86603       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98383       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=   5458.284     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2956 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.143        31.163       -.16060E-07    .49311E-04
   2  Prefactor     30.401        47.071        .48416E-06    .36915E-05
   3  Prefactor     .10000E-03    4.2869       -.87187E-07** at limit **
   4  Prefactor     .10000E-03    7.2557       -.47005E-07** at limit **
   5  Prefactor     7.2859        17.926        .28917E-06    .55235E-05
   6  Prefactor     .10000E-03    2.3670        .45922E-06** at limit **
   7  norm          2.3819        3.2336        .28303E-07   -.20315E-04
   8  Prefactor     .10000E-03    4.4831       -.72923E-07** at limit **
   9  Prefactor     25.444        38.093       -.42662E-06    .42205E-05
  10  Prefactor     .90337        9.6307        .22364E-05    .75878E-04
  11  Prefactor     .10000E-03    2.3473        .55496E-07** at limit **
  12  Prefactor     .10000E-03    40.768        .95707E-07** at limit **
  13  norm          .10000E-03    2.9179        .38966E-07** at limit **
  14  Prefactor     1.8363        2.8611        .10974E-06    .53757E-05
  15  Prefactor     .10000E-03    12.703       -.58962E-07** at limit **
  16  Prefactor     .10000E-03    4.1350        .92530E-06** at limit **
  17  Prefactor     44.775        33.546       -.17802E-05   -.12435E-03
  18  Prefactor     1.9170        14.306        .54687E-05    .34366E-03
  19  Prefactor     89.349        100.02       -.40463E-05    .12678E-05
  20  Prefactor     2.2048        6.2581        .53940E-05   -.65294E-03
  21  Prefactor     .10000E-03    63.312        .10611E-05** at limit **
  22  Prefactor     .10000E-03    8.1482        .85515E-07** at limit **
  23  norm          .10000E-03    2.5783       -.57418E-08** at limit **
  24  Normalizat    .86587        .18757       -.32149E-05   -.27192E-03
  25  Prefactor     .98401        .14629        .17713E-05    .18292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.1431
  Prefactor  = 30.4011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.28589
  Prefactor  = 0.0001
  norm       = 2.38187
  Prefactor  = 0.0001
  Prefactor  = 25.4442
  Prefactor  = 0.903372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.83628
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 44.7754
  Prefactor  = 1.91701
  Prefactor  = 89.3485
  Prefactor  = 2.20477
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.865873
  Prefactor  = 0.984009
 **********
 **   18 **HESSE 
 **********

 FCN=   5458.284     FROM HESSE     STATUS=OK           425 CALLS     3381 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.143        31.141        .54514E-04   -1.4235    
   2  Prefactor     30.401        46.998        .72665E-04   -1.4605    
   3  Prefactor     .10000E-03    4.3361        .14933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2859        17.880        .14861E-03   -1.5168    
   6  Prefactor     .10000E-03    8.2866        .21580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3819        3.2220        .15003E-03   -1.5399    
   8  Prefactor     .10000E-03    4.4900        .15277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.444        37.757        .79428E-04   -1.4699    
  10  Prefactor     .90337        9.7002        .42592E-03   -1.5518    
  11  Prefactor     .10000E-03    2.4459        .22089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9244        .12325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8363        2.8425        .14965E-03   -1.5437    
  15  Prefactor     .10000E-03    12.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2719        .14735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     44.775        33.871        .59929E-04   -1.4369    
  18  Prefactor     1.9170        14.948        .29996E-03   -1.5431    
  19  Prefactor     89.349        99.913        .21258E-03   -1.3815    
  20  Prefactor     2.2048        6.4580        .13851E-02   -1.5411    
  21  Prefactor     .10000E-03    63.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.1728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5791        .11586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86587        .21691        .25934E-03   -.97670    
  25  Prefactor     .98401        .17105        .20183E-03   -.93264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29641e-09
Minuit parameter uncertainties:
  1  31.1506
  2  47.055
  3  2.56303e-05
  4  6.67673e-06
  5  17.8928
  6  3.51932e-05
  7  3.22226
  8  4.95648e-06
  9  37.7921
  10  5.92133
  11  5.06826e-06
  12  2.12824e-05
  13  3.75007e-06
  14  2.84268
  15  2.32372e-06
  16  0.000125601
  17  33.8851
  18  10.7096
  19  100.102
  20  6.46009
  21  0.000752737
  22  2.72212e-06
  23  1.00038e-07
  24  0.217133
  25  0.171148
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.128e-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:  9.840e-01  1.711e-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.659e-01  2.171e-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: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/739821/likelihoodResults_667526401_667785601_4FGL_J2209.8-5028_daily_bin1652.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) = 5458.28396029
delta logL = -0.000116762976177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5458.28384445
delta logL = -9.182103895e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12256E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6564       1.0000          .0000       10.000    
     3 'Normalizat'    .86588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98401       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=   5458.284     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      270 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10304E-03    15.648        .18142E-01** at limit **
   2  Index         2.5743        8.3523        .50000        .95250E-05
   3  Normalizat    .86588        .31407E-02    .25935E-03    .36165E-04
   4  Prefactor     .98401        .26043E-02    .20183E-03    .52442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103037
  Index      = 2.57435
  Normalizat = 0.865877
  Prefactor  = 0.984006
 **********
 **   18 **HESSE 
 **********

 FCN=   5458.284     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10304E-03    104.28        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5743        8.6768        .50000       -.50651    
   3  Normalizat    .86588        .81309E-02    .10374E-04   -.97670    
   4  Prefactor     .98401        .67420E-02    .80732E-05   -.93265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26238e-09
Minuit parameter uncertainties:
  1  0.0356523
  2  266.375
  3  0.00813087
  4  0.00674204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739821': 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) = 5458.28384391
delta logL = -3.80698111258e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.030e-04  3.565e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.574e+00  2.664e+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:  9.840e-01  6.742e-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:  8.659e-01  8.131e-03  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/739821/cmap_HighResolution_667526401_667785601_4FGL_J2209.8-5028_daily_bin1652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2022-03-01 01:04:08.568090', job_id='739821', GAL2='0.98', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1646125448.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-3.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1652' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 01:04:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 739821: <4FGL_J2209.8-5028_daily_bin1652> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1652> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Mar  1 00:50:36 2022
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:51:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:51:30 2022
Terminated at Tue Mar  1 01:04:09 2022
Results reported at Tue Mar  1 01:04:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1652 332.474 -50.4702 667526401 667785601 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 :                                   687.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            813 sec.

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

