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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1015
RA = 332.474, Dec = -50.4702
tmin = 502416001, tmax = 502675201
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='210607', job_status='RUN', time_executed='2021-09-28 06:28:01.990903', time_epoch_executed='1632835681.99' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210607/ft1_4FGL_J2209.8-5028_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210607/ft2_4FGL_J2209.8-5028_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210607/ft1_4FGL_J2209.8-5028_daily_bin1015.fits outfile=/scratch/kocevski/210607/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1015.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=502416001.0 tmax=502675201.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.53
user 3.31
sys 0.20

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

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

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210607/ft1_filtered_4FGL_J2209.8-5028_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/210607/ft2_4FGL_J2209.8-5028_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/210607/ltcube_502416001_502675201_4FGL_J2209.8-5028_daily_bin1015.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/210607/ft2_4FGL_J2209.8-5028_daily_bin1015.fits
.....................!
real 11.84
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210607/ft1_filtered_4FGL_J2209.8-5028_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/210607/ft2_4FGL_J2209.8-5028_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/210607/ltcube_502416001_502675201_4FGL_J2209.8-5028_daily_bin1015.fits outfile=/scratch/kocevski/210607/expmap_502416001_502675201_4FGL_J2209.8-5028_daily_bin1015.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/210607/ltcube_502416001_502675201_4FGL_J2209.8-5028_daily_bin1015.fits
.....................!
real 190.56
user 185.95
sys 4.30

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/210607/ft1_filtered_4FGL_J2209.8-5028_daily_bin1015.fits scfile=/scratch/kocevski/210607/ft2_4FGL_J2209.8-5028_daily_bin1015.fits outfile=/scratch/kocevski/210607/cmap_502416001_502675201_4FGL_J2209.8-5028_daily_bin1015.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/210607/ft1_filtered_4FGL_J2209.8-5028_daily_bin1015.fits scfile=/scratch/kocevski/210607/ft2_4FGL_J2209.8-5028_daily_bin1015.fits outfile=/scratch/kocevski/210607/cmap_HighResolution_502416001_502675201_4FGL_J2209.8-5028_daily_bin1015.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/210607/ft1_filtered_4FGL_J2209.8-5028_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/210607/ft2_4FGL_J2209.8-5028_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210607/Model_4FGL_J2209.8-5028_daily_bin1015.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/210607/ft1_filtered_4FGL_J2209.8-5028_daily_bin1015.fits.....................!
real 56.46
user 55.25
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-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 '    7.8869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19347E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    32.401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7353       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.3238       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3554       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.342       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.620       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   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'    .63144       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0792       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=   8036.703     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2458 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9460        .78456E-06** at limit **
   2  Prefactor     .10000E-03    18.336        .22458E-06** at limit **
   3  Prefactor     .10000E-03    1.7215        .10559E-06** at limit **
   4  Prefactor     .10000E-03    6.2771       -.14017E-06** at limit **
   5  Prefactor     7.8861        18.095        .10139E-07   -.38495E-04
   6  Prefactor     .10002E-03    1.5349        .28754E-06** at limit **
   7  norm          32.402        5.9003        .13216E-08    .54347E-04
   8  Prefactor     .10000E-03    7.8434       -.22005E-05** at limit **
   9  Prefactor     .10001E-03    31.429       -.10397E-04** at limit **
  10  Prefactor     3.9960        3.9270        .14916E-05   -.28510E-02
  11  Prefactor     1.7347        2.8074        .25713E-06   -.19596E-03
  12  Prefactor     .10000E-03    84.064       -.36026E-05** at limit **
  13  norm          8.3235        6.3634       -.18129E-07   -.83400E-05
  14  Prefactor     1.3552        2.3020        .39654E-07   -.26638E-03
  15  Prefactor     .10000E-03    11.223       -.23961E-05** at limit **
  16  Prefactor     12.342        5.2764        .31924E-06    .19654E-03
  17  Prefactor     12.606        17.263        .87485E-06   -.22887E-04
  18  Prefactor     .10000E-03    8.8592        .26069E-05** at limit **
  19  Prefactor     .10001E-03    37.876        .12748E-04** at limit **
  20  Prefactor     .10000E-03    .97425       -.43974E-07** at limit **
  21  Prefactor     .10000E-03    13.700        .43899E-06** at limit **
  22  Prefactor     .10000E-03    3.1506        .71116E-07** at limit **
  23  norm          .10000E-03    2.0149        .49115E-08** at limit **
  24  Normalizat    .63140        .14917       -.40254E-06   -.54680E-04
  25  Prefactor     1.0793        .12128       -.17969E-06   -.80555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.88614
  Prefactor  = 0.000100021
  norm       = 32.4016
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.99604
  Prefactor  = 1.73474
  Prefactor  = 0.000100001
  norm       = 8.32353
  Prefactor  = 1.35525
  Prefactor  = 0.0001
  Prefactor  = 12.3423
  Prefactor  = 12.6056
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.631398
  Prefactor  = 1.07928
 **********
 **   18 **HESSE 
 **********

 FCN=   8036.703     FROM HESSE     STATUS=OK           421 CALLS     2879 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7302        .11485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8861        18.066        .14278E-03   -1.5146    
   6  Prefactor     .10002E-03    14.333        .21072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          32.402        5.8996        .70395E-04   -1.4569    
   8  Prefactor     .10000E-03    7.9893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    32.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9960        6.2001        .10091E-02   -1.5308    
  11  Prefactor     1.7347        2.7785        .18081E-03   -1.5445    
  12  Prefactor     .10000E-03    84.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.3235        6.3612        .13895E-03   -1.5131    
  14  Prefactor     1.3552        2.2707        .16898E-03   -1.5475    
  15  Prefactor     .10000E-03    11.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.342        5.2865        .11403E-03   -1.5005    
  17  Prefactor     12.606        17.216        .11276E-03   -1.4998    
  18  Prefactor     .10000E-03    9.0643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    38.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .97464        .86414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1544        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0187        .12428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .63140        .17210        .29090E-03   -1.0667    
  25  Prefactor     1.0793        .14048        .19169E-03   -.90131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50747e-09
