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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1376
RA = 332.474, Dec = -50.4702
tmin = 595987201, tmax = 596246401
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='211709', job_status='RUN', time_executed='2021-09-28 06:31:39.817064', time_epoch_executed='1632835899.82' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211709/ft1_4FGL_J2209.8-5028_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211709/ft2_4FGL_J2209.8-5028_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211709/ft1_4FGL_J2209.8-5028_daily_bin1376.fits outfile=/scratch/kocevski/211709/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1376.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=595987201.0 tmax=596246401.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.26
user 2.94
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211709/ft1_filtered_4FGL_J2209.8-5028_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/211709/ft2_4FGL_J2209.8-5028_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/211709/ltcube_595987201_596246401_4FGL_J2209.8-5028_daily_bin1376.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/211709/ft2_4FGL_J2209.8-5028_daily_bin1376.fits
.....................!
real 12.32
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211709/ft1_filtered_4FGL_J2209.8-5028_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/211709/ft2_4FGL_J2209.8-5028_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/211709/ltcube_595987201_596246401_4FGL_J2209.8-5028_daily_bin1376.fits outfile=/scratch/kocevski/211709/expmap_595987201_596246401_4FGL_J2209.8-5028_daily_bin1376.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/211709/ltcube_595987201_596246401_4FGL_J2209.8-5028_daily_bin1376.fits
.....................!
real 190.81
user 185.32
sys 5.06

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/211709/ft1_filtered_4FGL_J2209.8-5028_daily_bin1376.fits scfile=/scratch/kocevski/211709/ft2_4FGL_J2209.8-5028_daily_bin1376.fits outfile=/scratch/kocevski/211709/cmap_595987201_596246401_4FGL_J2209.8-5028_daily_bin1376.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211709/ft1_filtered_4FGL_J2209.8-5028_daily_bin1376.fits scfile=/scratch/kocevski/211709/ft2_4FGL_J2209.8-5028_daily_bin1376.fits outfile=/scratch/kocevski/211709/cmap_HighResolution_595987201_596246401_4FGL_J2209.8-5028_daily_bin1376.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211709/ft1_filtered_4FGL_J2209.8-5028_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/211709/ft2_4FGL_J2209.8-5028_daily_bin1376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211709/Model_4FGL_J2209.8-5028_daily_bin1376.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/211709/ft1_filtered_4FGL_J2209.8-5028_daily_bin1376.fits.....................!
real 49.40
user 48.04
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.652       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.752       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22676E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    16.356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20261E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69593E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9143       1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.227       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5783       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.289       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11667E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1956       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94371       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=   6341.003     FROM MIGRAD    STATUS=FAILED      1081 CALLS     3477 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47827        190.37        .67485E-02   -.13435E-03
   2  Prefactor     14.670        25.772        .10464E-03   -.38570E-04
   3  Prefactor     11.750        10.619        .11686E-03   -.26190E-03
   4  Prefactor     11.860        37.271        .11632E-03   -.10360E-03
   5  Prefactor     .10000E-03    20.938        .18142E-02** at limit **
   6  Prefactor     .56580E-01    5.0802        .40350E-01    .10722E-01
   7  norm          16.351        7.0278        .99032E-04   -.68987E-03
   8  Prefactor     .10032E-03    102.30        .59574E-02** at limit **
   9  Prefactor     .10000E-03    31.491        .12543    ** at limit **
  10  Prefactor     .10000E-03    4.4566        .16355E-02** at limit **
  11  Prefactor     6.9142        4.3715        .12608E-03   -.34175E-03
  12  Prefactor     48.126        91.830        .28871E-03    .12325E-04
  13  norm          5.5231        5.9429        .17099E-03   -.73270E-04
  14  Prefactor     1.5834        4.3058        .25121E-03    .18781E-04
  15  Prefactor     30.348        49.524        .72801E-04   -.40883E-04
  16  Prefactor     .10000E-03    3.5133        .14511E-02** at limit **
  17  Prefactor     70.287        35.218        .47883E-04   -.44352E-04
  18  Prefactor     .10000E-03    4.4864        .16448E-02** at limit **
  19  Prefactor     .10000E-03    42.298        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.2304        .11607E-02** at limit **
  21  Prefactor     .10000E-03    12.543        .18142E-02** at limit **
  22  Prefactor     .10000E-03    15.094        .18142E-02** at limit **
  23  norm          .10000E-03    2.2764        .11733E-02** at limit **
  24  Normalizat    1.1957        .23870        .26812E-03   -.85315E-03
  25  Prefactor     .94319        .17912        .23440E-03   -.62468E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6341.003     FROM SIMPLEX   STATUS=PROGRESS    1090 CALLS     4567 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47929        190.37        .73900E-05   -1.5570    
   2  Prefactor     14.670        25.772        .11297E-05   -1.4942    
   3  Prefactor     11.750        10.619        .52006E-06   -1.5022    
   4  Prefactor     11.860        37.271        .29069E-06   -1.5019    
   5  Prefactor     .10000E-03    20.938        .10179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56580E-01    5.0802        .18729E-06   -1.5660    
   7  norm          16.351        7.0278        .17441E-06   -1.4899    
   8  Prefactor     .10032E-03    102.30        .16426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.491        .23528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4566        .37611E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9142        4.3715        .17717E-06   -1.5182    
  12  Prefactor     48.126        91.830        .16677E-06   -1.4319    
  13  norm          5.5231        5.9429        .17777E-06   -1.5238    
  14  Prefactor     1.5834        4.3058        .18029E-06   -1.5456    
  15  Prefactor     30.348        49.524        .17048E-06   -1.4606    
  16  Prefactor     .10000E-03    3.5133        .37059E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.287        35.218        .16377E-06   -1.4029    
  18  Prefactor     .10000E-03    4.4864        .23355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.298        .90895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2304        .19868E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.543        .17728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.094        .20708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2764        .12125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1957        .23870        .10122E-06   -.86736    
  25  Prefactor     .94319        .17912        .11051E-06   -.94648    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6341.003     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     4996 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47911        197.02        .26994E-02    .12796E-03
   2  Prefactor     14.670        25.772        .41855E-05   -.65189E-05
   3  Prefactor     11.750        10.619        .46742E-05   -.38429E-04
   4  Prefactor     11.860        37.253        .46528E-05   -.87962E-05
   5  Prefactor     .10000E-03    20.941        .36285E-03** at limit **
   6  Prefactor     .56598E-01    1.9715        .82493E-01   -.22270E-03
   7  norm          16.352        7.0243        .19806E-04   -.59351E-04
   8  Prefactor     .10000E-03    104.40        .11915E-02** at limit **
   9  Prefactor     .10000E-03    31.007        .12683    ** at limit **
  10  Prefactor     .10000E-03    4.4573        .32709E-03** at limit **
  11  Prefactor     6.9142        4.3713        .50431E-05    .76647E-05
  12  Prefactor     48.126        91.821        .11548E-04   -.37409E-05
  13  norm          5.5231        5.9428        .68395E-05    .86435E-05
  14  Prefactor     1.5834        4.3028        .10048E-04   -.61095E-05
  15  Prefactor     30.348        49.510        .14560E-04    .46848E-05
  16  Prefactor     .10000E-03    3.5139        .29022E-03** at limit **
  17  Prefactor     70.287        35.206        .95765E-05    .30866E-05
  18  Prefactor     .10000E-03    4.4867        .32896E-03** at limit **
  19  Prefactor     .10000E-03    42.299        .36285E-03** at limit **
  20  Prefactor     .10000E-03    2.2304        .23214E-03** at limit **
  21  Prefactor     .10000E-03    12.543        .36285E-03** at limit **
  22  Prefactor     .10000E-03    15.101        .36285E-03** at limit **
  23  norm          .10000E-03    2.2764        .23466E-03** at limit **
  24  Normalizat    1.1957        .23881        .53625E-04   -.35150E-04
  25  Prefactor     .94318        .17905        .46879E-04   -.77021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.479113
  Prefactor  = 14.6697
  Prefactor  = 11.7501
  Prefactor  = 11.8599
  Prefactor  = 0.0001
  Prefactor  = 0.0565984
  norm       = 16.3515
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.91419
  Prefactor  = 48.1257
  norm       = 5.52311
  Prefactor  = 1.58341
  Prefactor  = 30.3481
  Prefactor  = 0.0001
  Prefactor  = 70.2866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.19569
  Prefactor  = 0.943183
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.003     FROM HESSE     STATUS=OK           417 CALLS     5413 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47911        197.95        .53988E-03   -1.5570    
   2  Prefactor     14.670        25.726        .83710E-06   -1.4942    
   3  Prefactor     11.750        10.618        .93484E-06   -1.5022    
   4  Prefactor     11.860        37.325        .93056E-06   -1.5019    
   5  Prefactor     .10000E-03    20.941        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56598E-01    68.564        .21223E-02   -1.5660    
   7  norm          16.352        7.0249        .39613E-05   -1.4899    
   8  Prefactor     .10000E-03    104.49        .23830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.117        .12648       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4573        .65419E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9142        4.3699        .10086E-05   -1.5182    
  12  Prefactor     48.126        91.558        .23097E-05   -1.4319    
  13  norm          5.5231        5.9423        .13679E-05   -1.5238    
  14  Prefactor     1.5834        4.3034        .20097E-05   -1.5456    
  15  Prefactor     30.348        49.496        .29121E-05   -1.4606    
  16  Prefactor     .10000E-03    3.5139        .58043E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.287        35.205        .19153E-05   -1.4029    
  18  Prefactor     .10000E-03    4.4867        .65793E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.299        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2304        .46429E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.543        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.101        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2764        .46932E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1957        .23858        .10725E-04   -.86736    
  25  Prefactor     .94318        .17939        .93758E-05   -.94648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74358e-09
