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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin612
RA = 331.914, Dec = 0.8907
tmin = 397958401, tmax = 398217601
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='200054', job_status='RUN', time_executed='2021-09-28 05:59:11.532965', time_epoch_executed='1632833951.53' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200054

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200054/ft1_4FGL_J2207.6+0053_daily_bin612.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200054/ft2_4FGL_J2207.6+0053_daily_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200054/ft1_4FGL_J2207.6+0053_daily_bin612.fits outfile=/scratch/kocevski/200054/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin612.fits ra=331.914 dec=0.8907 rad=12.0 tmin=397958401.0 tmax=398217601.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.56
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200054/ft1_filtered_4FGL_J2207.6+0053_daily_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/200054/ft2_4FGL_J2207.6+0053_daily_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/200054/ltcube_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.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/200054/ft2_4FGL_J2207.6+0053_daily_bin612.fits
.....................!
real 12.41
user 12.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200054/ft1_filtered_4FGL_J2207.6+0053_daily_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/200054/ft2_4FGL_J2207.6+0053_daily_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/200054/ltcube_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.fits outfile=/scratch/kocevski/200054/expmap_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.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/200054/ltcube_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.fits
.....................!
real 190.75
user 184.82
sys 5.36

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/200054/ft1_filtered_4FGL_J2207.6+0053_daily_bin612.fits scfile=/scratch/kocevski/200054/ft2_4FGL_J2207.6+0053_daily_bin612.fits outfile=/scratch/kocevski/200054/cmap_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200054/ft1_filtered_4FGL_J2207.6+0053_daily_bin612.fits scfile=/scratch/kocevski/200054/ft2_4FGL_J2207.6+0053_daily_bin612.fits outfile=/scratch/kocevski/200054/cmap_HighResolution_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/200054/ft1_filtered_4FGL_J2207.6+0053_daily_bin612.fits', '/scratch/kocevski/200054/ft2_4FGL_J2207.6+0053_daily_bin612.fits', expMap='/scratch/kocevski/200054/expmap_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.fits', expCube='/scratch/kocevski/200054/ltcube_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/200054/Model_4FGL_J2207.6+0053_daily_bin612.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/200054/ft1_filtered_4FGL_J2207.6+0053_daily_bin612.fits
Spacecraft file(s): /scratch/kocevski/200054/ft2_4FGL_J2207.6+0053_daily_bin612.fits
Exposure map: /scratch/kocevski/200054/expmap_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.fits
Exposure cube: /scratch/kocevski/200054/ltcube_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/200054/Model_4FGL_J2207.6+0053_daily_bin612.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) = 6808.85093149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2980       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7961       1.0000         .10000E-03   10000.    
     9 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25117E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.333       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1451       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56670E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11147E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99227       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78724       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=   6808.848     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2563 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.147       -.11502E-06** at limit **
   2  Prefactor     .10000E-03    21.682        .19694E-06** at limit **
   3  Prefactor     3.2982        2.1747        .32542E-06   -.58581E-03
   4  Prefactor     8.6927        24.299       -.27695E-08   -.23574E-04
   5  Prefactor     .10000E-03    12.178       -.25435E-07** at limit **
   6  Prefactor     .10000E-03    28.321       -.31785E-06** at limit **
   7  Prefactor     .10000E-03    27.015       -.25785E-06** at limit **
   8  norm          2.7968        2.2378        .70776E-07   -.51918E-04
   9  norm          .10000E-03    15.575       -.16193E-06** at limit **
  10  Prefactor     .10000E-03    7.5842       -.20096E-06** at limit **
  11  Prefactor     19.102        11.390        .17165E-06   -.15038E-03
  12  Prefactor     .10000E-03    79.977        .68514E-05** at limit **
  13  Prefactor     .10000E-03    16.732       -.89674E-07** at limit **
  14  Prefactor     .10017E-03    11.715        .72707E-06** at limit **
  15  Prefactor     36.391        38.204        .19458E-05    .36574E-03
  16  Prefactor     8.1235        11.192        .52533E-05   -.87063E-05
  17  Prefactor     .10050E-03    9.5697       -.12215E-05** at limit **
  18  Prefactor     .10000E-03    2.2241       -.16468E-05** at limit **
  19  norm          .10000E-03    1.6551       -.16660E-06** at limit **
  20  Prefactor     .10000E-03    1.6464        .59645E-08** at limit **
  21  Prefactor     .10000E-03    34.274        .97631E-07** at limit **
  22  Normalizat    .99211        .20489       -.13674E-05    .22934E-03
  23  Prefactor     .78729        .10696        .16498E-06    .20067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29824
  Prefactor  = 8.69266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.79676
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.102
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.00010017
  Prefactor  = 36.3907
  Prefactor  = 8.12349
  Prefactor  = 0.000100499
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.992114
  Prefactor  = 0.787289
 **********
 **   18 **HESSE 
 **********

 FCN=   6808.848     FROM HESSE     STATUS=OK           366 CALLS     2929 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2982        2.1595        .46573E-03   -1.5345    
   4  Prefactor     8.6927        24.271        .13591E-03   -1.5118    
   5  Prefactor     .10000E-03    12.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7968        2.2312        .10577E-03   -1.5373    
   9  norm          .10000E-03    15.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.102        11.331        .45815E-03   -1.4834    
  12  Prefactor     .10000E-03    79.924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10017E-03    69.532        .53361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.391        38.433        .66488E-04   -1.4501    
  16  Prefactor     8.1235        11.432        .70240E-03   -1.5138    
  17  Prefactor     .10050E-03    96.916        .48970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9221        .22598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.3657        .20533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6468        .10340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99211        .24031        .29875E-03   -.93295    
  23  Prefactor     .78729        .12825        .18260E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59098e-09
