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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1651
RA = 332.474, Dec = -50.4702
tmin = 667267201, tmax = 667526401
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='535970', job_status='RUN', time_executed='2022-02-26 01:15:18.603898', time_epoch_executed='1645866918.6' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535970/ft1_4FGL_J2209.8-5028_daily_bin1651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535970/ft2_4FGL_J2209.8-5028_daily_bin1651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535970/ft1_4FGL_J2209.8-5028_daily_bin1651.fits outfile=/scratch/kocevski/535970/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1651.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=667267201.0 tmax=667526401.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.88
user 2.67
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/535970/ft2_4FGL_J2209.8-5028_daily_bin1651.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/535970/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1651.fits evtable="EVENTS" outfile="/scratch/kocevski/535970/ft1_filtered_4FGL_J2209.8-5028_daily_bin1651.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.34
sys 0.15
Number of photons that survived the gtmktime cut: 88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535970/ft1_filtered_4FGL_J2209.8-5028_daily_bin1651.fits" evtable="EVENTS" scfile=/scratch/kocevski/535970/ft2_4FGL_J2209.8-5028_daily_bin1651.fits sctable="SC_DATA" outfile=/scratch/kocevski/535970/ltcube_667267201_667526401_4FGL_J2209.8-5028_daily_bin1651.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/535970/ft2_4FGL_J2209.8-5028_daily_bin1651.fits
.....................!
real 13.46
user 13.11
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535970/ft1_filtered_4FGL_J2209.8-5028_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/535970/ft2_4FGL_J2209.8-5028_daily_bin1651.fits sctable="SC_DATA" expcube=/scratch/kocevski/535970/ltcube_667267201_667526401_4FGL_J2209.8-5028_daily_bin1651.fits outfile=/scratch/kocevski/535970/expmap_667267201_667526401_4FGL_J2209.8-5028_daily_bin1651.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/535970/ltcube_667267201_667526401_4FGL_J2209.8-5028_daily_bin1651.fits
.....................!
real 190.43
user 185.62
sys 4.41

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/535970/ft1_filtered_4FGL_J2209.8-5028_daily_bin1651.fits scfile=/scratch/kocevski/535970/ft2_4FGL_J2209.8-5028_daily_bin1651.fits outfile=/scratch/kocevski/535970/cmap_667267201_667526401_4FGL_J2209.8-5028_daily_bin1651.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.54
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/535970/ft1_filtered_4FGL_J2209.8-5028_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/535970/ft2_4FGL_J2209.8-5028_daily_bin1651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/535970/Model_4FGL_J2209.8-5028_daily_bin1651.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/535970/ft1_filtered_4FGL_J2209.8-5028_daily_bin1651.fits......................!
real 18.77
user 17.52
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16493E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13730E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    130.95       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11934E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16138E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.860       1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.759       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8971       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.844       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .19817       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83295       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=   917.4784     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2915 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.994       -.31796E-08** at limit **
   2  Prefactor     .10000E-03    500.55       -.29317E-10** at limit **
   3  Prefactor     .10000E-03    42.564        .44025E-06** at limit **
   4  Prefactor     .10000E-03    179.96        .35331E-06** at limit **
   5  Prefactor     .10000E-03    645.78       -.64837E-06** at limit **
   6  Prefactor    10000.0        456.15       -.10014E-05** at limit **
   7  norm          132.81        930.56       -.97626E-05    .85665E-05
   8  Prefactor     .10000E-03    6709.1       -.32204E-06** at limit **
   9  Prefactor     .10000E-03    131.68       -.88631E-08** at limit **
  10  Prefactor     .10000E-03    19.716        .53440E-07** at limit **
  11  Prefactor     .10000E-03    3.1416        .25718E-07** at limit **
  12  Prefactor     .10000E-03    341.07        .28792E-06** at limit **
  13  norm          .10000E-03    7.0192        .74522E-08** at limit **
  14  Prefactor     11.874        18.404        .50391E-07    .49879E-04
  15  Prefactor     58.336        195.01        .12350E-06    .70634E-05
  16  Prefactor     3.8989        16.043        .15411E-05    .31410E-04
  17  Prefactor     .10000E-03    15.900        .74092E-07** at limit **
  18  Prefactor     .10000E-03    7.4515        .83367E-07** at limit **
  19  Prefactor     .10000E-03    75.468        .39692E-07** at limit **
  20  Prefactor     .10000E-03    10.350       -.53675E-06** at limit **
  21  Prefactor     33.698        82.500        .57484E-06    .11988E-04
  22  Prefactor     .10000E-03    15.634        .20919E-06** at limit **
  23  norm          .10000E-03    5.9481        .17079E-07** at limit **
  24  Normalizat    .19881        .47602       -.24878E-04    .45452E-05
  25  Prefactor     .83240        .41812        .10020E-04    .15521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 132.805
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8743
  Prefactor  = 58.336
  Prefactor  = 3.89887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6977
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.198813
  Prefactor  = 0.832399
 **********
 **   18 **HESSE 
 **********

 FCN=   917.4784     FROM HESSE     STATUS=OK           409 CALLS     3324 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.994        .13562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    500.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    179.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    647.09        .18183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        456.21        .21135E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          132.81        909.04        .17593E-03   -1.3398    
   8  Prefactor     .10000E-03    6708.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    131.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.720        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1419        .52447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    341.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0192        .78399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.874        18.433        .11632E-03   -1.5019    
  15  Prefactor     58.336        195.30        .26169E-03   -1.4179    
  16  Prefactor     3.8989        16.024        .20438E-03   -1.5313    
  17  Prefactor     .10000E-03    15.901        .11801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.4542        .80781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    75.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.319        .95049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.698        82.653        .68881E-04   -1.4546    
  22  Prefactor     .10000E-03    15.654        .11704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.9482        .72169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .19881        .47655        .47112E-03   -1.2950    
  25  Prefactor     .83240        .41861        .20104E-03   -.98545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90207e-11