Minuit parameter uncertainties:
  1  3.0775e-05
  2  1.40263e-05
  3  2.05089e-06
  4  4.38937e-06
  5  18.0789
  6  0.00108763
  7  5.89971
  8  7.87624e-05
  9  0.000828209
  10  6.20112
  11  2.77867
  12  0.000504329
  13  6.36168
  14  2.27085
  15  0.000118452
  16  5.28669
  17  17.2229
  18  5.38872e-05
  19  0.00115906
  20  6.6067e-07
  21  1.58285e-05
  22  1.28072e-06
  23  9.93738e-08
  24  0.172251
  25  0.14053
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.043e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.079e+00  1.405e-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:  6.314e-01  1.723e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210607/likelihoodResults_502416001_502675201_4FGL_J2209.8-5028_daily_bin1015.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) = 8036.70295551
delta logL = -5.63379153391e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8036.70289865
delta logL = 5.24287315784e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8194       1.0000          .0000       10.000    
     3 'Normalizat'    .63140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0793       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=   8036.696     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      328 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3651        79.943        .90712E-02    .28546E-03
   2  Index         3.3995        .42383        .50000        .68060E-05
   3  Normalizat    .62704        .67464E-02    .65951E-01    .58511E-05
   4  Prefactor     1.0809        .57173E-02    .38433E-01    .23298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.3651
  Index      = 3.3995
  Normalizat = 0.627037
  Prefactor  = 1.08089
 **********
 **   18 **HESSE 
 **********

 FCN=   8036.696     FROM HESSE     STATUS=OK            31 CALLS      359 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3651        58.792        .36285E-03   -1.5474    
   2  Index         3.3995        3.7173        .41800E-02   -.32584    
   3  Normalizat    .62704        .16720        .29184E-03   -1.0685    
   4  Prefactor     1.0809        .13913        .19156E-03   -.90080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70846e-11
Minuit parameter uncertainties:
  1  17.9355
  2  4.27403
  3  0.167332
  4  0.139178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210607': 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): 0
logL (Free Index) = 8036.69598457
delta logL = 0.00691460424059

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.365e+00  1.794e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.399e+00  4.274e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.081e+00  1.392e-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:  6.270e-01  1.673e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/210607/cmap_HighResolution_502416001_502675201_4FGL_J2209.8-5028_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-09-28 06:41:21.471653', job_id='210607', GAL2='1.08', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1632836481.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.91e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1015' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:41:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 210607: <4FGL_J2209.8-5028_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1015 332.474 -50.4702 502416001 502675201 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 :                                   783.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            954 sec.

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

