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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin69
RA = 332.474, Dec = -50.4702
tmin = 257212801, tmax = 257472001
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='205770', job_status='RUN', time_executed='2021-09-28 06:10:42.255893', time_epoch_executed='1632834642.26' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205770/ft1_4FGL_J2209.8-5028_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205770/ft2_4FGL_J2209.8-5028_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205770/ft1_4FGL_J2209.8-5028_daily_bin69.fits outfile=/scratch/kocevski/205770/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin69.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=257212801.0 tmax=257472001.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 2.30
user 2.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205770/ft1_filtered_4FGL_J2209.8-5028_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/205770/ft2_4FGL_J2209.8-5028_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/205770/ltcube_257212801_257472001_4FGL_J2209.8-5028_daily_bin69.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/205770/ft2_4FGL_J2209.8-5028_daily_bin69.fits
.....................!
real 12.68
user 12.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205770/ft1_filtered_4FGL_J2209.8-5028_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/205770/ft2_4FGL_J2209.8-5028_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/205770/ltcube_257212801_257472001_4FGL_J2209.8-5028_daily_bin69.fits outfile=/scratch/kocevski/205770/expmap_257212801_257472001_4FGL_J2209.8-5028_daily_bin69.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/205770/ltcube_257212801_257472001_4FGL_J2209.8-5028_daily_bin69.fits
.....................!
real 191.79
user 186.28
sys 5.08

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/205770/ft1_filtered_4FGL_J2209.8-5028_daily_bin69.fits scfile=/scratch/kocevski/205770/ft2_4FGL_J2209.8-5028_daily_bin69.fits outfile=/scratch/kocevski/205770/cmap_257212801_257472001_4FGL_J2209.8-5028_daily_bin69.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.964       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.701       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.420       1.0000         .10000E-03   10000.    
     7 'norm      '    13.460       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13286E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.518       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9131       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32626       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.198       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27909E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91372       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1380       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=   5673.432     FROM MIGRAD    STATUS=CONVERGED   1010 CALLS     3342 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4234        22.836        .79226E-03    .10282E-03
   2  Prefactor     .10000E-03    21.114        .18142E-02** at limit **
   3  Prefactor     13.966        12.210        .10719E-03   -.15316E-03
   4  Prefactor     10.699        24.030        .12248E-03   -.14573E-04
   5  Prefactor     .10000E-03    25.970        .18142E-02** at limit **
   6  Prefactor     13.421        6.5761        .10934E-03   -.39033E-03
   7  norm          13.461        6.0030        .10918E-03   -.23242E-03
   8  Prefactor     .10000E-03    7.8870        .18142E-02** at limit **
   9  Prefactor     .10004E-03    87.079        .18142E-02** at limit **
  10  Prefactor     3.2901        13.674        .11149E-02    .14757E-03
  11  Prefactor     .10000E-03    2.5876        .11733E-02** at limit **
  12  Prefactor     28.598        163.33        .75022E-04   -.18457E-04
  13  norm          .10000E-03    3.6043        .13926E-02** at limit **
  14  Prefactor     .83409        6.2917        .33932E-03    .38772E-03
  15  Prefactor     .10000E-03    99.984        .18142E-02** at limit **
  16  Prefactor     6.9126        5.6231        .15259E-03   -.30674E-03
  17  Prefactor     .10000E-03    27.595        .18142E-02** at limit **
  18  Prefactor     .30073        110.86        .38503E-02    .59930E-03
  19  Prefactor     .10000E-03    39.929        .18142E-02** at limit **
  20  Prefactor     12.195        10.205        .11469E-03   -.11459E-03
  21  Prefactor     .10005E-03    30.228        .13985    ** at limit **
  22  Prefactor     .10000E-03    5.8128        .17721E-02** at limit **
  23  norm          .10000E-03    2.5779        .11811E-02** at limit **
  24  Normalizat    .91389        .25216        .29213E-03   -.25105E-03
  25  Prefactor     1.1378        .19258        .21637E-03   -.48449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.42336
  Prefactor  = 0.0001
  Prefactor  = 13.9657
  Prefactor  = 10.6992
  Prefactor  = 0.0001
  Prefactor  = 13.4208
  norm       = 13.4608
  Prefactor  = 0.000100001
  Prefactor  = 0.00010004
  Prefactor  = 3.29013
  Prefactor  = 0.000100001
  Prefactor  = 28.5982
  norm       = 0.0001
  Prefactor  = 0.834092
  Prefactor  = 0.000100001
  Prefactor  = 6.91259
  Prefactor  = 0.000100001
  Prefactor  = 0.300735
  Prefactor  = 0.0001
  Prefactor  = 12.1948
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.913886
  Prefactor  = 1.13782
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.432     FROM HESSE     STATUS=OK           415 CALLS     3757 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4234        22.832        .31691E-04   -1.5201    
   2  Prefactor     .10000E-03    21.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.966        12.205        .42874E-05   -1.4960    
   4  Prefactor     10.699        24.032        .48991E-05   -1.5054    
   5  Prefactor     .10000E-03    25.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.421        6.5742        .43735E-05   -1.4975    
   7  norm          13.461        6.0027        .43671E-05   -1.4974    
   8  Prefactor     .10000E-03    7.8880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    87.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2901        13.445        .44596E-04   -1.5345    
  11  Prefactor     .10000E-03    2.5883        .23466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.598        161.03        .15004E-04   -1.4638    
  13  norm          .10000E-03    3.6048        .27851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .83409        6.2729        .13573E-04   -1.5525    
  15  Prefactor     .10000E-03    100.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.9126        5.6222        .61035E-05   -1.5182    
  17  Prefactor     .10000E-03    27.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30073        111.84        .77006E-03   -1.5598    
  19  Prefactor     .10000E-03    39.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.195        10.202        .45877E-05   -1.5009    
  21  Prefactor     .10005E-03    29.963        .14104       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8132        .35443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5779        .23621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91389        .25095        .11685E-04   -.95974    
  25  Prefactor     1.1378        .19255        .43275E-04   -.88267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01844e-09
