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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin940
RA = 332.474, Dec = -50.4702
tmin = 482976001, tmax = 483235201
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='210485', job_status='RUN', time_executed='2021-09-28 06:27:18.556498', time_epoch_executed='1632835638.56' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210485/ft1_4FGL_J2209.8-5028_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210485/ft2_4FGL_J2209.8-5028_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210485/ft1_4FGL_J2209.8-5028_daily_bin940.fits outfile=/scratch/kocevski/210485/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin940.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=482976001.0 tmax=483235201.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.24
user 3.97
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210485/ft1_filtered_4FGL_J2209.8-5028_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/210485/ft2_4FGL_J2209.8-5028_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/210485/ltcube_482976001_483235201_4FGL_J2209.8-5028_daily_bin940.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/210485/ft2_4FGL_J2209.8-5028_daily_bin940.fits
.....................!
real 15.20
user 14.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210485/ft1_filtered_4FGL_J2209.8-5028_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/210485/ft2_4FGL_J2209.8-5028_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/210485/ltcube_482976001_483235201_4FGL_J2209.8-5028_daily_bin940.fits outfile=/scratch/kocevski/210485/expmap_482976001_483235201_4FGL_J2209.8-5028_daily_bin940.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/210485/ltcube_482976001_483235201_4FGL_J2209.8-5028_daily_bin940.fits
.....................!
real 191.91
user 186.65
sys 4.88

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/210485/ft1_filtered_4FGL_J2209.8-5028_daily_bin940.fits scfile=/scratch/kocevski/210485/ft2_4FGL_J2209.8-5028_daily_bin940.fits outfile=/scratch/kocevski/210485/cmap_482976001_483235201_4FGL_J2209.8-5028_daily_bin940.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210485/ft1_filtered_4FGL_J2209.8-5028_daily_bin940.fits scfile=/scratch/kocevski/210485/ft2_4FGL_J2209.8-5028_daily_bin940.fits outfile=/scratch/kocevski/210485/cmap_HighResolution_482976001_483235201_4FGL_J2209.8-5028_daily_bin940.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210485/ft1_filtered_4FGL_J2209.8-5028_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/210485/ft2_4FGL_J2209.8-5028_daily_bin940.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210485/Model_4FGL_J2209.8-5028_daily_bin940.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/210485/ft1_filtered_4FGL_J2209.8-5028_daily_bin940.fits.....................!
real 54.87
user 53.40
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.475       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26283E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6052       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7615       1.0000         .10000E-03   10000.    
     7 'norm      '    16.390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12752E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    100.87       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15164E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12132E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.670       1.0000         .10000E-03   10000.    
    13 'norm      '    .11446E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30007E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5989       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9816       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35039       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .79278E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .53215       1.0000         .10000E-03   10000.    
    23 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54946       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7356.959     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     2156 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.821        14.604       -.58147E-04   -.97132E-03
   2  Prefactor     .10000E-03    23.431        .10456E-04** at limit **
   3  Prefactor     .10000E-03    8.1373        .16134E-05** at limit **
   4  Prefactor     11.443        22.525        .94131E-04    .85517E-03
   5  Prefactor     8.8533        21.512       -.17937E-04   -.51994E-03
   6  Prefactor     2.7618        2.7643       -.25116E-06   -.41251E-04
   7  norm          16.439        6.0963       -.55227E-05   -.30657E-05
   8  Prefactor     .10000E-03    35.922       -.43327E-05** at limit **
   9  Prefactor     99.865        16.355        .23745E-04   -.17757E-01
  10  Prefactor     .10000E-03    5.7993        .79232E-05** at limit **
  11  Prefactor     .10000E-03    2.3374       -.71163E-06** at limit **
  12  Prefactor     40.315        88.502        .58010E-05   -.12995E-02
  13  norm          .10000E-03    2.3766       -.88495E-06** at limit **
  14  Prefactor     .10000E-03    2.5681        .34386E-05** at limit **
  15  Prefactor     .10920E-03    45.584       -.24537E-03** at limit **
  16  Prefactor     6.6177        5.5432        .13913E-06   -.89293E-04
  17  Prefactor     .10000E-03    28.283        .73206E-05** at limit **
  18  Prefactor     7.9788        10.588       -.76389E-05   -.27385E-03
  19  Prefactor     .10163E-03    174.08        .15926E-03** at limit **
  20  Prefactor     .10000E-03    2.3070        .20717E-05** at limit **
  21  Prefactor     .10000E-03    18.416       -.11647E-05** at limit **
  22  Prefactor     .65953        19.032       -.13505E-04   -.19674E-03
  23  norm          .10000E-03    1.8425       -.18298E-05** at limit **
  24  Normalizat    .54768        .19782        .23747E-05   -.15688E-03
  25  Prefactor     1.4078        .16584        .25566E-05   -.20940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4433
  Prefactor  = 8.85326
  Prefactor  = 2.76177
  norm       = 16.4391
  Prefactor  = 0.000100001
  Prefactor  = 99.8652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.3153
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000109198
  Prefactor  = 6.61768
  Prefactor  = 0.000100001
  Prefactor  = 7.97885
  Prefactor  = 0.000101632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.659528
  norm       = 0.0001
  Normalizat = 0.547684
  Prefactor  = 1.40777
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.959     FROM HESSE     STATUS=OK           483 CALLS     2639 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.821        29.138        .23952E-02   -1.4863    
   2  Prefactor     .10000E-03    23.356        .10722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8220        .10578E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.443        28.513        .30700E-02   -1.5031    
   5  Prefactor     8.8533        21.497        .34162E-02   -1.5113    
   6  Prefactor     2.7618        2.7708        .61233E-02   -1.5376    
   7  norm          16.439        6.2538        .24732E-02   -1.4897    
   8  Prefactor     .10000E-03    34.574        .90867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     99.865        46.928        .10007E-02   -1.3706    
  10  Prefactor     .10000E-03    5.7636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.315        88.762        .17526E-02   -1.4437    
  13  norm          .10000E-03    2.3701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10920E-03    151.90        .99141E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.6177        5.5500        .39054E-02   -1.5193    
  17  Prefactor     .10000E-03    28.050        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9788        10.622        .35480E-02   -1.5143    
  19  Prefactor     .10163E-03    230.72        .10644E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.394        .10454E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .65953        18.263        .11401E-01   -1.5546    
  23  norm          .10000E-03    1.8412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54768        .17941        .79508E-01   -1.1025    
  25  Prefactor     1.4078        .14699        .44482E-01   -.80157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25404e-06
