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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1108
RA = 332.474, Dec = -50.4702
tmin = 526521601, tmax = 526780801
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='210743', job_status='RUN', time_executed='2021-09-28 06:26:12.507962', time_epoch_executed='1632835572.51' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210743

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210743/ft1_4FGL_J2209.8-5028_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210743/ft2_4FGL_J2209.8-5028_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210743/ft1_4FGL_J2209.8-5028_daily_bin1108.fits outfile=/scratch/kocevski/210743/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1108.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=526521601.0 tmax=526780801.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.53
user 4.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210743/ft1_filtered_4FGL_J2209.8-5028_daily_bin1108.fits" evtable="EVENTS" scfile=/scratch/kocevski/210743/ft2_4FGL_J2209.8-5028_daily_bin1108.fits sctable="SC_DATA" outfile=/scratch/kocevski/210743/ltcube_526521601_526780801_4FGL_J2209.8-5028_daily_bin1108.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/210743/ft2_4FGL_J2209.8-5028_daily_bin1108.fits
.....................!
real 12.06
user 11.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210743/ft1_filtered_4FGL_J2209.8-5028_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/210743/ft2_4FGL_J2209.8-5028_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/210743/ltcube_526521601_526780801_4FGL_J2209.8-5028_daily_bin1108.fits outfile=/scratch/kocevski/210743/expmap_526521601_526780801_4FGL_J2209.8-5028_daily_bin1108.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/210743/ltcube_526521601_526780801_4FGL_J2209.8-5028_daily_bin1108.fits
.....................!
real 190.60
user 185.11
sys 5.13

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/210743/ft1_filtered_4FGL_J2209.8-5028_daily_bin1108.fits scfile=/scratch/kocevski/210743/ft2_4FGL_J2209.8-5028_daily_bin1108.fits outfile=/scratch/kocevski/210743/cmap_526521601_526780801_4FGL_J2209.8-5028_daily_bin1108.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.56
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.768       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.297       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .56586       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.791       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8911       1.0000         .10000E-03   10000.    
     7 'norm      '    7.9061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5915       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0125       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9906       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.598       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7577       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8944       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.3263       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0283       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73657       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=   5372.622     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2892 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.768        18.425        .13988E-06   -.81007E-05
   2  Prefactor     43.287        41.834       -.18265E-05   -.18101E-03
   3  Prefactor     .57293        4.0233       -.76779E-06    .37521E-03
   4  Prefactor     38.790        31.102       -.34292E-06    .31046E-04
   5  Prefactor     .10000E-03    25.495        .16090E-05** at limit **
   6  Prefactor     1.8921        3.8820        .30401E-06   -.39836E-04
   7  norm          7.9061        4.4898       -.89852E-07   -.91941E-04
   8  Prefactor     .10000E-03    11.914        .64444E-07** at limit **
   9  Prefactor     .10000E-03    10.668        .56907E-08** at limit **
  10  Prefactor     3.5943        7.0119       -.21135E-06   -.64487E-04
  11  Prefactor     1.0126        3.9326        .43175E-06   -.29812E-03
  12  Prefactor     .10000E-03    35.515       -.13465E-05** at limit **
  13  norm          3.9916        7.0238        .47663E-05   -.94966E-03
  14  Prefactor     .10000E-03    1.2655       -.21088E-06** at limit **
  15  Prefactor     10.563        47.144       -.14182E-04   -.25949E-03
  16  Prefactor     9.7591        6.6217        .91242E-07    .10904E-03
  17  Prefactor     .10000E-03    40.591        .26796E-05** at limit **
  18  Prefactor     3.8912        10.484       -.47959E-07   -.33813E-04
  19  Prefactor     .10000E-03    69.437       -.23591E-06** at limit **
  20  Prefactor     .10000E-03    2.7205       -.76270E-07** at limit **
  21  Prefactor     .10000E-03    28.656       -.22206E-05** at limit **
  22  Prefactor     .10000E-03    6.0937        .54129E-07** at limit **
  23  norm          6.3260        6.4533        .47587E-07    .65269E-04
  24  Normalizat    1.0282        .18214        .11037E-05   -.22140E-05
  25  Prefactor     .73669        .13472       -.98266E-06    .14883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7683
  Prefactor  = 43.2865
  Prefactor  = 0.572928
  Prefactor  = 38.7898
  Prefactor  = 0.000100001
  Prefactor  = 1.89211
  norm       = 7.90613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59434
  Prefactor  = 1.0126
  Prefactor  = 0.000100001
  norm       = 3.99159
  Prefactor  = 0.0001
  Prefactor  = 10.5634
  Prefactor  = 9.75912
  Prefactor  = 0.000100002
  Prefactor  = 3.89118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.32602
  Normalizat = 1.02818
  Prefactor  = 0.736688
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.622     FROM HESSE     STATUS=OK           429 CALLS     3321 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.768        18.429        .38715E-03   -1.4673    
   2  Prefactor     43.287        42.210        .60926E-04   -1.4391    
   3  Prefactor     .57293        16.657        .26797E-02   -1.5557    
   4  Prefactor     38.790        30.926        .64354E-04   -1.4462    
   5  Prefactor     .10000E-03    25.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8921        3.8486        .19419E-03   -1.5433    
   7  norm          7.9061        4.4890        .10962E-03   -1.5146    
   8  Prefactor     .10000E-03    12.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5943        6.9640        .21323E-03   -1.5329    
  11  Prefactor     1.0126        3.9159        .26132E-03   -1.5507    
  12  Prefactor     .10000E-03    35.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9916        7.4328        .10095E-02   -1.5308    
  14  Prefactor     .10000E-03    1.2739        .80401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.563        54.982        .12308E-03   -1.5058    
  16  Prefactor     9.7591        6.6412        .12828E-03   -1.5083    
  17  Prefactor     .10000E-03    40.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8912        10.465        .20446E-03   -1.5313    
  19  Prefactor     .10000E-03    69.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7271        .11806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1057        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.3260        6.4567        .15959E-03   -1.5205    
  24  Normalizat    1.0282        .20804        .23240E-03   -.92092    
  25  Prefactor     .73669        .15455        .21316E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37494e-09
