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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin63
RA = 332.474, Dec = -50.4702
tmin = 255657601, tmax = 255916801
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='205761', job_status='RUN', time_executed='2021-09-28 06:13:49.363760', time_epoch_executed='1632834829.36' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='63'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205761/ft1_4FGL_J2209.8-5028_daily_bin63.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205761/ft2_4FGL_J2209.8-5028_daily_bin63.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205761/ft1_4FGL_J2209.8-5028_daily_bin63.fits outfile=/scratch/kocevski/205761/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin63.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=255657601.0 tmax=255916801.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.49
user 1.29
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205761/ft2_4FGL_J2209.8-5028_daily_bin63.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/205761/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin63.fits evtable="EVENTS" outfile="/scratch/kocevski/205761/ft1_filtered_4FGL_J2209.8-5028_daily_bin63.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205761/ft1_filtered_4FGL_J2209.8-5028_daily_bin63.fits" evtable="EVENTS" scfile=/scratch/kocevski/205761/ft2_4FGL_J2209.8-5028_daily_bin63.fits sctable="SC_DATA" outfile=/scratch/kocevski/205761/ltcube_255657601_255916801_4FGL_J2209.8-5028_daily_bin63.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/205761/ft2_4FGL_J2209.8-5028_daily_bin63.fits
.....................!
real 12.63
user 12.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205761/ft1_filtered_4FGL_J2209.8-5028_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/205761/ft2_4FGL_J2209.8-5028_daily_bin63.fits sctable="SC_DATA" expcube=/scratch/kocevski/205761/ltcube_255657601_255916801_4FGL_J2209.8-5028_daily_bin63.fits outfile=/scratch/kocevski/205761/expmap_255657601_255916801_4FGL_J2209.8-5028_daily_bin63.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/205761/ltcube_255657601_255916801_4FGL_J2209.8-5028_daily_bin63.fits
.....................!
real 190.12
user 185.43
sys 4.32

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/205761/ft1_filtered_4FGL_J2209.8-5028_daily_bin63.fits scfile=/scratch/kocevski/205761/ft2_4FGL_J2209.8-5028_daily_bin63.fits outfile=/scratch/kocevski/205761/cmap_255657601_255916801_4FGL_J2209.8-5028_daily_bin63.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.722       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4878       1.0000         .10000E-03   10000.    
     7 'norm      '    6.0732       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53889E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.521       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.612       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7310       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7836       1.0000         .10000E-03   10000.    
    19 'Prefactor '    109.21       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.739       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.9459       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1394       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79120       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=   5962.474     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2856 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.718        17.265        .17134E-07    .37542E-05
   2  Prefactor     14.080        22.684        .41556E-07    .33484E-05
   3  Prefactor     14.722        8.7228        .32666E-06   -.15863E-04
   4  Prefactor     .10000E-03    22.610        .58804E-07** at limit **
   5  Prefactor     14.371        24.093       -.90392E-07   -.22032E-05
   6  Prefactor     3.4886        4.7839        .28759E-06    .45990E-04
   7  norm          6.0725        4.0046        .26964E-06   -.52299E-04
   8  Prefactor     .10001E-03    6.8938        .20906E-05** at limit **
   9  Prefactor     39.567        38.086       -.16535E-05   -.68443E-04
  10  Prefactor     .10000E-03    8.1571        .14529E-05** at limit **
  11  Prefactor     10.522        5.8959        .12961E-06    .49036E-04
  12  Prefactor     33.631        77.669       -.47997E-05   -.33958E-04
  13  norm          .10000E-03    3.0407        .44165E-07** at limit **
  14  Prefactor     2.7310        2.7432        .82123E-07    .26329E-04
  15  Prefactor     .10000E-03    12.013        .73197E-06** at limit **
  16  Prefactor     .10000E-03    3.4073        .16492E-06** at limit **
  17  Prefactor     .10000E-03    13.125       -.57013E-06** at limit **
  18  Prefactor     2.7863        14.920        .74616E-05   -.49674E-04
  19  Prefactor     109.20        94.795       -.14074E-05    .16906E-04
  20  Prefactor     .10000E-03    2.8189       -.47674E-07** at limit **
  21  Prefactor     47.742        42.606       -.62209E-06   -.70377E-05
  22  Prefactor     .10000E-03    5.2521       -.13420E-07** at limit **
  23  norm          4.9459        4.9298       -.32687E-07    .30092E-05
  24  Normalizat    1.1394        .19123       -.12163E-05   -.43695E-04
  25  Prefactor     .79123        .14580        .77111E-06    .33670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7177
  Prefactor  = 14.0799
  Prefactor  = 14.7215
  Prefactor  = 0.0001
  Prefactor  = 14.3711
  Prefactor  = 3.48864
  norm       = 6.07245
  Prefactor  = 0.000100007
  Prefactor  = 39.5673
  Prefactor  = 0.000100002
  Prefactor  = 10.5219
  Prefactor  = 33.6306
  norm       = 0.0001
  Prefactor  = 2.73103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78635
  Prefactor  = 109.201
  Prefactor  = 0.0001
  Prefactor  = 47.7418
  Prefactor  = 0.0001
  norm       = 4.94594
  Normalizat = 1.13937
  Prefactor  = 0.791228
 **********
 **   18 **HESSE 
 **********

 FCN=   5962.474     FROM HESSE     STATUS=OK           427 CALLS     3283 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.718        17.267        .92576E-04   -1.4842    
   2  Prefactor     14.080        22.687        .10674E-03   -1.4957    
   3  Prefactor     14.722        8.7237        .52194E-03   -1.4940    
   4  Prefactor     .10000E-03    23.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.371        24.084        .10566E-03   -1.4950    
   6  Prefactor     3.4886        4.7684        .18601E-03   -1.5334    
   7  norm          6.0725        4.0029        .60646E-03   -1.5215    
   8  Prefactor     .10001E-03    25.001        .36551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.567        38.161        .63729E-04   -1.4449    
  10  Prefactor     .10000E-03    8.4756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.522        5.9072        .12352E-03   -1.5059    
  12  Prefactor     33.631        77.693        .69118E-04   -1.4547    
  13  norm          .10000E-03    3.0437        .13150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7310        2.7368        .12377E-03   -1.5377    
  15  Prefactor     .10000E-03    12.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4451        .13917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7863        15.577        .12195E-02   -1.5374    
  19  Prefactor     109.20        95.094        .19244E-03   -1.3614    
  20  Prefactor     .10000E-03    2.8356        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.742        42.620        .58035E-04   -1.4325    
  22  Prefactor     .10000E-03    5.2593        .17283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.9459        4.9360        .16721E-03   -1.5263    
  24  Normalizat    1.1394        .22194        .25089E-03   -.88498    
  25  Prefactor     .79123        .16970        .23312E-03   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91575e-10
