/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 225 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin54
RA = 332.474, Dec = -50.4702
tmin = 253324801, tmax = 253584001
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='205747', job_status='RUN', time_executed='2021-09-28 06:14:16.675384', time_epoch_executed='1632834856.68' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205747/ft1_4FGL_J2209.8-5028_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205747/ft2_4FGL_J2209.8-5028_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205747/ft1_4FGL_J2209.8-5028_daily_bin54.fits outfile=/scratch/kocevski/205747/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin54.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.42
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205747/ft1_filtered_4FGL_J2209.8-5028_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/205747/ft2_4FGL_J2209.8-5028_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/205747/ltcube_253324801_253584001_4FGL_J2209.8-5028_daily_bin54.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/205747/ft2_4FGL_J2209.8-5028_daily_bin54.fits
.....................!
real 12.34
user 12.03
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205747/ft1_filtered_4FGL_J2209.8-5028_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/205747/ft2_4FGL_J2209.8-5028_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/205747/ltcube_253324801_253584001_4FGL_J2209.8-5028_daily_bin54.fits outfile=/scratch/kocevski/205747/expmap_253324801_253584001_4FGL_J2209.8-5028_daily_bin54.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/205747/ltcube_253324801_253584001_4FGL_J2209.8-5028_daily_bin54.fits
.....................!
real 189.89
user 185.55
sys 4.01

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/205747/ft1_filtered_4FGL_J2209.8-5028_daily_bin54.fits scfile=/scratch/kocevski/205747/ft2_4FGL_J2209.8-5028_daily_bin54.fits outfile=/scratch/kocevski/205747/cmap_253324801_253584001_4FGL_J2209.8-5028_daily_bin54.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205747/ft1_filtered_4FGL_J2209.8-5028_daily_bin54.fits scfile=/scratch/kocevski/205747/ft2_4FGL_J2209.8-5028_daily_bin54.fits outfile=/scratch/kocevski/205747/cmap_HighResolution_253324801_253584001_4FGL_J2209.8-5028_daily_bin54.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.53
user 0.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205747/ft1_filtered_4FGL_J2209.8-5028_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/205747/ft2_4FGL_J2209.8-5028_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205747/Model_4FGL_J2209.8-5028_daily_bin54.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/205747/ft1_filtered_4FGL_J2209.8-5028_daily_bin54.fits.....................!
real 48.10
user 46.76
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.095       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.224       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .78872E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.486       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4870       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.177       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    66.601       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.534       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'    .68724       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0684       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=   6215.162     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2892 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.526        .16327E-06** at limit **
   2  Prefactor     16.109        53.966        .17035E-05    .90297E-04
   3  Prefactor     14.944        7.9175        .53944E-07    .36719E-03
   4  Prefactor     12.224        19.027        .20144E-06    .71172E-05
   5  Prefactor     24.284        21.572        .53902E-07    .17281E-03
   6  Prefactor     .10003E-03    2.5047       -.16709E-05** at limit **
   7  norm          12.486        4.8480       -.25918E-07   -.19405E-03
   8  Prefactor     11.550        10.012        .72923E-07    .75625E-05
   9  Prefactor     .10000E-03    24.412       -.74894E-06** at limit **
  10  Prefactor     5.1069        8.4598        .67703E-05   -.21598E-04
  11  Prefactor     3.4871        3.1684       -.34369E-06    .32693E-04
  12  Prefactor     .10000E-03    65.398       -.10930E-05** at limit **
  13  norm          .10000E-03    7.5981       -.85967E-07** at limit **
  14  Prefactor     .10011E-03    1.6315       -.61687E-06** at limit **
  15  Prefactor     .10000E-03    14.379        .54646E-07** at limit **
  16  Prefactor     .10000E-03    2.0602       -.82767E-07** at limit **
  17  Prefactor     15.171        26.336       -.10998E-05   -.15797E-05
  18  Prefactor     .10000E-03    6.6452        .15412E-05** at limit **
  19  Prefactor     66.737        104.98        .40205E-05    .21521E-03
  20  Prefactor     .10000E-03    1.5332       -.10739E-08** at limit **
  21  Prefactor     51.536        41.381        .23059E-06    .34440E-04
  22  Prefactor     .10000E-03    5.1928        .75396E-07** at limit **
  23  norm          .10000E-03    1.8975        .39000E-08** at limit **
  24  Normalizat    .68737        .17644       -.59646E-06    .46108E-03
  25  Prefactor     1.0684        .13996       -.71385E-06    .59585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.1087
  Prefactor  = 14.9443
  Prefactor  = 12.2236
  Prefactor  = 24.2841
  Prefactor  = 0.000100033
  norm       = 12.486
  Prefactor  = 11.55
  Prefactor  = 0.0001
  Prefactor  = 5.10692
  Prefactor  = 3.48709
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1713
  Prefactor  = 0.0001
  Prefactor  = 66.7368
  Prefactor  = 0.0001
  Prefactor  = 51.5359
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.68737
  Prefactor  = 1.06837
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.162     FROM HESSE     STATUS=OK           417 CALLS     3309 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.109        53.857        .99833E-04   -1.4905    
   3  Prefactor     14.944        7.8811        .10362E-03   -1.4935    
   4  Prefactor     12.224        19.023        .11457E-03   -1.5009    
   5  Prefactor     24.284        21.513        .81300E-04   -1.4722    
   6  Prefactor     .10003E-03    11.480        .22665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.486        4.8478        .10295E-03   -1.5001    
   8  Prefactor     11.550        10.010        .11788E-03   -1.5028    
   9  Prefactor     .10000E-03    24.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1069        8.5526        .88983E-03   -1.5256    
  11  Prefactor     3.4871        3.1653        .12762E-03   -1.5334    
  12  Prefactor     .10000E-03    65.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.7482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10011E-03    16.744        .19058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0726        .11044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.171        26.481        .10281E-03   -1.4929    
  18  Prefactor     .10000E-03    6.6801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     66.737        105.99        .24590E-03   -1.4072    
  20  Prefactor     .10000E-03    1.5349        .95329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     51.536        41.377        .55867E-04   -1.4271    
  22  Prefactor     .10000E-03    5.2077        .17545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8975        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68737        .20081        .28625E-03   -1.0439    
  25  Prefactor     1.0684        .16259        .19520E-03   -.90484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03837e-08