Minuit parameter uncertainties:
  1  19.5405
  2  25.7449
  3  10.6193
  4  37.3986
  5  1.37289e-05
  6  3.94089
  7  7.02525
  8  0.000972784
  9  0.000248253
  10  3.51552e-06
  11  4.37015
  12  91.8274
  13  5.94293
  14  4.3042
  15  49.563
  16  4.84958e-06
  17  35.2152
  18  7.5602e-07
  19  4.13112e-06
  20  1.18201e-06
  21  2.39911e-06
  22  7.24632e-06
  23  1.19063e-07
  24  0.238794
  25  0.179508
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.813e+01  9.183e+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:  9.432e-01  1.795e-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.196e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211709/likelihoodResults_595987201_596246401_4FGL_J2209.8-5028_daily_bin1376.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) = 6340.9932643
delta logL = 0.00950152187215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6340.18484752
delta logL = 0.81791829689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.9945       1.0000          .0000       10.000    
     3 'Normalizat'    1.1212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98617       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=   6340.185     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      327 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53910E-02    .65774E-01    .95424E-03    .11308E-01
   2  Index         6.9979        2.1428        .12286        .15875E-03
   3  Normalizat    1.1212        .46049E-01    .62237E-01   -.27389E-05
   4  Prefactor     .98610        .36436E-01    .46094E-01    .36421E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00539095
  Index      = 6.9979
  Normalizat = 1.12124
  Prefactor  = 0.986101
 **********
 **   18 **HESSE 
 **********

 FCN=   6340.185     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      362 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53910E-02    .18241        .47133E-04   -1.5693    
   2  Index         6.9979        7.4397        .44695E-02    .41106    
   3  Normalizat    1.1212        .16999        .27528E-03   -.89073    
   4  Prefactor     .98610        .13284        .22986E-03   -.93194    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.10397e-08