Minuit parameter uncertainties:
  1  17.2717
  2  22.7006
  3  8.72443
  4  3.78414e-05
  5  24.1006
  6  4.76895
  7  4.00312
  8  0.000861103
  9  38.1848
  10  0.00024975
  11  5.90757
  12  77.9281
  13  3.3007e-06
  14  2.73689
  15  2.44345e-05
  16  1.69138e-05
  17  1.19926e-05
  18  13.1812
  19  95.2268
  20  4.2978e-06
  21  42.6469
  22  2.91807e-06
  23  4.93644
  24  0.222123
  25  0.169815
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.363e+01  7.793e+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:  7.912e-01  1.698e-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.139e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/205761/likelihoodResults_255657601_255916801_4FGL_J2209.8-5028_daily_bin63.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) = 5962.4591203
delta logL = 0.015005258213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5962.45482701
delta logL = 0.0192985489011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.786       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1005       1.0000          .0000       10.000    
     3 'Normalizat'    1.1428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78957       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=   5962.455     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      272 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.796        95.709        .62013E-04   -.18681E-03
   2  Index         2.1049        1.3229        .15241E-01   -.14086E-03
   3  Normalizat    1.1429        .21242        .25056E-03    .32189E-03
   4  Prefactor     .78949        .16795        .23334E-03    .39275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.7964
  Index      = 2.10485
  Normalizat = 1.14287
  Prefactor  = 0.789491
 **********
 **   18 **HESSE 
 **********

 FCN=   5962.455     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.796        93.866        .12403E-04   -1.4414    
   2  Index         2.1049        1.2988        .60966E-03   -.61754    
   3  Normalizat    1.1429        .21249        .50112E-04   -.88387    
   4  Prefactor     .78949        .16803        .46669E-04   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65662e-09
Minuit parameter uncertainties:
  1  94.2002
  2  1.32182
  3  0.212647
  4  0.168144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205761': 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) = 5962.45482096
delta logL = 0.0193045982051

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.180e+01  9.420e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.105e+00  1.322e+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:  7.895e-01  1.681e-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.143e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/205761/cmap_HighResolution_255657601_255916801_4FGL_J2209.8-5028_daily_bin63.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='8.99e-08', time_completed='2021-09-28 06:25:36.043379', job_id='205761', GAL2='0.79', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632835536.04', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.93e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='63' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:25:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 205761: <4FGL_J2209.8-5028_daily_bin63> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin63> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:22 2021
Job was executed on host(s) <bullet0148>, 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:25:36 2021
Results reported at Tue Sep 28 06:25:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin63 332.474 -50.4702 255657601 255916801 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 :                                   691.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