Minuit parameter uncertainties:
  1  3.30358e-05
  2  54.0207
  3  7.88163
  4  19.0322
  5  21.5202
  6  0.00123941
  7  4.84797
  8  10.0118
  9  0.000122565
  10  8.55462
  11  3.16549
  12  0.000390849
  13  4.32023e-06
  14  0.00273477
  15  3.18667e-05
  16  6.84289e-07
  17  26.5013
  18  2.66663e-05
  19  106.293
  20  8.4022e-07
  21  41.3996
  22  2.11155e-06
  23  4.76936e-08
  24  0.201023
  25  0.162665
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.068e+00  1.627e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  6.874e-01  2.010e-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: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205747/likelihoodResults_253324801_253584001_4FGL_J2209.8-5028_daily_bin54.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) = 6215.16230768
delta logL = -7.26225598555e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6215.1622351
delta logL = -4.7013600124e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3213       1.0000          .0000       10.000    
     3 'Normalizat'    .68737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0684       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=   6215.162     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      265 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9261.2        .18142E-02** at limit **
   2  Index         2.3284        5.5045        .50000       -.10030E-05
   3  Normalizat    .68736        .11142        .28625E-03    .21562E-03
   4  Prefactor     1.0684        .93642E-01    .19520E-03    .86651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32841
  Normalizat = 0.687365
  Prefactor  = 1.06838
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.162     FROM HESSE     STATUS=OK            29 CALLS      294 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3284        6.1632        .50000       -.56370    
   3  Normalizat    .68736        .18795        .11450E-04   -1.0439    
   4  Prefactor     1.0684        .15802        .39040E-04   -.90484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84069e-10
Minuit parameter uncertainties:
  1  0.000127755
  2  4.37545
  3  0.188124
  4  0.158092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205747': 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) = 6215.16223507
delta logL = -1.0957592167e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.278e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.328e+00  4.375e+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.068e+00  1.581e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  6.874e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/205747/cmap_HighResolution_253324801_253584001_4FGL_J2209.8-5028_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-09-28 06:26:11.294691', job_id='205747', GAL2='1.07', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632835571.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-1.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='54' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:26:11 PDT 2021


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

Job <4FGL_J2209.8-5028_daily_bin54> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:21 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:23 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:10:23 2021
Terminated at Tue Sep 28 06:26:12 2021
Results reported at Tue Sep 28 06:26:12 2021

Your job looked like:

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

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

