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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1707
RA = 332.474, Dec = -50.4702
tmin = 681782401, tmax = 682041601
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='550271', job_status='RUN', time_executed='2022-08-13 00:31:53.172594', time_epoch_executed='1660375913.17' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550271

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550271/ft1_4FGL_J2209.8-5028_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550271/ft2_4FGL_J2209.8-5028_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550271/ft1_4FGL_J2209.8-5028_daily_bin1707.fits outfile=/scratch/kocevski/550271/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1707.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.46
user 5.17
sys 0.25

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

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

Number of photons that the gtmktime cut: 627

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550271/ft1_filtered_4FGL_J2209.8-5028_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/550271/ft2_4FGL_J2209.8-5028_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/550271/ltcube_681782401_682041601_4FGL_J2209.8-5028_daily_bin1707.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/550271/ft2_4FGL_J2209.8-5028_daily_bin1707.fits
.....................!
real 11.87
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550271/ft1_filtered_4FGL_J2209.8-5028_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/550271/ft2_4FGL_J2209.8-5028_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/550271/ltcube_681782401_682041601_4FGL_J2209.8-5028_daily_bin1707.fits outfile=/scratch/kocevski/550271/expmap_681782401_682041601_4FGL_J2209.8-5028_daily_bin1707.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/550271/ltcube_681782401_682041601_4FGL_J2209.8-5028_daily_bin1707.fits
.....................!
real 190.09
user 185.10
sys 4.63

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/550271/ft1_filtered_4FGL_J2209.8-5028_daily_bin1707.fits scfile=/scratch/kocevski/550271/ft2_4FGL_J2209.8-5028_daily_bin1707.fits outfile=/scratch/kocevski/550271/cmap_681782401_682041601_4FGL_J2209.8-5028_daily_bin1707.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550271/ft1_filtered_4FGL_J2209.8-5028_daily_bin1707.fits scfile=/scratch/kocevski/550271/ft2_4FGL_J2209.8-5028_daily_bin1707.fits outfile=/scratch/kocevski/550271/cmap_HighResolution_681782401_682041601_4FGL_J2209.8-5028_daily_bin1707.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550271/ft1_filtered_4FGL_J2209.8-5028_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/550271/ft2_4FGL_J2209.8-5028_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550271/Model_4FGL_J2209.8-5028_daily_bin1707.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/550271/ft1_filtered_4FGL_J2209.8-5028_daily_bin1707.fits.....................!
real 50.54
user 49.27
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.627       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13449E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26884E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.422       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .93785E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3602       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.038       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32793E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98734       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1185       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=   6774.047     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2937 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.124        16.010       -.14087E-06   -.24115E-05
   2  Prefactor     .10000E-03    31.891        .16272E-05** at limit **
   3  Prefactor     5.0714        7.0596        .27980E-05   -.26570E-03
   4  Prefactor     21.623        28.480        .39062E-06   -.90421E-04
   5  Prefactor     .10000E-03    47.870       -.13966E-04** at limit **
   6  Prefactor     .10000E-03    1.0331        .12704E-08** at limit **
   7  norm          .10000E-03    3.7781       -.91559E-07** at limit **
   8  Prefactor     .10125E-03    9.3814        .17338E-05** at limit **
   9  Prefactor     .10000E-03    12.369        .10609E-05** at limit **
  10  Prefactor     .10000E-03    4.6231        .40389E-07** at limit **
  11  Prefactor     7.1421        4.2861       -.16658E-05   -.75333E-04
  12  Prefactor     .10000E-03    83.697       -.12401E-05** at limit **
  13  norm          10.421        7.2664        .30645E-05    .56259E-04
  14  Prefactor     .10202        1.8311        .32185E-06   -.56122E-03
  15  Prefactor     .10000E-03    12.059       -.11221E-05** at limit **
  16  Prefactor     1.3646        4.3539       -.26643E-05   -.10868E-02
  17  Prefactor     18.026        26.600        .44685E-05    .19280E-03
  18  Prefactor     .10005E-03    7.6378       -.13021E-05** at limit **
  19  Prefactor     .10000E-03    43.514        .99700E-05** at limit **
  20  Prefactor     .10000E-03    3.6721        .26638E-07** at limit **
  21  Prefactor     .10000E-03    23.251       -.14771E-06** at limit **
  22  Prefactor     .10000E-03    4.3374       -.58765E-09** at limit **
  23  norm          .10000E-03    2.1181        .36863E-08** at limit **
  24  Normalizat    .98691        .18472       -.19461E-06    .39180E-04
  25  Prefactor     1.1187        .14372       -.23920E-06    .52972E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.124
  Prefactor  = 0.0001
  Prefactor  = 5.07136
  Prefactor  = 21.623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.14205
  Prefactor  = 0.0001
  norm       = 10.4212
  Prefactor  = 0.102017
  Prefactor  = 0.0001
  Prefactor  = 1.36465
  Prefactor  = 18.0259
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.986911
  Prefactor  = 1.11874
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.047     FROM HESSE     STATUS=OK           437 CALLS     3374 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.124        16.014        .10657E-03   -1.4956    
   2  Prefactor     .10000E-03    32.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0714        6.9336        .17853E-03   -1.5258    
   4  Prefactor     21.623        28.238        .86128E-04   -1.4778    
   5  Prefactor     .10000E-03    47.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0379        .81683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.8694        .31169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10125E-03    111.56        .48030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6727        .17275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1421        4.2910        .12549E-03   -1.5173    
  12  Prefactor     .10000E-03    83.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.421        7.2009        .12411E-03   -1.5062    
  14  Prefactor     .10202        29.682        .20981E-02   -1.5644    
  15  Prefactor     .10000E-03    12.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3646        4.5566        .30472E-03   -1.5474    
  17  Prefactor     18.026        27.233        .94303E-04   -1.4859    
  18  Prefactor     .10005E-03    13.659        .63076E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.6884        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.3405        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1181        .11698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98691        .21180        .27222E-03   -.93470    
  25  Prefactor     1.1187        .16408        .20994E-03   -.88870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54956e-08
