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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin465
RA = 332.474, Dec = -50.4702
tmin = 359856001, tmax = 360115201
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='207433', job_status='RUN', time_executed='2021-09-28 06:17:52.256423', time_epoch_executed='1632835072.26' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207433

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207433/ft1_4FGL_J2209.8-5028_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207433/ft2_4FGL_J2209.8-5028_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207433/ft1_4FGL_J2209.8-5028_daily_bin465.fits outfile=/scratch/kocevski/207433/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin465.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=359856001.0 tmax=360115201.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.33
user 3.05
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207433/ft2_4FGL_J2209.8-5028_daily_bin465.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/207433/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin465.fits evtable="EVENTS" outfile="/scratch/kocevski/207433/ft1_filtered_4FGL_J2209.8-5028_daily_bin465.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/207433/ft1_filtered_4FGL_J2209.8-5028_daily_bin465.fits" evtable="EVENTS" scfile=/scratch/kocevski/207433/ft2_4FGL_J2209.8-5028_daily_bin465.fits sctable="SC_DATA" outfile=/scratch/kocevski/207433/ltcube_359856001_360115201_4FGL_J2209.8-5028_daily_bin465.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/207433/ft2_4FGL_J2209.8-5028_daily_bin465.fits
.....................!
real 12.20
user 11.80
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207433/ft1_filtered_4FGL_J2209.8-5028_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/207433/ft2_4FGL_J2209.8-5028_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/207433/ltcube_359856001_360115201_4FGL_J2209.8-5028_daily_bin465.fits outfile=/scratch/kocevski/207433/expmap_359856001_360115201_4FGL_J2209.8-5028_daily_bin465.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/207433/ltcube_359856001_360115201_4FGL_J2209.8-5028_daily_bin465.fits
.....................!
real 190.84
user 184.92
sys 5.53

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/207433/ft1_filtered_4FGL_J2209.8-5028_daily_bin465.fits scfile=/scratch/kocevski/207433/ft2_4FGL_J2209.8-5028_daily_bin465.fits outfile=/scratch/kocevski/207433/cmap_359856001_360115201_4FGL_J2209.8-5028_daily_bin465.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207433/ft1_filtered_4FGL_J2209.8-5028_daily_bin465.fits scfile=/scratch/kocevski/207433/ft2_4FGL_J2209.8-5028_daily_bin465.fits outfile=/scratch/kocevski/207433/cmap_HighResolution_359856001_360115201_4FGL_J2209.8-5028_daily_bin465.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207433/ft1_filtered_4FGL_J2209.8-5028_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/207433/ft2_4FGL_J2209.8-5028_daily_bin465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207433/Model_4FGL_J2209.8-5028_daily_bin465.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/207433/ft1_filtered_4FGL_J2209.8-5028_daily_bin465.fits.....................!
real 50.66
user 49.21
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1850       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5348       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8314       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8185       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    135.79       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6339       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .47890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46684       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4594       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68796       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1179       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=   7028.370     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     3377 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.139       -.64426E-05** at limit **
   2  Prefactor     .10000E-03    28.753        .52772E-05** at limit **
   3  Prefactor     17.905        7.5201        .40380E-06   -.10868E-03
   4  Prefactor     4.1829        29.627        .14521E-06   -.37103E-04
   5  Prefactor     .10000E-03    30.255       -.26640E-05** at limit **
   6  Prefactor     5.5349        4.4732        .47776E-06   -.16795E-03
   7  norm          2.8306        4.3028        .19651E-05   -.19473E-04
   8  Prefactor     3.8182        7.8202        .10311E-05   -.35662E-04
   9  Prefactor     1.7965        90.741        .43743E-04    .49400E-05
  10  Prefactor     2.5361        7.6946        .84248E-07   -.11907E-02
  11  Prefactor     .10000E-03    .98315       -.95929E-08** at limit **
  12  Prefactor     135.86        126.34        .10186E-04   -.60453E-04
  13  norm          .10000E-03    3.1317        .29716E-07** at limit **
  14  Prefactor     .10000E-03    1.0002        .84719E-07** at limit **
  15  Prefactor     9.6353        18.452        .65980E-06   -.18425E-04
  16  Prefactor     .10000E-03    1.7303       -.67397E-07** at limit **
  17  Prefactor     .50101        13.777        .19948E-05   -.36897E-03
  18  Prefactor     .10000E-03    4.5755        .10298E-06** at limit **
  19  Prefactor     .10000E-03    55.012        .10465E-04** at limit **
  20  Prefactor     .46735        3.7003        .72255E-06   -.16538E-03
  21  Prefactor     .10000E-03    11.458       -.61470E-07** at limit **
  22  Prefactor     2.4590        8.8292        .48887E-05   -.39655E-03
  23  norm          .10000E-03    2.8053       -.64123E-07** at limit **
  24  Normalizat    .68787        .15880       -.36884E-05   -.38521E-03
  25  Prefactor     1.1180        .12986       -.87377E-06   -.49815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9055
  Prefactor  = 4.18291
  Prefactor  = 0.0001
  Prefactor  = 5.53495
  norm       = 2.83057
  Prefactor  = 3.81824
  Prefactor  = 1.79654
  Prefactor  = 2.5361
  Prefactor  = 0.0001
  Prefactor  = 135.862
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.63529
  Prefactor  = 0.0001
  Prefactor  = 0.501008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.467348
  Prefactor  = 0.0001
  Prefactor  = 2.45903
  norm       = 0.0001
  Normalizat = 0.687867
  Prefactor  = 1.11799
 **********
 **   18 **HESSE 
 **********

 FCN=   7028.370     FROM HESSE     STATUS=OK           431 CALLS     3808 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.905        7.5125        .94648E-04   -1.4861    
   4  Prefactor     4.1829        28.662        .19700E-03   -1.5299    
   5  Prefactor     .10000E-03    30.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5349        4.4693        .15022E-03   -1.5237    
   7  norm          2.8306        4.2266        .18660E-03   -1.5371    
   8  Prefactor     3.8182        7.7986        .20655E-03   -1.5317    
   9  Prefactor     1.7965        93.196        .31666E-03   -1.5440    
  10  Prefactor     2.5361        14.841        .12805E-02   -1.5389    
  11  Prefactor     .10000E-03    .98920        .81147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     135.86        160.70        .17281E-03   -1.3371    
  13  norm          .10000E-03    3.1562        .14488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0103        .81841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6353        18.439        .12911E-03   -1.5087    
  16  Prefactor     .10000E-03    1.7459        .10762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .50101        120.98        .57827E-02   -1.5566    
  18  Prefactor     .10000E-03    4.6141        .17505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    55.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .46735        8.8393        .31005E-02   -1.5571    
  21  Prefactor     .10000E-03    11.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4590        9.1875        .13040E-02   -1.5394    
  23  norm          .10000E-03    2.8094        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68787        .17997        .28383E-03   -1.0437    
  25  Prefactor     1.1180        .14877        .19288E-03   -.88894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50138e-08
