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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin750
RA = 332.474, Dec = -50.4702
tmin = 433728001, tmax = 433987201
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='209001', job_status='RUN', time_executed='2021-09-28 06:23:39.105800', time_epoch_executed='1632835419.11' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209001/ft1_4FGL_J2209.8-5028_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209001/ft2_4FGL_J2209.8-5028_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209001/ft1_4FGL_J2209.8-5028_daily_bin750.fits outfile=/scratch/kocevski/209001/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin750.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.13
user 5.80
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209001/ft1_filtered_4FGL_J2209.8-5028_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/209001/ft2_4FGL_J2209.8-5028_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/209001/ltcube_433728001_433987201_4FGL_J2209.8-5028_daily_bin750.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/209001/ft2_4FGL_J2209.8-5028_daily_bin750.fits
.....................!
real 12.13
user 11.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209001/ft1_filtered_4FGL_J2209.8-5028_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/209001/ft2_4FGL_J2209.8-5028_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/209001/ltcube_433728001_433987201_4FGL_J2209.8-5028_daily_bin750.fits outfile=/scratch/kocevski/209001/expmap_433728001_433987201_4FGL_J2209.8-5028_daily_bin750.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/209001/ltcube_433728001_433987201_4FGL_J2209.8-5028_daily_bin750.fits
.....................!
real 191.06
user 186.89
sys 3.85

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/209001/ft1_filtered_4FGL_J2209.8-5028_daily_bin750.fits scfile=/scratch/kocevski/209001/ft2_4FGL_J2209.8-5028_daily_bin750.fits outfile=/scratch/kocevski/209001/cmap_433728001_433987201_4FGL_J2209.8-5028_daily_bin750.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.565       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.809       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32063E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.253       1.0000         .10000E-03   10000.    
     7 'norm      '    .29072E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10725E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9849       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.7298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20590E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47087E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.666       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73019       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1182       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=   3488.280     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2955 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.567        46.490        .67529E-06   -.23456E-06
   2  Prefactor     .10000E-03    43.252        .44862E-06** at limit **
   3  Prefactor     21.803        16.038       -.78503E-06   -.34406E-04
   4  Prefactor     .10000E-03    317.96       -.72377E-05** at limit **
   5  Prefactor     .10000E-03    164.69       -.59021E-06** at limit **
   6  Prefactor     17.252        9.3543        .19986E-06   -.98476E-05
   7  norm          .10000E-03    116.39        .42325E-05** at limit **
   8  Prefactor     .10000E-03    11.537       -.17773E-06** at limit **
   9  Prefactor     .10000E-03    63.243       -.12344E-06** at limit **
  10  Prefactor     .10000E-03    4.3070       -.40378E-07** at limit **
  11  Prefactor     3.9860        6.1484       -.31778E-06   -.43330E-04
  12  Prefactor     .10000E-03    38.915       -.14497E-06** at limit **
  13  norm          6.7299        11.273       -.16888E-06   -.42088E-05
  14  Prefactor     7.1522        4.9441        .11768E-06   -.28728E-04
  15  Prefactor     .10000E-03    18.614       -.59557E-07** at limit **
  16  Prefactor     .10000E-03    4.6196        .71877E-06** at limit **
  17  Prefactor     .10000E-03    60.068        .19873E-05** at limit **
  18  Prefactor     .10003E-03    12.297       -.43875E-06** at limit **
  19  Prefactor     .10000E-03    36.703       -.33744E-06** at limit **
  20  Prefactor     .10000E-03    2.6162       -.19509E-07** at limit **
  21  Prefactor     25.723        43.067       -.10550E-05    .10682E-04
  22  Prefactor     .10000E-03    24.943        .39789E-06** at limit **
  23  norm          .10000E-03    9.7501       -.23573E-07** at limit **
  24  Normalizat    .73016        .23404       -.11689E-05   -.50523E-04
  25  Prefactor     1.1181        .20276       -.66446E-06   -.77106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5669
  Prefactor  = 0.0001
  Prefactor  = 21.8029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2521
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98599
  Prefactor  = 0.0001
  norm       = 6.72989
  Prefactor  = 7.15219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7234
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.73016
  Prefactor  = 1.11814
 **********
 **   18 **HESSE 
 **********

 FCN=   3488.280     FROM HESSE     STATUS=OK           423 CALLS     3378 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.567        46.521        .80821E-04   -1.4716    
   2  Prefactor     .10000E-03    43.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.803        15.948        .85769E-04   -1.4774    
   4  Prefactor     .10000E-03    314.07        .39510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    166.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.252        9.3550        .96425E-04   -1.4877    
   7  norm          .10000E-03    112.41        .24785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    63.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3140        .11968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9860        6.1530        .85968E-03   -1.5309    
  12  Prefactor     .10000E-03    38.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.7299        11.254        .77337E-03   -1.5189    
  14  Prefactor     7.1522        4.9510        .10361E-03   -1.5173    
  15  Prefactor     .10000E-03    18.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7355        .12443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    35.520        .37894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6193        .93289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.723        42.976        .79071E-04   -1.4693    
  22  Prefactor     .10000E-03    25.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.8487        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73016        .26592        .29028E-03   -1.0271    
  25  Prefactor     1.1181        .23146        .20876E-03   -.88889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63486e-10
