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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin873
RA = 332.474, Dec = -50.4702
tmin = 465609601, tmax = 465868801
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='209176', job_status='RUN', time_executed='2021-09-28 06:20:46.740260', time_epoch_executed='1632835246.74' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209176/ft1_4FGL_J2209.8-5028_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209176/ft2_4FGL_J2209.8-5028_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209176/ft1_4FGL_J2209.8-5028_daily_bin873.fits outfile=/scratch/kocevski/209176/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin873.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=465609601.0 tmax=465868801.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.55
user 3.34
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209176/ft1_filtered_4FGL_J2209.8-5028_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/209176/ft2_4FGL_J2209.8-5028_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/209176/ltcube_465609601_465868801_4FGL_J2209.8-5028_daily_bin873.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/209176/ft2_4FGL_J2209.8-5028_daily_bin873.fits
.....................!
real 11.90
user 11.55
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209176/ft1_filtered_4FGL_J2209.8-5028_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/209176/ft2_4FGL_J2209.8-5028_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/209176/ltcube_465609601_465868801_4FGL_J2209.8-5028_daily_bin873.fits outfile=/scratch/kocevski/209176/expmap_465609601_465868801_4FGL_J2209.8-5028_daily_bin873.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/209176/ltcube_465609601_465868801_4FGL_J2209.8-5028_daily_bin873.fits
.....................!
real 189.32
user 185.26
sys 3.61

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/209176/ft1_filtered_4FGL_J2209.8-5028_daily_bin873.fits scfile=/scratch/kocevski/209176/ft2_4FGL_J2209.8-5028_daily_bin873.fits outfile=/scratch/kocevski/209176/cmap_465609601_465868801_4FGL_J2209.8-5028_daily_bin873.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/209176/ft1_filtered_4FGL_J2209.8-5028_daily_bin873.fits scfile=/scratch/kocevski/209176/ft2_4FGL_J2209.8-5028_daily_bin873.fits outfile=/scratch/kocevski/209176/cmap_HighResolution_465609601_465868801_4FGL_J2209.8-5028_daily_bin873.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/209176/ft1_filtered_4FGL_J2209.8-5028_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/209176/ft2_4FGL_J2209.8-5028_daily_bin873.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209176/Model_4FGL_J2209.8-5028_daily_bin873.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/209176/ft1_filtered_4FGL_J2209.8-5028_daily_bin873.fits.....................!
real 57.64
user 56.39
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6564       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0323       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.019       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2965       1.0000         .10000E-03   10000.    
     7 'norm      '    13.079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.819       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62955       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11738E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.371       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7194       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6937       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2725       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-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'    .92730       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98996       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=   8177.040     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2496 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7448        45.250       -.15040E-05   -.14903E-04
   2  Prefactor     7.6573        40.306        .21199E-05    .62991E-05
   3  Prefactor     2.0324        3.0106       -.68540E-06   -.24812E-02
   4  Prefactor     23.020        19.517        .29042E-06   -.87205E-05
   5  Prefactor     .10000E-03    17.739       -.39659E-05** at limit **
   6  Prefactor     8.2969        3.8286        .18835E-06   -.21661E-05
   7  norm          13.080        4.4998       -.53656E-07   -.69921E-04
   8  Prefactor     .10000E-03    4.5407        .38777E-05** at limit **
   9  Prefactor     14.816        22.574       -.29919E-05   -.31702E-04
  10  Prefactor     .63903        3.9152        .50240E-06   -.13153E-03
  11  Prefactor     .10000E-03    1.1644        .27565E-07** at limit **
  12  Prefactor     .10000E-03    28.178       -.64884E-05** at limit **
  13  norm          .10000E-03    1.8853       -.19741E-07** at limit **
  14  Prefactor     .10000E-03    1.4704        .42544E-06** at limit **
  15  Prefactor     17.360        27.291       -.14105E-04   -.64608E-04
  16  Prefactor     4.7191        4.5565        .17347E-06   -.76125E-04
  17  Prefactor     9.6897        22.421       -.70212E-05   -.62124E-04
  18  Prefactor     2.2743        7.3585        .24290E-05   -.93997E-03
  19  Prefactor     .10000E-03    21.769        .11149E-04** at limit **
  20  Prefactor     .10000E-03    5.2215        .26020E-05** at limit **
  21  Prefactor     .10000E-03    10.917       -.40540E-06** at limit **
  22  Prefactor     .10000E-03    4.7753       -.57703E-05** at limit **
  23  norm          .10000E-03    1.6879       -.23343E-07** at limit **
  24  Normalizat    .92723        .15580        .16108E-05   -.21376E-03
  25  Prefactor     .98999        .12323       -.25215E-06   -.32792E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74476
  Prefactor  = 7.65732
  Prefactor  = 2.03242
  Prefactor  = 23.0201
  Prefactor  = 0.0001
  Prefactor  = 8.29688
  norm       = 13.0796
  Prefactor  = 0.0001
  Prefactor  = 14.8163
  Prefactor  = 0.639031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3596
  Prefactor  = 4.71912
  Prefactor  = 9.68969
  Prefactor  = 2.27428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.927231
  Prefactor  = 0.989994
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.040     FROM HESSE     STATUS=OK           435 CALLS     2931 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7448        45.623        .31753E-03   -1.5444    
   2  Prefactor     7.6573        40.363        .14493E-03   -1.5154    
   3  Prefactor     2.0324        4.7998        .14508E-02   -1.5423    
   4  Prefactor     23.020        19.528        .83487E-04   -1.4748    
   5  Prefactor     .10000E-03    18.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2969        3.8259        .11481E-03   -1.5132    
   7  norm          13.080        4.4986        .10682E-03   -1.4984    
   8  Prefactor     .10000E-03    4.5538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.816        22.424        .10405E-03   -1.4938    
  10  Prefactor     .63903        8.3936        .33251E-02   -1.5548    
  11  Prefactor     .10000E-03    2.6368        .18927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8938        .12125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9216        .21074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.360        27.308        .96097E-04   -1.4874    
  16  Prefactor     4.7191        4.5554        .17705E-03   -1.5273    
  17  Prefactor     9.6897        22.806        .12871E-03   -1.5085    
  18  Prefactor     2.2743        8.7768        .13621E-02   -1.5406    
  19  Prefactor     .10000E-03    21.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.6881        .11473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92723        .17993        .25906E-03   -.95510    
  25  Prefactor     .98999        .14382        .20786E-03   -.93064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7941e-08
