/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 171 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin217
RA = 331.914, Dec = 0.8907
tmin = 295574401, tmax = 295833601
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='198391', job_status='RUN', time_executed='2021-09-28 05:53:25.583886', time_epoch_executed='1632833605.58' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198391

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198391/ft1_4FGL_J2207.6+0053_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198391/ft2_4FGL_J2207.6+0053_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198391/ft1_4FGL_J2207.6+0053_daily_bin217.fits outfile=/scratch/kocevski/198391/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin217.fits ra=331.914 dec=0.8907 rad=12.0 tmin=295574401.0 tmax=295833601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.36
user 2.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198391/ft2_4FGL_J2207.6+0053_daily_bin217.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/198391/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin217.fits evtable="EVENTS" outfile="/scratch/kocevski/198391/ft1_filtered_4FGL_J2207.6+0053_daily_bin217.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198391/ft1_filtered_4FGL_J2207.6+0053_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/198391/ft2_4FGL_J2207.6+0053_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/198391/ltcube_295574401_295833601_4FGL_J2207.6+0053_daily_bin217.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/198391/ft2_4FGL_J2207.6+0053_daily_bin217.fits
.....................!
real 12.01
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198391/ft1_filtered_4FGL_J2207.6+0053_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/198391/ft2_4FGL_J2207.6+0053_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/198391/ltcube_295574401_295833601_4FGL_J2207.6+0053_daily_bin217.fits outfile=/scratch/kocevski/198391/expmap_295574401_295833601_4FGL_J2207.6+0053_daily_bin217.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/198391/ltcube_295574401_295833601_4FGL_J2207.6+0053_daily_bin217.fits
.....................!
real 189.57
user 184.56
sys 4.71

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/198391/ft1_filtered_4FGL_J2207.6+0053_daily_bin217.fits scfile=/scratch/kocevski/198391/ft2_4FGL_J2207.6+0053_daily_bin217.fits outfile=/scratch/kocevski/198391/cmap_295574401_295833601_4FGL_J2207.6+0053_daily_bin217.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198391/ft1_filtered_4FGL_J2207.6+0053_daily_bin217.fits scfile=/scratch/kocevski/198391/ft2_4FGL_J2207.6+0053_daily_bin217.fits outfile=/scratch/kocevski/198391/cmap_HighResolution_295574401_295833601_4FGL_J2207.6+0053_daily_bin217.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.845       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    21.784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11025E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18320E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1509       1.0000         .10000E-03   10000.    
    19 'norm      '    30.705       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34752E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58964       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99731       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=   8363.531     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2584 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5377       -.20928E-06** at limit **
   2  Prefactor     28.900        39.470       -.23829E-05   -.68188E-04
   3  Prefactor     1.3439        2.2029       -.50008E-06    .53046E-03
   4  Prefactor     .10000E-03    20.918        .14496E-05** at limit **
   5  Prefactor     .10001E-03    64.782        .44430E-06** at limit **
   6  Prefactor     .10000E-03    22.636        .48277E-06** at limit **
   7  Prefactor     .10000E-03    17.716       -.73660E-06** at limit **
   8  norm          .10000E-03    .53632       -.91532E-07** at limit **
   9  norm          21.771        16.252       -.26887E-06    .11812E-03
  10  Prefactor     3.4950        6.4690       -.33471E-06    .27686E-03
  11  Prefactor     .10000E-03    4.5283        .11273E-05** at limit **
  12  Prefactor     37.448        19.409        .35515E-06    .25372E-03
  13  Prefactor     .10000E-03    9.0247       -.10773E-06** at limit **
  14  Prefactor     .10000E-03    9.3035       -.44996E-06** at limit **
  15  Prefactor     .51013        198.74       -.55449E-04    .15787E-03
  16  Prefactor     .10005E-03    4.5785       -.56552E-05** at limit **
  17  Prefactor     .10000E-03    6.2474       -.11375E-06** at limit **
  18  Prefactor     7.1520        4.2266       -.36179E-06   -.17281E-03
  19  norm          30.706        5.5005       -.13167E-07    .15640E-03
  20  Prefactor     .10000E-03    3.3056       -.17615E-05** at limit **
  21  Prefactor     .10000E-03    25.392       -.40493E-07** at limit **
  22  Normalizat    .58978        .18732        .46821E-06    .55990E-03
  23  Prefactor     .99733        .10312        .14836E-05    .18517E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.8998
  Prefactor  = 1.34393
  Prefactor  = 0.000100004
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.7712
  Prefactor  = 3.49502
  Prefactor  = 0.000100001
  Prefactor  = 37.4482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.510127
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Prefactor  = 7.15195
  norm       = 30.7064
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.589778
  Prefactor  = 0.997333
 **********
 **   18 **HESSE 
 **********

 FCN=   8363.531     FROM HESSE     STATUS=OK           376 CALLS     2960 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.900        39.898        .74597E-04   -1.4632    
   3  Prefactor     1.3439        2.2154        .14504E-03   -1.5476    
   4  Prefactor     .10000E-03    21.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    66.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .54446        .65399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.771        16.232        .85818E-04   -1.4774    
  10  Prefactor     3.4950        6.4503        .21620E-03   -1.5334    
  11  Prefactor     .10000E-03    33.315        .37201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.448        19.350        .65517E-04   -1.4483    
  13  Prefactor     .10000E-03    9.0891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .51013        21.945        .10517       -1.5565    
  16  Prefactor     .10005E-03    12.009        .32603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.1520        4.1711        .13396E-03   -1.5173    
  19  norm          30.706        5.4991        .72307E-04   -1.4599    
  20  Prefactor     .10000E-03    15.121        .31817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .58978        .21323        .37606E-03   -1.0842    
  23  Prefactor     .99733        .12002        .17004E-03   -.92818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13038e-09