Minuit parameter uncertainties:
  1  22.8627
  2  4.14887e-05
  3  12.2072
  4  24.0533
  5  0.000198757
  6  6.57452
  7  6.00296
  8  0.000132812
  9  0.00375942
  10  13.307
  11  7.9515e-05
  12  136.287
  13  2.94164e-05
  14  4.5752
  15  0.000636203
  16  5.62266
  17  0.000393669
  18  11.6189
  19  3.75723e-05
  20  10.2038
  21  0.00239803
  22  2.78032e-05
  23  2.75064e-06
  24  0.251267
  25  0.192672
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.860e+01  1.363e+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.138e+00  1.927e-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:  9.139e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/205770/likelihoodResults_257212801_257472001_4FGL_J2209.8-5028_daily_bin69.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) = 5672.30757881
delta logL = 1.12482434434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5672.26110483
delta logL = 1.1712983328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29029       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3906       1.0000          .0000       10.000    
     3 'Normalizat'    .82271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1847       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=   5672.261     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      343 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29033        3.3981        .64689E-02    .12888E-02
   2  Index         5.3908        2.2361        .98476E-01    .14020E-03
   3  Normalizat    .82265        .52196E-01    .69110E-01    .34241E-04
   4  Prefactor     1.1847        .42852E-01    .35003E-01    .21043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.290334
  Index      = 5.39076
  Normalizat = 0.822651
  Prefactor  = 1.18474
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.261     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      378 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29033        7.9586        .29510E-03   -1.5600    
   2  Index         5.3908        3.7934        .37227E-02    .78232E-01
   3  Normalizat    .82265        .18131        .30579E-03   -.99234    
   4  Prefactor     1.1847        .14686        .21248E-03   -.86802    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.58684e-08
Minuit parameter uncertainties:
  1  3.04009
  2  4.31108
  3  0.181441
  4  0.146907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205770': 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) = 5672.26110464
delta logL = 1.17129851644

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.903e-01  3.040e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  5.391e+00  4.311e+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.185e+00  1.469e-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:  8.227e-01  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 5.39 +/- 4.31
Photon Flux (Free Index): 8.35e-08 +/- 6.10e-08
Energy Flux (Free Index): 1.08e-05 +/- 9.23e-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/205770/cmap_HighResolution_257212801_257472001_4FGL_J2209.8-5028_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='1.17e+00', photon_flux2='8.35e-08', job_status='DONE', time_completed='2021-09-28 06:22:40.378492', photon_index_error2='4.31', photon_index2='5.39', ts='0.09', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='9.23e-06', EG='0.91', time_epoch_completed='1632835360.38', return_code='0', job_id='205770', GAL2='1.18', EG2='0.82', return_code2='102', photon_flux_error2='6.10e-08', ts2='2.60', photon_index='2.37' WHERE bin_id='69' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:22:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 205770: <4FGL_J2209.8-5028_daily_bin69> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin69 332.474 -50.4702 257212801 257472001 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 :                                   716.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            738 sec.

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

