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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1235
RA = 332.474, Dec = -50.4702
tmin = 559440001, tmax = 559699201
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='210940', job_status='RUN', time_executed='2021-09-28 06:26:17.457934', time_epoch_executed='1632835577.46' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210940

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210940/ft1_4FGL_J2209.8-5028_daily_bin1235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210940/ft2_4FGL_J2209.8-5028_daily_bin1235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210940/ft1_4FGL_J2209.8-5028_daily_bin1235.fits outfile=/scratch/kocevski/210940/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1235.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=559440001.0 tmax=559699201.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.62
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210940/ft1_filtered_4FGL_J2209.8-5028_daily_bin1235.fits" evtable="EVENTS" scfile=/scratch/kocevski/210940/ft2_4FGL_J2209.8-5028_daily_bin1235.fits sctable="SC_DATA" outfile=/scratch/kocevski/210940/ltcube_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.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/210940/ft2_4FGL_J2209.8-5028_daily_bin1235.fits
.....................!
real 11.70
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210940/ft1_filtered_4FGL_J2209.8-5028_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/210940/ft2_4FGL_J2209.8-5028_daily_bin1235.fits sctable="SC_DATA" expcube=/scratch/kocevski/210940/ltcube_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.fits outfile=/scratch/kocevski/210940/expmap_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.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/210940/ltcube_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.fits
.....................!
real 189.36
user 184.61
sys 4.45

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/210940/ft1_filtered_4FGL_J2209.8-5028_daily_bin1235.fits scfile=/scratch/kocevski/210940/ft2_4FGL_J2209.8-5028_daily_bin1235.fits outfile=/scratch/kocevski/210940/cmap_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.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.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/210940/ft1_filtered_4FGL_J2209.8-5028_daily_bin1235.fits', '/scratch/kocevski/210940/ft2_4FGL_J2209.8-5028_daily_bin1235.fits', expMap='/scratch/kocevski/210940/expmap_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.fits', expCube='/scratch/kocevski/210940/ltcube_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/210940/Model_4FGL_J2209.8-5028_daily_bin1235.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/210940/ft1_filtered_4FGL_J2209.8-5028_daily_bin1235.fits
Spacecraft file(s): /scratch/kocevski/210940/ft2_4FGL_J2209.8-5028_daily_bin1235.fits
Exposure map: /scratch/kocevski/210940/expmap_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.fits
Exposure cube: /scratch/kocevski/210940/ltcube_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/210940/Model_4FGL_J2209.8-5028_daily_bin1235.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 263.858160391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 255.617324073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41594       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11622E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .25577E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.012       1.0000         .10000E-03   10000.    
     9 'Prefactor '    415.78       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41508E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72655E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9605       1.0000         .10000E-03   10000.    
    13 'norm      '    .91004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    546.42       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81679E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45618       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97149E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9452       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .47841       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38168E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .58843E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .36682       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   255.6093     FROM MIGRAD    STATUS=CONVERGED    229 CALLS      544 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12142E-03    1519.4        .10923E-01** at limit **
   2  Prefactor     .12733E-02    1941.1        .50622E-02** at limit **
   3  Prefactor     30.680        40.148        .18181E-02    .39001E-03
   4  Prefactor     48.119        85.559        .14708E-02   -.22215E-02
   5  Prefactor     6.3281        1.0032         .0000         .0000    
   6  Prefactor     .10000E-03    .20616        .95994E-06** at limit **
   7  norm          .10000E-03    .28772        .37529E-07** at limit **
   8  Prefactor     23.746        .99467        .26209E-05    .35321E-03
   9  Prefactor     414.22        .99820        .18285E-06    .28193E-01
  10  Prefactor     .10000E-03    .21291        .55748E-05** at limit **
  11  Prefactor     .10000E-03    .27453       -.43341E-05** at limit **
  12  Prefactor     .12379E-03    .50947E-01   -.20923E-04** at limit **
  13  norm          .10000E-03    .27100        .50193E-06** at limit **
  14  Prefactor     .10000E-03    .20571       -.25027E-07** at limit **
  15  Prefactor     546.35        .99994       -.78333E-08   -.80254E-04
  16  Prefactor     .10000E-03    .27274        .21158E-07** at limit **
  17  Prefactor     .10000E-03    .30750        .35389E-05** at limit **
  18  Prefactor     .10000E-03    .26991        .29063E-05** at limit **
  19  Prefactor     .16660E-03    .13840        .60280E-05** at limit **
  20  Prefactor     .10000E-03    .20571       -.20577E-05** at limit **
  21  Prefactor     .10000E-03    .31261        .36721E-05** at limit **
  22  Prefactor     .10000E-03    .23892        .29591E-05** at limit **
  23  norm          .10000E-03    .22489        .13238E-05** at limit **
  24  Normalizat    .10000E-01    .25711        .28086E-05** at limit **
  25  Prefactor     .36600        .69252        .77216E-05   -.74845E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000121418
  Prefactor  = 0.00127334
  Prefactor  = 30.6796
  Prefactor  = 48.1187
  Prefactor  = 6.32809
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.746
  Prefactor  = 414.219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000123794
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 546.349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000166601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.366001
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   255.6093     FROM HESSE     STATUS=FAILED        19 CALLS      563 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12142E-03    1519.4        .10923E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12733E-02    1941.1        .50622E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.680        40.148        .18181E-02   -1.4600    
   4  Prefactor     48.119        85.559        .14708E-02   -1.4319    
   5  Prefactor     519.04        512.67         .0000       -1.5205    
   6  Prefactor     .10000E-03    .20616        .95994E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .28772        .37529E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.746        .99467        .26209E-05   -1.4733    
   9  Prefactor     414.22        .99820        .18285E-06   -1.1609    
  10  Prefactor     .10000E-03    .21291        .55748E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .27453       -.43341E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12379E-03    .50947E-01   -.20923E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .27100        .50193E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571       -.25027E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     546.35        .99994       -.78333E-08   -1.0989    
  16  Prefactor     .10000E-03    .27274        .21158E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .30750        .35389E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .26991        .29063E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16660E-03    .13840        .60280E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20571       -.20577E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .31261        .36721E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .23892        .29591E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .22489        .13238E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .25711        .28086E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .36600        .69252        .77216E-05   -1.1858    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.65253e-10
