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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1399
RA = 331.892, Dec = -53.7719
tmin = 601948801, tmax = 602208001
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='195633', job_status='RUN', time_executed='2021-09-28 05:44:09.040991', time_epoch_executed='1632833049.04' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195633

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195633/ft1_4FGL_J2207.5-5346_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195633/ft1_4FGL_J2207.5-5346_daily_bin1399.fits outfile=/scratch/kocevski/195633/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1399.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=601948801.0 tmax=602208001.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.91
user 3.65
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.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/195633/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1399.fits evtable="EVENTS" outfile="/scratch/kocevski/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/195633/ltcube_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.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/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits
.....................!
real 11.87
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/195633/ltcube_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.fits outfile=/scratch/kocevski/195633/expmap_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.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/195633/ltcube_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.fits
.....................!
real 191.00
user 185.91
sys 4.70

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2207.5-5346 @ 331.892 -53.7719

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.fits scfile=/scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits outfile=/scratch/kocevski/195633/cmap_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.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=331.892 yref=-53.7719 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/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.fits scfile=/scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits outfile=/scratch/kocevski/195633/cmap_HighResolution_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.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=331.892 yref=-53.7719 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/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195633/Model_4FGL_J2207.5-5346_daily_bin1399.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/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.fits.....................!
real 49.83
user 48.46
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.fits', '/scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits', expMap='/scratch/kocevski/195633/expmap_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.fits', expCube='/scratch/kocevski/195633/ltcube_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/195633/Model_4FGL_J2207.5-5346_daily_bin1399.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.5-5346'

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.875e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/195633/ft1_filtered_4FGL_J2207.5-5346_daily_bin1399.fits
Spacecraft file(s): /scratch/kocevski/195633/ft2_4FGL_J2207.5-5346_daily_bin1399.fits
Exposure map: /scratch/kocevski/195633/expmap_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.fits
Exposure cube: /scratch/kocevski/195633/ltcube_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/195633/Model_4FGL_J2207.5-5346_daily_bin1399.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) = 6271.33074606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8564       1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0400       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8251       1.0000         .10000E-03   10000.    
     8 'norm      '    .36706       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.037       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.986       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0420       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1707       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4689       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.698       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0442       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80101       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6271.329     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2349 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.078        3.8263       -.18897E-07    .10313E-04
   2  Prefactor     3.8454        28.480        .58219E-06   -.69246E-05
   3  Prefactor     79.620        53.927       -.28493E-06   -.87721E-05
   4  Prefactor     8.9392        113.71       -.15381E-05   -.17818E-04
   5  Prefactor     .10000E-03    4.3876        .20006E-06** at limit **
   6  Prefactor     .10000E-03    27.417       -.98340E-07** at limit **
   7  Prefactor     2.8250        3.0487        .11535E-05   -.24875E-03
   8  norm          .36749        .70063       -.24746E-06   -.14255E-03
   9  Prefactor     26.037        29.553       -.17815E-06   -.16722E-04
  10  Prefactor     .10000E-03    4.6124        .12762E-06** at limit **
  11  Prefactor     9.8774        4.9564        .37464E-07   -.40520E-04
  12  Prefactor     57.984        71.089       -.10463E-06   -.75756E-05
  13  norm          .10000E-03    4.6278        .88669E-07** at limit **
  14  Prefactor     1.0414        2.3548        .10189E-05    .25000E-03
  15  Prefactor     4.1710        4.2252        .16011E-07   -.86649E-04
  16  Prefactor     .10000E-03    9.0318        .89833E-07** at limit **
  17  Prefactor     4.4683        9.2490        .45920E-06   -.19202E-04
  18  Prefactor     .10000E-03    41.391        .93273E-07** at limit **
  19  Prefactor     23.698        29.763        .16571E-07   -.51394E-05
  20  Prefactor     .10000E-03    5.5453        .11742E-06** at limit **
  21  Normalizat    1.0442        .18065       -.10195E-05   -.37038E-05
  22  Prefactor     .80105        .13641        .30866E-06   -.66114E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0776
  Prefactor  = 3.8454
  Prefactor  = 79.6196
  Prefactor  = 8.93922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.825
  norm       = 0.367493
  Prefactor  = 26.0374
  Prefactor  = 0.0001
  Prefactor  = 9.87742
  Prefactor  = 57.9839
  norm       = 0.0001
  Prefactor  = 1.04145
  Prefactor  = 4.17099
  Prefactor  = 0.0001
  Prefactor  = 4.4683
  Prefactor  = 0.0001
  Prefactor  = 23.6984
  Prefactor  = 0.0001
  Normalizat = 1.04419
  Prefactor  = 0.80105
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.329     FROM HESSE     STATUS=OK           350 CALLS     2699 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.078        3.8216        .90773E-04   -1.5073    
   2  Prefactor     3.8454        28.379        .20550E-03   -1.5316    
   3  Prefactor     79.620        53.875        .45006E-04   -1.3921    
   4  Prefactor     8.9392        114.98        .13330E-03   -1.5110    
   5  Prefactor     .10000E-03    4.4281        .16192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8250        2.9933        .68187E-03   -1.5372    
   8  norm          .36749        .63733        .87797E-03   -1.5587    
   9  Prefactor     26.037        29.571        .78508E-04   -1.4687    
  10  Prefactor     .10000E-03    4.6344        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8774        4.9624        .11712E-03   -1.5079    
  12  Prefactor     57.984        71.081        .52684E-04   -1.4184    
  13  norm          .10000E-03    4.7075        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0414        2.2460        .18294E-02   -1.5504    
  15  Prefactor     4.1710        4.2193        .15675E-03   -1.5299    
  16  Prefactor     .10000E-03    9.0400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4683        9.2409        .19047E-03   -1.5285    
  18  Prefactor     .10000E-03    41.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.698        29.764        .82284E-04   -1.4734    
  20  Prefactor     .10000E-03    5.5557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0442        .20599        .24760E-03   -.91564    
  22  Prefactor     .80105        .15647        .21848E-03   -.99690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6056e-09
