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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin471
RA = 331.914, Dec = 0.8907
tmin = 361411201, tmax = 361670401
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='198788', job_status='RUN', time_executed='2021-09-28 05:53:55.223530', time_epoch_executed='1632833635.22' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198788/ft1_4FGL_J2207.6+0053_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198788/ft1_4FGL_J2207.6+0053_daily_bin471.fits outfile=/scratch/kocevski/198788/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin471.fits ra=331.914 dec=0.8907 rad=12.0 tmin=361411201.0 tmax=361670401.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.53
user 3.32
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.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/198788/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin471.fits evtable="EVENTS" outfile="/scratch/kocevski/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/198788/ltcube_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.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/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits
.....................!
real 12.08
user 11.76
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/198788/ltcube_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.fits outfile=/scratch/kocevski/198788/expmap_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.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/198788/ltcube_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.fits
.....................!
real 192.74
user 187.03
sys 5.39

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

Setting source of interest to:
4FGL J2207.6+0053 @ 331.914 0.8907

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.fits scfile=/scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits outfile=/scratch/kocevski/198788/cmap_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.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.914 yref=0.8907 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.fits scfile=/scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits outfile=/scratch/kocevski/198788/cmap_HighResolution_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.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.914 yref=0.8907 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198788/Model_4FGL_J2207.6+0053_daily_bin471.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/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.fits.....................!
real 71.08
user 69.77
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.fits', '/scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits', expMap='/scratch/kocevski/198788/expmap_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.fits', expCube='/scratch/kocevski/198788/ltcube_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/198788/Model_4FGL_J2207.6+0053_daily_bin471.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.6+0053'

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.216e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/198788/ft1_filtered_4FGL_J2207.6+0053_daily_bin471.fits
Spacecraft file(s): /scratch/kocevski/198788/ft2_4FGL_J2207.6+0053_daily_bin471.fits
Exposure map: /scratch/kocevski/198788/expmap_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.fits
Exposure cube: /scratch/kocevski/198788/ltcube_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/198788/Model_4FGL_J2207.6+0053_daily_bin471.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) = 7546.12812054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.604       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44068       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.734       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11413E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7147       1.0000         .10000E-03   10000.    
     9 'norm      '    12.989       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.323       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.298       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.489       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.351       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.073       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3102       1.0000         .10000E-03   10000.    
    19 'norm      '    7.0479       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1642       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.821       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67674       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7546.098     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2570 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.607        39.138        .17831E-06    .17942E-04
   2  Prefactor     .44727        36.222       -.55987E-05    .17539E-03
   3  Prefactor     .45020        2.0492        .24100E-05    .40662E-03
   4  Prefactor     41.680        35.567       -.10124E-06    .94696E-04
   5  Prefactor     .10000E-03    15.443        .11290E-06** at limit **
   6  Prefactor     .10000E-03    17.261       -.51595E-06** at limit **
   7  Prefactor     .10000E-03    37.664        .16470E-07** at limit **
   8  norm          1.7148        1.3503        .35136E-08    .38914E-04
   9  norm          12.994        14.900       -.11445E-06   -.14388E-04
  10  Prefactor     17.322        9.0464        .68442E-07   -.37641E-04
  11  Prefactor     1.4607        29.700        .18346E-05   -.12029E-04
  12  Prefactor     11.296        19.249        .54712E-07   -.26666E-04
  13  Prefactor     15.497        19.578       -.50777E-06   -.16563E-03
  14  Prefactor     .10000E-03    20.554        .13232E-06** at limit **
  15  Prefactor     14.353        14.735       -.75899E-09   -.30614E-05
  16  Prefactor     10.072        12.022        .93812E-07   -.29453E-04
  17  Prefactor     .10000E-03    22.473       -.13550E-05** at limit **
  18  Prefactor     3.3103        4.8294        .32556E-06   -.14032E-03
  19  norm          7.0475        4.3663        .46383E-08   -.57670E-04
  20  Prefactor     4.1645        4.9947        .51958E-07   -.12070E-04
  21  Prefactor     27.903        44.243        .21570E-05    .21197E-04
  22  Normalizat    .67680        .21561       -.51220E-06    .75142E-04
  23  Prefactor     .93172        .11111       -.12516E-06    .15953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.6066
  Prefactor  = 0.447271
  Prefactor  = 0.450203
  Prefactor  = 41.6801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71482
  norm       = 12.994
  Prefactor  = 17.3215
  Prefactor  = 1.46068
  Prefactor  = 11.2961
  Prefactor  = 15.4969
  Prefactor  = 0.0001
  Prefactor  = 14.3529
  Prefactor  = 10.0718
  Prefactor  = 0.0001
  Prefactor  = 3.31029
  norm       = 7.04747
  Prefactor  = 4.16453
  Prefactor  = 27.9027
  Normalizat = 0.676798
  Prefactor  = 0.93172
 **********
 **   18 **HESSE 
 **********

 FCN=   7546.098     FROM HESSE     STATUS=OK           382 CALLS     2952 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.607        39.126        .45879E-04   -1.3955    
   2  Prefactor     .44727        38.378        .12319       -1.5574    
   3  Prefactor     .45020        2.2534        .21804E-03   -1.5574    
   4  Prefactor     41.680        35.469        .62052E-04   -1.4416    
   5  Prefactor     .10000E-03    15.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7148        1.3489        .86626E-04   -1.5446    
   9  norm          12.994        14.884        .11114E-03   -1.4987    
  10  Prefactor     17.322        9.0340        .96230E-04   -1.4875    
  11  Prefactor     1.4607        28.185        .35511E-03   -1.5466    
  12  Prefactor     11.296        19.244        .11919E-03   -1.5036    
  13  Prefactor     15.497        19.506        .10177E-03   -1.4920    
  14  Prefactor     .10000E-03    20.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.353        14.730        .10573E-03   -1.4950    
  16  Prefactor     10.072        11.948        .12625E-03   -1.5073    
  17  Prefactor     .10000E-03    22.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3103        4.7675        .19721E-03   -1.5344    
  19  norm          7.0475        4.3597        .13392E-03   -1.5177    
  20  Prefactor     4.1645        4.9909        .19751E-03   -1.5300    
  21  Prefactor     27.903        44.340        .75953E-04   -1.4651    
  22  Normalizat    .67680        .24835        .36819E-03   -1.0482    
  23  Prefactor     .93172        .13001        .17875E-03   -.95041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4564e-09