Minuit parameter uncertainties:
  1  46.5899
  2  2.8666e-05
  3  15.951
  4  0.000589171
  5  0.000554249
  6  9.35583
  7  0.000824923
  8  1.06146e-05
  9  8.46594e-05
  10  5.52433e-06
  11  6.154
  12  2.08892e-05
  13  11.2576
  14  4.95127
  15  6.83906e-06
  16  1.85729e-05
  17  0.000248554
  18  0.00192214
  19  5.0191e-05
  20  2.00301e-06
  21  43.0279
  22  5.51852e-05
  23  9.06216e-06
  24  0.266395
  25  0.231665
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.089e-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.118e+00  2.317e-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:  7.302e-01  2.664e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209001/likelihoodResults_433728001_433987201_4FGL_J2209.8-5028_daily_bin750.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) = 3488.27994334
delta logL = -0.000121724606288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3488.27982236
delta logL = -7.44473254599e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6739       1.0000          .0000       10.000    
     3 'Normalizat'    .73015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1181       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=   3488.280     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      273 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10449E-03    18.075        .18142E-01** at limit **
   2  Index         2.5789        6.2373        .50000        .12462E-04
   3  Normalizat    .73016        .46040E-02    .29028E-03   -.26044E-03
   4  Prefactor     1.1181        .40450E-02    .20876E-03   -.17542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104488
  Index      = 2.57888
  Normalizat = 0.730156
  Prefactor  = 1.11814
 **********
 **   18 **HESSE 
 **********

 FCN=   3488.280     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10449E-03    113.80        .30919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5789        5.8321        .50000       -.50548    
   3  Normalizat    .73016        .11608E-01    .58056E-04   -1.0271    
   4  Prefactor     1.1181        .10198E-01    .41752E-04   -.88889    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97873e-09
Minuit parameter uncertainties:
  1  0.0452845
  2  285.739
  3  0.011608
  4  0.0101985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209001': 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) = 3488.27982215
delta logL = -5.34480932401e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.045e-04  4.528e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.579e+00  2.857e+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.118e+00  1.020e-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:  7.302e-01  1.161e-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/209001/cmap_HighResolution_433728001_433987201_4FGL_J2209.8-5028_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-28 06:32:55.156782', job_id='209001', GAL2='1.12', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632835975.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-5.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='750' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:32:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 209001: <4FGL_J2209.8-5028_daily_bin750> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:22 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20: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:20:24 2021
Terminated at Tue Sep 28 06:32:55 2021
Results reported at Tue Sep 28 06:32:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin750 332.474 -50.4702 433728001 433987201 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 :                                   555.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