Minuit parameter uncertainties:
  1  1.54958e-06
  2  4.16579e-05
  3  7.39961e-05
  4  5.10424e-05
  5  0.000673719
  6  0.000352547
  7  711.008
  8  0.00377113
  9  5.77743e-05
  10  4.3598e-06
  11  2.5409e-07
  12  8.13842e-05
  13  2.76193e-07
  14  18.4423
  15  197.506
  16  15.8155
  17  2.35623e-07
  18  1.03118e-06
  19  1.31407e-05
  20  4.9391e-05
  21  82.9363
  22  1.07343e-05
  23  5.16563e-07
  24  0.486883
  25  0.420225
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.138e-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:  8.324e-01  4.202e-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.988e-01  4.869e-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: 3.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.62e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/535970/likelihoodResults_667267201_667526401_4FGL_J2209.8-5028_daily_bin1651.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) = 917.478387778
delta logL = -1.38028987067e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 917.478387763
delta logL = -1.37887469691e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96181E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3718       1.0000          .0000       10.000    
     3 'Normalizat'    .19881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   917.4784     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      201 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    375.07        .90730E-02** at limit **
   2  Index         2.3241        5.2580        .50000        .10537E-05
   3  Normalizat    .19881        .97109E-02    .10663        .10884E-04
   4  Prefactor     .83240        .84156E-02    .44137E-01   -.47835E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.32407
  Normalizat = 0.198813
  Prefactor  = 0.832398
 **********
 **   18 **HESSE 
 **********

 FCN=   917.4784     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      232 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1771.9        .18146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3241        5.7917        .50000       -.56473    
   3  Normalizat    .19881        .21739E-01    .47108E-03   -1.2950    
   4  Prefactor     .83240        .18823E-01    .20104E-03   -.98545    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.49214e-08
Minuit parameter uncertainties:
  1  0.0038408
  2  829.259
  3  0.0217395
  4  0.0188234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535970': 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) = 917.478373962
delta logL = 1.27009798234e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.841e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.324e+00  8.293e+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:  8.324e-01  1.882e-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:  1.988e-01  2.174e-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/535970/cmap_HighResolution_667267201_667526401_4FGL_J2209.8-5028_daily_bin1651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-02', job_status='DONE', photon_flux_upper_limit='3.40e-07', time_completed='2022-02-26 01:21:36.888508', job_id='535970', GAL2='0.83', fit_tolerance='1e-08', EG2='0.20', EG='0.20', time_epoch_completed='1645867296.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1651' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 26 01:21:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 535970: <4FGL_J2209.8-5028_daily_bin1651> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1651> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Feb 26 01:10:23 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 26 01:13:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 26 01:13:55 2022
Terminated at Sat Feb 26 01:21:37 2022
Results reported at Sat Feb 26 01:21:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1651 332.474 -50.4702 667267201 667526401 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 :                                   381.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            674 sec.

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

