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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1281
RA = 332.474, Dec = -50.4702
tmin = 571363201, tmax = 571622401
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='211003', job_status='RUN', time_executed='2021-09-28 06:28:08.443239', time_epoch_executed='1632835688.44' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211003/ft1_4FGL_J2209.8-5028_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211003/ft2_4FGL_J2209.8-5028_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211003/ft1_4FGL_J2209.8-5028_daily_bin1281.fits outfile=/scratch/kocevski/211003/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1281.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=571363201.0 tmax=571622401.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.86
user 2.66
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211003/ft2_4FGL_J2209.8-5028_daily_bin1281.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/211003/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1281.fits evtable="EVENTS" outfile="/scratch/kocevski/211003/ft1_filtered_4FGL_J2209.8-5028_daily_bin1281.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.56
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211003/ft1_filtered_4FGL_J2209.8-5028_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/211003/ft2_4FGL_J2209.8-5028_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/211003/ltcube_571363201_571622401_4FGL_J2209.8-5028_daily_bin1281.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/211003/ft2_4FGL_J2209.8-5028_daily_bin1281.fits
.....................!
real 12.40
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211003/ft1_filtered_4FGL_J2209.8-5028_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/211003/ft2_4FGL_J2209.8-5028_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/211003/ltcube_571363201_571622401_4FGL_J2209.8-5028_daily_bin1281.fits outfile=/scratch/kocevski/211003/expmap_571363201_571622401_4FGL_J2209.8-5028_daily_bin1281.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/211003/ltcube_571363201_571622401_4FGL_J2209.8-5028_daily_bin1281.fits
.....................!
real 192.13
user 186.63
sys 5.19

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/211003/ft1_filtered_4FGL_J2209.8-5028_daily_bin1281.fits scfile=/scratch/kocevski/211003/ft2_4FGL_J2209.8-5028_daily_bin1281.fits outfile=/scratch/kocevski/211003/cmap_571363201_571622401_4FGL_J2209.8-5028_daily_bin1281.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.51
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211003/ft1_filtered_4FGL_J2209.8-5028_daily_bin1281.fits scfile=/scratch/kocevski/211003/ft2_4FGL_J2209.8-5028_daily_bin1281.fits outfile=/scratch/kocevski/211003/cmap_HighResolution_571363201_571622401_4FGL_J2209.8-5028_daily_bin1281.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211003/ft1_filtered_4FGL_J2209.8-5028_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/211003/ft2_4FGL_J2209.8-5028_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211003/Model_4FGL_J2209.8-5028_daily_bin1281.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/211003/ft1_filtered_4FGL_J2209.8-5028_daily_bin1281.fits......................!
real 24.87
user 23.60
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12266E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .71128E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12691E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4835       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9837       1.0000         .10000E-03   10000.    
    15 'Prefactor '    149.29       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.495       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.721       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59578       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2502       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=   2099.430     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2893 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        755.34       -.26242E-04** at limit **
   2  Prefactor     .10000E-03    101.54        .61509E-06** at limit **
   3  Prefactor     .10000E-03    53.993       -.11498E-05** at limit **
   4  Prefactor     .10000E-03    212.86       -.25435E-05** at limit **
   5  Prefactor     .10000E-03    26.165       -.10171E-06** at limit **
   6  Prefactor     .10000E-03    7.3861       -.56414E-07** at limit **
   7  norm          .10000E-03    9.1994        .60723E-08** at limit **
   8  Prefactor     .10000E-03    36.633       -.33685E-07** at limit **
   9  Prefactor     .10000E-03    22.259        .24336E-08** at limit **
  10  Prefactor     .10000E-03    7.2327       -.16214E-07** at limit **
  11  Prefactor     5.5024        5.9898        .25084E-07   -.15089E-03
  12  Prefactor     .10000E-03    60.903        .71559E-05** at limit **
  13  norm          .10000E-03    3.9970       -.97991E-08** at limit **
  14  Prefactor     1.8559        3.1809        .75728E-06   -.12050E-02
  15  Prefactor     163.40        130.52       -.11261E-07   -.13868E-05
  16  Prefactor     5.1070        10.639       -.68968E-06   -.36456E-04
  17  Prefactor     .10000E-03    13.376       -.87667E-07** at limit **
  18  Prefactor     21.577        17.831        .44277E-05    .95630E-04
  19  Prefactor     47.304        108.55        .19274E-04    .24619E-04
  20  Prefactor     .10000E-03    6.2697        .22663E-06** at limit **
  21  Prefactor     57.134        58.013        .25859E-06    .18855E-05
  22  Prefactor     .10000E-03    8.1062        .69379E-09** at limit **
  23  norm          .10000E-03    4.0225       -.91147E-09** at limit **
  24  Normalizat    .59209        .33615       -.25274E-05   -.53454E-05
  25  Prefactor     1.2496        .29682       -.83230E-07   -.20584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50238
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.85586
  Prefactor  = 163.398
  Prefactor  = 5.10698
  Prefactor  = 0.0001
  Prefactor  = 21.5772
  Prefactor  = 47.3038
  Prefactor  = 0.0001
  Prefactor  = 57.1337
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.592093
  Prefactor  = 1.24959
 **********
 **   18 **HESSE 
 **********

 FCN=   2099.430     FROM HESSE     STATUS=OK           411 CALLS     3304 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        755.50        .19474E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    101.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    54.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    212.87        .20971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3964        .12163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.1998        .13575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2480        .12036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5024        5.9999        .56518E-03   -1.5239    
  12  Prefactor     .10000E-03    60.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9973        .89474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8559        9.6068        .13199E-02   -1.5436    
  15  Prefactor     163.40        131.81        .32985E-04   -1.3144    
  16  Prefactor     5.1070        10.660        .17792E-03   -1.5256    
  17  Prefactor     .10000E-03    13.385        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.577        17.833        .86393E-04   -1.4779    
  19  Prefactor     47.304        108.56        .58513E-04   -1.4331    
  20  Prefactor     .10000E-03    6.2747        .11206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.134        58.000        .54224E-04   -1.4195    
  22  Prefactor     .10000E-03    8.1157        .12742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.0231        .89759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .59209        .38849        .33829E-03   -1.0832    
  25  Prefactor     1.2496        .34550        .21858E-03   -.84819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46693e-09