Minuit parameter uncertainties:
  1  0.000138278
  2  0.00010086
  3  7.5129
  4  21.9137
  5  0.000109792
  6  4.46956
  7  4.22709
  8  7.80062
  9  25.9209
  10  12.2745
  11  2.11378e-06
  12  161.217
  13  2.10814e-06
  14  2.41923e-06
  15  18.4499
  16  2.79769e-06
  17  15.601
  18  1.12192e-06
  19  0.000168629
  20  4.06524
  21  5.12167e-06
  22  9.19277
  23  2.02192e-06
  24  0.180128
  25  0.148824
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.359e+02  1.612e+02  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.118e+00  1.488e-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.879e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 5.66e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.93e-05

TS (Fixed Index): 2.48
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207433/likelihoodResults_359856001_360115201_4FGL_J2209.8-5028_daily_bin465.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) = 7027.77029548
delta logL = 0.599244044895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7027.74715259
delta logL = 0.622386932249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.802       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1915       1.0000          .0000       10.000    
     3 'Normalizat'    .64975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1385       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=   7027.747     FROM MIGRAD    STATUS=FAILED        93 CALLS      298 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.848        461.20        .62754E-04   -.30798E-04
   2  Index         3.1909        2.9849        .40129E-02    .72104E-03
   3  Normalizat    .64972        .18886        .29128E-03   -.14199E-03
   4  Prefactor     1.1386        .15894        .19132E-03    .30710E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7027.747     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      381 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.848        461.20        .40546E-03   -1.4429    
   2  Index         3.1909        2.9849        .65561E-03   -.37021    
   3  Normalizat    .64972        .18886        .22846E-03   -1.0591    
   4  Prefactor     1.1386        .15894        .16826E-03   -.88243    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7027.747     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      410 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.849        83.695        .25101E-05    .33515E-04
   2  Index         3.1909        .97254        .80258E-03   -.42156E-04
   3  Normalizat    .64972        .17770        .11651E-04   -.76109E-04
   4  Prefactor     1.1386        .14871        .38264E-04    .17898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.8487
  Index      = 3.19092
  Normalizat = 0.649722
  Prefactor  = 1.13857
 **********
 **   18 **HESSE 
 **********

 FCN=   7027.747     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.849        73.911        .50203E-06   -1.4429    
   2  Index         3.1909        .86248        .32103E-04   -.37022    
   3  Normalizat    .64972        .17750        .23302E-05   -1.0591    
   4  Prefactor     1.1386        .14850        .76527E-05   -.88243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8317e-10
Minuit parameter uncertainties:
  1  74.0769
  2  0.867479
  3  0.177658
  4  0.148554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207433': 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) = 7027.74715238
delta logL = 0.622387144093

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.085e+01  7.408e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.191e+00  8.675e-01  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.139e+00  1.486e-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.497e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.84
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.19 +/- 0.87
Photon Flux (Free Index): 7.60e-08 +/- 4.73e-08
Energy Flux (Free Index): 1.40e-05 +/- 8.79e-06

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/207433/cmap_HighResolution_359856001_360115201_4FGL_J2209.8-5028_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='1.40e-05', photon_flux_error='5.66e-08', dlogl='6.22e-01', energy_flux='1.63e-05', photon_flux2='7.60e-08', job_status='DONE', time_completed='2021-09-28 06:31:31.518868', photon_index_error2='0.87', photon_index2='3.19', ts='2.48', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='8.79e-06', EG='0.69', time_epoch_completed='1632835891.52', return_code='0', job_id='207433', GAL2='1.14', EG2='0.65', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='4.73e-08', ts2='3.84', photon_index='2.37' WHERE bin_id='465' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:31:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 207433: <4FGL_J2209.8-5028_daily_bin465> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin465> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:27 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:29 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:15:29 2021
Terminated at Tue Sep 28 06:31:31 2021
Results reported at Tue Sep 28 06:31:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin465 332.474 -50.4702 359856001 360115201 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 :                                   811.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