Minuit parameter uncertainties:
  1  0.370614
  2  3.12563
  3  40.1838
  4  85.7787
  5  1.00315
  6  2.30137e-08
  7  1.35391e-09
  8  0.994667
  9  0.998204
  10  7.73341e-07
  11  1.11064e-05
  12  0.00220202
  13  6.8976e-06
  14  6.88021e-09
  15  0.999936
  16  9.56207e-09
  17  4.76849e-06
  18  1.44092e-06
  19  0.00607209
  20  1.11715e-08
  21  8.98524e-07
  22  6.07975e-06
  23  3.06605e-07
  24  2.4882e-08
  25  0.709265
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 255.609321963

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.238e-04  2.202e-03  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:  3.660e-01  7.093e-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.000e-02  2.488e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.34e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210940/likelihoodResults_559440001_559699201_4FGL_J2209.8-5028_daily_bin1235.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) = 255.609328325
delta logL = -6.36268774201e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 255.60932829
delta logL = -6.32741910067e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96230E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36602       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=   255.6093     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      245 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10490E-03    1436.9        .18145E-01** at limit **
   2  Index         2.2136        5.5256        .50000        .16779E-06
   3  Normalizat    .10000E-01    .11594E-02    .53704E-02** at limit **
   4  Prefactor     .36600        .13537E-01    .18760E-03    .70636E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104904
  Index      = 2.21362
  Normalizat = 0.01
  Prefactor  = 0.366001
 **********
 **   18 **HESSE 
 **********

 FCN=   255.6093     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10490E-03    7884.8        .36290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2136        6.1524        .50000       -.59110    
   3  Normalizat    .10000E-01    .57908E-02    .10741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36600        .30252E-01    .75041E-05   -1.1858    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29076e-10
Minuit parameter uncertainties:
  1  0.382097
  2  5345.47
  3  1.68913e-08
  4  0.0302531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210940': 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) = 255.609321943
delta logL = 1.9889455416e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.049e-04  3.821e-01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.214e+00  5.345e+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:  3.660e-01  3.025e-02  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.000e-02  1.689e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-01', job_status='DONE', photon_flux_upper_limit='1.34e-06', time_completed='2021-09-28 06:32:03.715209', job_id='210940', GAL2='0.37', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632835923.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.37', dlogl='1.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1235' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:32:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 210940: <4FGL_J2209.8-5028_daily_bin1235> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1235> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:56 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:58 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:25:58 2021
Terminated at Tue Sep 28 06:32:04 2021
Results reported at Tue Sep 28 06:32:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1235 332.474 -50.4702 559440001 559699201 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 :                                   321.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             567.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   365 sec.
    Turnaround time :                            368 sec.

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