Minuit parameter uncertainties:
  1  29.1608
  2  0.000120037
  3  2.63827e-05
  4  28.5474
  5  21.5157
  6  2.77097
  7  6.25401
  8  0.0004026
  9  46.9458
  10  5.9856e-05
  11  2.23359e-05
  12  89.0552
  13  1.67635e-06
  14  1.51804e-05
  15  0.074949
  16  5.55047
  17  0.000335299
  18  10.6248
  19  0.038965
  20  2.20919e-05
  21  2.93526e-05
  22  6.94305
  23  2.14086e-05
  24  0.179598
  25  0.14703
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.032e+01  8.906e+01  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.408e+00  1.470e-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:  5.477e-01  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 9.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210485/likelihoodResults_482976001_483235201_4FGL_J2209.8-5028_daily_bin940.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): 0
logL (Free Index) = 7356.93702457
delta logL = 0.0218486664653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7356.9142805
delta logL = 0.0445927371547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.019       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9355       1.0000          .0000       10.000    
     3 'Normalizat'    .53697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4131       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7356.914     FROM MIGRAD    STATUS=FAILED        99 CALLS      382 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.996        169.37        .87365E-04   -.10801E-04
   2  Index         2.9361        2.8074        .79386E-02    .23550E-03
   3  Normalizat    .53695        .19833        .35540E-03    .15671E-03
   4  Prefactor     1.4131        .16695        .19628E-03   -.27635E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7356.914     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      461 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.996        169.37        .87896E-03   -1.4791    
   2  Index         2.9361        2.8074        .15885E-02   -.42550    
   3  Normalizat    .53695        .19833        .34030E-03   -1.1073    
   4  Prefactor     1.4131        .16695        .18263E-03   -.80003    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7356.914     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      490 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.996        78.020        .34946E-05   -.25375E-04
   2  Index         2.9361        1.9146        .15877E-02    .75900E-05
   3  Normalizat    .53695        .19605        .14216E-04    .12636E-04
   4  Prefactor     1.4131        .16568        .39256E-04   -.39386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.9959
  Index      = 2.93612
  Normalizat = 0.536946
  Prefactor  = 1.41311
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.914     FROM HESSE     STATUS=OK            23 CALLS      513 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.996        73.649        .69892E-06   -1.4791    
   2  Index         2.9361        1.8137        .63509E-04   -.42550    
   3  Normalizat    .53695        .19602        .28432E-05   -1.1073    
   4  Prefactor     1.4131        .16571        .78511E-05   -.80003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18393e-11
Minuit parameter uncertainties:
  1  73.9709
  2  1.8654
  3  0.196274
  4  0.165773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210485': 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) = 7356.91428044
delta logL = 0.0445927993078

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.100e+01  7.397e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.936e+00  1.865e+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.413e+00  1.658e-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:  5.369e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/210485/cmap_HighResolution_482976001_483235201_4FGL_J2209.8-5028_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2021-09-28 06:40:18.867198', job_id='210485', GAL2='1.41', fit_tolerance='1e-08', EG2='0.54', EG='0.55', time_epoch_completed='1632836418.87', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='4.46e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='940' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:40:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 210485: <4FGL_J2209.8-5028_daily_bin940> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin940 332.474 -50.4702 482976001 483235201 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 :                                   769.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