Minuit parameter uncertainties:
  1  3.82167
  2  20.9065
  3  53.9084
  4  64.2731
  5  4.87824e-06
  6  8.51879e-07
  7  2.99349
  8  0.637337
  9  29.5877
  10  2.41012e-06
  11  4.9626
  12  71.1855
  13  1.38523e-06
  14  2.24616
  15  4.21964
  16  2.1172e-06
  17  9.24384
  18  1.1181e-05
  19  29.7827
  20  9.44535e-08
  21  0.20615
  22  0.156552
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  9.877e+00  4.963e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  8.011e-01  1.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.044e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 9.06e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.43e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6270.79310178
delta logL = 0.536280383679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6270.785792
delta logL = 0.543590167425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2752       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1117       1.0000          .0000       10.000    
     3 'Normalizat'    .98971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6270.786     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      237 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2752        34.153        .43750E-02   -.12207E-03
   2  Index         3.1117        2.9527        .11177        .13954E-03
   3  Normalizat    .98971        .78822E-01    .46038E-01   -.45962E-04
   4  Prefactor     .83124        .55122E-01    .44122E-01    .65695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.27519
  Index      = 3.11166
  Normalizat = 0.989707
  Prefactor  = 0.831237
 **********
 **   18 **HESSE 
 **********

 FCN=   6270.786     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2752        7.0983        .75026E-04   -1.5249    
   2  Index         3.1117        .95635        .44175E-02   -.38728    
   3  Normalizat    .98971        .20811        .25329E-03   -.93376    
   4  Prefactor     .83124        .15937        .21494E-03   -.98587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66705e-08
Minuit parameter uncertainties:
  1  7.0994
  2  0.963289
  3  0.20828
  4  0.159457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195633': 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) = 6270.785792
delta logL = 0.543590168528

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  5.275e+00  7.099e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  3.112e+00  9.633e-01  0.000e+00  1.000e+01 (-1.000e+00)
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  8.312e-01  1.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  9.897e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.64
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 3.11 +/- 0.96
Photon Flux (Free Index): 1.28e-07 +/- 6.21e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.18e-05

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/195633/cmap_HighResolution_601948801_602208001_4FGL_J2207.5-5346_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.06e-08', energy_flux2='2.42e-05', photon_flux_error='4.55e-08', dlogl='5.44e-01', energy_flux='2.84e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-28 05:54:33.750387', photon_index_error2='0.96', photon_index2='3.11', ts='7.40', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.04', time_epoch_completed='1632833673.75', return_code='0', job_id='195633', GAL2='0.83', EG2='0.99', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.21e-08', ts2='8.64', photon_index='2.44' WHERE bin_id='1399' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 195633: <4FGL_J2207.5-5346_daily_bin1399> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1399> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:40:57 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:40:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:40:59 2021
Terminated at Tue Sep 28 05:54:34 2021
Results reported at Tue Sep 28 05:54:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1399 331.892 -53.7719 601948801 602208001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2207.5-5346 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   579.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