Minuit parameter uncertainties:
  1  3.00603e-05
  2  39.9353
  3  2.21554
  4  0.000557099
  5  0.00167957
  6  4.69775e-05
  7  6.36635e-05
  8  6.29814e-06
  9  16.2357
  10  6.45156
  11  0.000329769
  12  19.3536
  13  7.16843e-05
  14  9.98252e-05
  15  6.6937
  16  0.00149923
  17  2.63781e-05
  18  4.17125
  19  5.49917
  20  0.000432475
  21  4.73634e-05
  22  0.213528
  23  0.120052
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  9.983e-05  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.973e-01  1.201e-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.898e-01  2.135e-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: 6.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198391/likelihoodResults_295574401_295833601_4FGL_J2207.6+0053_daily_bin217.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) = 8363.5311633
delta logL = -0.000507864948304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8363.53065642
delta logL = -9.85301085166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4547       1.0000          .0000       10.000    
     3 'Normalizat'    .58951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99748       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=   8363.531     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      249 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10678E-03    4.8417        .18142E-01** at limit **
   2  Index         2.2888        5.9570        .50000        .18593E-04
   3  Normalizat    .58978        .28742E-02    .37607E-03   -.61670E-05
   4  Prefactor     .99733        .16714E-02    .17004E-03   -.80230E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106781
  Index      = 2.28879
  Normalizat = 0.589782
  Prefactor  = 0.997329
 **********
 **   18 **HESSE 
 **********

 FCN=   8363.531     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10678E-03    519.32        .59959E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2888        6.9211        .50000       -.57310    
   3  Normalizat    .58978        .31138E-01    .15043E-04   -1.0842    
   4  Prefactor     .99733        .18105E-01    .68016E-05   -.92819    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.42244e-08
Minuit parameter uncertainties:
  1  0.119739
  2  1146.79
  3  0.0311386
  4  0.0181054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198391': 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) = 8363.53065471
delta logL = 7.25418431102e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.068e-04  1.197e-01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.289e+00  1.147e+03  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.973e-01  1.811e-02  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.898e-01  3.114e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/198391/cmap_HighResolution_295574401_295833601_4FGL_J2207.6+0053_daily_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-28 06:06:33.127639', job_id='198391', GAL2='1.00', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632834393.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='217' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:06:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 198391: <4FGL_J2207.6+0053_daily_bin217> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin217 331.914 0.8907 295574401 295833601 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 :                                   784.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