Minuit parameter uncertainties:
  1  18.4327
  2  42.2388
  3  6.17984
  4  30.9388
  5  0.000325818
  6  3.84908
  7  4.48922
  8  2.76279e-06
  9  2.42224e-06
  10  6.96552
  11  3.91692
  12  0.000323846
  13  7.4345
  14  1.55057e-05
  15  48.2692
  16  6.64167
  17  0.000510992
  18  10.4702
  19  0.000130705
  20  8.52477e-06
  21  0.000505037
  22  2.77509e-06
  23  6.45737
  24  0.208203
  25  0.15464
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.238e-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:  7.367e-01  1.546e-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.028e+00  2.082e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210743/likelihoodResults_526521601_526780801_4FGL_J2209.8-5028_daily_bin1108.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) = 5372.6217976
delta logL = -0.000133812905915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5372.62166373
delta logL = 5.59875843464e-08

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 'Index     '    2.3021       1.0000          .0000       10.000    
     3 'Normalizat'    1.0282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73668       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=   5372.622     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      218 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 68.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.363       -.82536E-05** at limit **
   2  Index         2.2880        5.9726       -.63185E-04    .31234E-05
   3  Normalizat    1.0282        .16703        .58987E-07    .14397E-03
   4  Prefactor     .73669        .13246       -.86644E-07    .31251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28799
  Normalizat = 1.02818
  Prefactor  = 0.736688
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.622     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      245 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6183.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2880        5.9526        .20000       -.57329    
   3  Normalizat    1.0282        .39577E-01    .23240E-03   -.92092    
   4  Prefactor     .73669        .31371E-01    .21316E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69236e-05
Minuit parameter uncertainties:
  1  0.00202629
  2  6917.54
  3  0.0395781
  4  0.0313717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210743': 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) = 5372.62166372
delta logL = 6.71816451359e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.026e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.288e+00  6.918e+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:  7.367e-01  3.137e-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.028e+00  3.958e-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/210743/cmap_HighResolution_526521601_526780801_4FGL_J2209.8-5028_daily_bin1108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2021-09-28 06:37:41.285823', job_id='210743', GAL2='0.74', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632836261.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='6.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1108' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:37:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 210743: <4FGL_J2209.8-5028_daily_bin1108> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1108 332.474 -50.4702 526521601 526780801 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 :                                   662.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            723 sec.

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