Minuit parameter uncertainties:
  1  17.8585
  2  35.1979
  3  4.80075
  4  19.5333
  5  2.11083e-05
  6  3.82597
  7  4.49872
  8  1.88631e-06
  9  22.4369
  10  4.63241
  11  1.35525e-05
  12  2.3258e-05
  13  5.59315e-07
  14  7.51964e-05
  15  27.3276
  16  4.55571
  17  22.8261
  18  8.78181
  19  4.63818e-05
  20  6.61179e-06
  21  3.69315e-06
  22  7.35684e-06
  23  5.29586e-09
  24  0.180043
  25  0.14388
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.326e-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.900e-01  1.439e-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:  9.272e-01  1.800e-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: 4.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209176/likelihoodResults_465609601_465868801_4FGL_J2209.8-5028_daily_bin873.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) = 8177.03988381
delta logL = -0.000169059247128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8177.03971472
delta logL = 3.68854671251e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3461       1.0000          .0000       10.000    
     3 'Normalizat'    .92723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99000       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=   8177.040     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      241 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10215E-03    263.27        .18142E-02** at limit **
   2  Index         2.2746        5.8516        .50000        .63123E-05
   3  Normalizat    .92723        .11149E-01    .25906E-03   -.12419E-04
   4  Prefactor     .98999        .92634E-02    .20786E-03   -.16408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010215
  Index      = 2.27464
  Normalizat = 0.927232
  Prefactor  = 0.989993
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.040     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10215E-03    1077.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2746        6.3154        .50000       -.57647    
   3  Normalizat    .92723        .23590E-01    .10362E-04   -.95510    
   4  Prefactor     .98999        .19600E-01    .83145E-05   -.93064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.38957e-09
Minuit parameter uncertainties:
  1  0.0980632
  2  1077.55
  3  0.0235905
  4  0.0195999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209176': 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) = 8177.03971463
delta logL = 1.27914972836e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.022e-04  9.806e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.275e+00  1.078e+03  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.900e-01  1.960e-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:  9.272e-01  2.359e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/209176/cmap_HighResolution_465609601_465868801_4FGL_J2209.8-5028_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-03', job_status='DONE', photon_flux_upper_limit='4.23e-08', time_completed='2021-09-28 06:34:11.754038', job_id='209176', GAL2='0.99', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632836051.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='873' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:34:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 209176: <4FGL_J2209.8-5028_daily_bin873> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin873> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:35 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:37 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:20:37 2021
Terminated at Tue Sep 28 06:34:12 2021
Results reported at Tue Sep 28 06:34:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin873 332.474 -50.4702 465609601 465868801 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