Minuit parameter uncertainties:
  1  0.0621323
  2  4.69927
  3  0.170075
  4  0.132879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211709': 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) = 6340.18484691
delta logL = 0.817918911655

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.391e-03  6.213e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  6.998e+00  4.699e+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:  9.861e-01  1.329e-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.121e+00  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 7.00 +/- 4.70
Photon Flux (Free Index): 7.51e-08 +/- 5.69e-08
Energy Flux (Free Index): 8.98e-06 +/- 7.05e-06

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/211709/cmap_HighResolution_595987201_596246401_4FGL_J2209.8-5028_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', comment='SUCCESS', energy_flux2='8.98e-06', dlogl='8.18e-01', photon_flux2='7.51e-08', job_status='DONE', time_completed='2021-09-28 06:47:02.441516', photon_index_error2='4.70', photon_index2='7.00', ts='0.35', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.69e-08', energy_flux_error2='7.05e-06', EG='1.20', time_epoch_completed='1632836822.44', return_code='0', job_id='211709', GAL2='0.99', EG2='1.12', return_code2='102', photon_flux_error2='5.69e-08', ts2='2.09', photon_index='2.37' WHERE bin_id='1376' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:47:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 211709: <4FGL_J2209.8-5028_daily_bin1376> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1376> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:23 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:26 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:30:26 2021
Terminated at Tue Sep 28 06:47:02 2021
Results reported at Tue Sep 28 06:47:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1376 332.474 -50.4702 595987201 596246401 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 :                                   900.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