Minuit parameter uncertainties:
  1  3.4503e-05
  2  0.000167377
  3  2.15957
  4  24.2989
  5  1.77152e-05
  6  0.000157315
  7  0.000131625
  8  2.23124
  9  0.00010167
  10  1.14817e-05
  11  11.3319
  12  0.000848059
  13  2.03818e-05
  14  0.00688056
  15  38.4596
  16  11.4353
  17  0.0139317
  18  0.000372348
  19  5.02271e-05
  20  2.70272e-07
  21  9.98377e-05
  22  0.240569
  23  0.1283
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.002e-04  6.881e-03  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:  7.873e-01  1.283e-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:  9.921e-01  2.406e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200054/likelihoodResults_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.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) = 6808.84795534
delta logL = -6.74120419717e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6808.84795533
delta logL = -6.74021403029e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96354E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4841       1.0000          .0000       10.000    
     3 'Normalizat'    .99210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78729       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6808.792     FROM MIGRAD    STATUS=CONVERGED    176 CALLS      337 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1615        46.374        .25507E-03    .16237E-03
   2  Index         3.4849        6.7310        .10501E-01    .49065E-04
   3  Normalizat    .97269        .23812        .30140E-03   -.37101E-03
   4  Prefactor     .79243        .12915        .18205E-03   -.56797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16151
  Index      = 3.4849
  Normalizat = 0.972688
  Prefactor  = 0.792425
 **********
 **   18 **HESSE 
 **********

 FCN=   6808.792     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1615        7.9365        .10203E-04   -1.5492    
   2  Index         3.4849        2.2098        .42004E-03   -.30786    
   3  Normalizat    .97269        .23838        .60280E-04   -.93951    
   4  Prefactor     .79243        .12922        .36411E-04   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23865e-10
Minuit parameter uncertainties:
  1  6.07321
  2  2.29787
  3  0.23864
  4  0.129269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200054': 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) = 6808.79152078
delta logL = 0.0563671424397

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.162e+00  6.073e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.485e+00  2.298e+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:  7.924e-01  1.293e-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:  9.727e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.914 0.891

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/200054/cmap_HighResolution_397958401_398217601_4FGL_J2207.6+0053_daily_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.68e-08', time_completed='2021-09-28 06:10:44.053602', job_id='200054', GAL2='0.79', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1632834644.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='5.64e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='612' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 200054: <4FGL_J2207.6+0053_daily_bin612> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin612> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:55:18 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:55:19 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:55:19 2021
Terminated at Tue Sep 28 06:10:49 2021
Results reported at Tue Sep 28 06:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin612 331.914 0.8907 397958401 398217601 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 :                                   690.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