Minuit parameter uncertainties:
  1  39.1388
  2  8.29075
  3  2.01432
  4  35.4865
  5  4.55232e-06
  6  1.34079e-05
  7  5.61129e-06
  8  1.3489
  9  14.8887
  10  9.03467
  11  12.8393
  12  19.2542
  13  19.5144
  14  0.000181966
  15  14.7342
  16  11.9505
  17  1.08649e-05
  18  4.76805
  19  4.3599
  20  4.99136
  21  44.3921
  22  0.248767
  23  0.130057
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.820e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.317e-01  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  6.768e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198788/likelihoodResults_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.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) = 7546.09829328
delta logL = -0.000227740136324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7546.09806539
delta logL = 1.52593202074e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7544.793     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      285 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26102E-01    .65171        .21468E-02   -.52941E-02
   2  Index         6.0853        3.3236        .12156        .14905E-03
   3  Normalizat    .55826        .18525        .90844E-01   -.37769E-03
   4  Prefactor     .97432        .77414E-01    .45407E-01   -.56104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0261024
  Index      = 6.08528
  Normalizat = 0.558262
  Prefactor  = 0.974323
 **********
 **   18 **HESSE 
 **********

 FCN=   7544.793     FROM HESSE     STATUS=OK            33 CALLS      318 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26102E-01    .25475        .97725E-04   -1.5740    
   2  Index         6.0853        2.6728        .44627E-02    .21880    
   3  Normalizat    .55826        .23731        .40246E-03   -1.0979    
   4  Prefactor     .97432        .13173        .17506E-03   -.93590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63518e-08
Minuit parameter uncertainties:
  1  0.162779
  2  2.82843
  3  0.237739
  4  0.131776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198788': 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) = 7544.79340915
delta logL = 1.30465639682

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.610e-02  1.628e-01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  6.085e+00  2.828e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.743e-01  1.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  5.583e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 331.914 0.891
Photon Index (Free Index): 6.09 +/- 2.83
Photon Flux (Free Index): 9.52e-08 +/- 1.16e-06
Energy Flux (Free Index): 1.18e-05 +/- 1.43e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/198788/cmap_HighResolution_361411201_361670401_4FGL_J2207.6+0053_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='1.30e+00', photon_flux2='9.52e-08', job_status='DONE', time_completed='2021-09-28 06:06:07.419717', photon_index_error2='2.83', photon_index2='6.09', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.89e-08', energy_flux_error2='1.43e-04', EG='0.68', time_epoch_completed='1632834367.42', return_code='0', job_id='198788', GAL2='0.97', EG2='0.56', return_code2='0', photon_flux_error2='1.16e-06', ts2='2.85', photon_index='2.48' WHERE bin_id='471' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:06:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 198788: <4FGL_J2207.6+0053_daily_bin471> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin471> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:51:02 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:51: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 05:51:03 2021
Terminated at Tue Sep 28 06:06:07 2021
Results reported at Tue Sep 28 06:06:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin471 331.914 0.8907 361411201 361670401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2207.6+0053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