Minuit parameter uncertainties:
  1  16.0192
  2  1.47388e-05
  3  6.93465
  4  28.255
  5  0.000289936
  6  1.11609e-07
  7  1.54104e-05
  8  0.0236194
  9  7.20874e-07
  10  1.14289e-05
  11  4.29118
  12  6.04149e-05
  13  7.20153
  14  3.48028
  15  3.57113e-07
  16  4.55776
  17  27.252
  18  0.00171085
  19  1.15199e-05
  20  8.47067e-07
  21  6.05436e-06
  22  9.96313e-08
  23  3.59809e-08
  24  0.211981
  25  0.164157
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.041e-05  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.119e+00  1.642e-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.869e-01  2.120e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550271/likelihoodResults_681782401_682041601_4FGL_J2209.8-5028_daily_bin1707.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) = 6774.04729936
delta logL = -5.67491752008e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6774.04724301
delta logL = -4.00304998038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2369       1.0000          .0000       10.000    
     3 'Normalizat'    .98691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1187       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=   6774.047     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      280 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2167.7        .18142E-01** at limit **
   2  Index         2.3707        8.3122        .86457E-01    .44708E-08
   3  Normalizat    .98691        .24507E-01    .27222E-03   -.20455E-03
   4  Prefactor     1.1187        .20085E-01    .20994E-03   -.27295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37074
  Normalizat = 0.98691
  Prefactor  = 1.11874
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.047     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.301        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3707        6.5203        .34583E-02   -.55372    
   3  Normalizat    .98691        .19693        .10889E-04   -.93470    
   4  Prefactor     1.1187        .16146        .41989E-04   -.88870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48666e-11
Minuit parameter uncertainties:
  1  5.55911e-05
  2  1173.05
  3  0.197078
  4  0.161528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550271': 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) = 6774.04724261
delta logL = -2.36468622461e-11

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.559e-05  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.371e+00  1.173e+03  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.119e+00  1.615e-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.869e-01  1.971e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/550271/cmap_HighResolution_681782401_682041601_4FGL_J2209.8-5028_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2022-08-13 00:44:46.837430', job_id='550271', GAL2='1.12', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1660376686.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-2.36e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1707' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:44:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 550271: <4FGL_J2209.8-5028_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:30:37 2022
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:30:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:30:39 2022
Terminated at Sat Aug 13 00:44:47 2022
Results reported at Sat Aug 13 00:44:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1707 332.474 -50.4702 681782401 682041601 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 :                                   775.59 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