Minuit parameter uncertainties:
  1  0.00198945
  2  1.88045e-05
  3  1.74547e-05
  4  8.95097e-05
  5  2.31589e-06
  6  1.35833e-06
  7  6.47074e-07
  8  1.77652e-06
  9  1.39796e-06
  10  7.02923e-07
  11  6.00055
  12  0.000148863
  13  1.70521e-06
  14  8.44676
  15  132.053
  16  10.6644
  17  3.39545e-05
  18  17.837
  19  109.016
  20  4.78687e-06
  21  58.057
  22  1.87066e-06
  23  1.80481e-07
  24  0.390295
  25  0.346129
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.489e-04  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.250e+00  3.461e-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:  5.921e-01  3.903e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211003/likelihoodResults_571363201_571622401_4FGL_J2209.8-5028_daily_bin1281.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) = 2099.42972707
delta logL = -7.6917667684e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2099.42965065
delta logL = -4.97142082168e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7212       1.0000          .0000       10.000    
     3 'Normalizat'    .59207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2496       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=   2099.430     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      283 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10471E-03    28.323        .18142E-01** at limit **
   2  Index         2.6200        7.9554        .50000        .74108E-05
   3  Normalizat    .59209        .63252E-02    .33829E-03    .10619E-04
   4  Prefactor     1.2496        .57871E-02    .21858E-03    .80358E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104712
  Index      = 2.62002
  Normalizat = 0.592092
  Prefactor  = 1.24959
 **********
 **   18 **HESSE 
 **********

 FCN=   2099.430     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10471E-03    201.66        .29722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6200        7.4940        .50000       -.49610    
   3  Normalizat    .59209        .16991E-01    .13532E-04   -1.0832    
   4  Prefactor     1.2496        .15546E-01    .43716E-04   -.84819    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4713e-09
Minuit parameter uncertainties:
  1  0.0618594
  2  428.476
  3  0.0169916
  4  0.0155461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211003': 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) = 2099.42965052
delta logL = -3.67263055523e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.047e-04  6.186e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.620e+00  4.285e+02  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.250e+00  1.555e-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:  5.921e-01  1.699e-02  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/211003/cmap_HighResolution_571363201_571622401_4FGL_J2209.8-5028_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-28 06:35:45.478819', job_id='211003', GAL2='1.25', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632836145.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='-3.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1281' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 211003: <4FGL_J2209.8-5028_daily_bin1281> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1281> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:26:02 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:03 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:26:03 2021
Terminated at Tue Sep 28 06:35:46 2021
Results reported at Tue Sep 28 06:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1281 332.474 -50.4702 571363201 571622401 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 :                                   454.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            584 sec.

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

