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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin239
RA = 331.914, Dec = 0.8907
tmin = 301276801, tmax = 301536001
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='198423', job_status='RUN', time_executed='2021-09-28 05:54:17.257815', time_epoch_executed='1632833657.26' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198423/ft1_4FGL_J2207.6+0053_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198423/ft2_4FGL_J2207.6+0053_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198423/ft1_4FGL_J2207.6+0053_daily_bin239.fits outfile=/scratch/kocevski/198423/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin239.fits ra=331.914 dec=0.8907 rad=12.0 tmin=301276801.0 tmax=301536001.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 4.54
user 4.27
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198423/ft1_filtered_4FGL_J2207.6+0053_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/198423/ft2_4FGL_J2207.6+0053_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/198423/ltcube_301276801_301536001_4FGL_J2207.6+0053_daily_bin239.fits outfile=/scratch/kocevski/198423/expmap_301276801_301536001_4FGL_J2207.6+0053_daily_bin239.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/198423/ltcube_301276801_301536001_4FGL_J2207.6+0053_daily_bin239.fits
.....................!
real 191.96
user 186.26
sys 5.32

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/198423/ft1_filtered_4FGL_J2207.6+0053_daily_bin239.fits scfile=/scratch/kocevski/198423/ft2_4FGL_J2207.6+0053_daily_bin239.fits outfile=/scratch/kocevski/198423/cmap_301276801_301536001_4FGL_J2207.6+0053_daily_bin239.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198423/ft1_filtered_4FGL_J2207.6+0053_daily_bin239.fits scfile=/scratch/kocevski/198423/ft2_4FGL_J2207.6+0053_daily_bin239.fits outfile=/scratch/kocevski/198423/cmap_HighResolution_301276801_301536001_4FGL_J2207.6+0053_daily_bin239.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.434       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.861       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2878       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.564       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.305       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3530       1.0000         .10000E-03   10000.    
    19 'norm      '    14.005       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.540       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71136       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0188       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=   6715.809     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2636 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.457        44.840        .30164E-05    .43982E-04
   2  Prefactor     62.860        48.375       -.22618E-06   -.36945E-05
   3  Prefactor     1.2896        2.7990        .13959E-06   -.10069E-04
   4  Prefactor     .10000E-03    14.357        .15866E-06** at limit **
   5  Prefactor     .10000E-03    44.861        .21146E-06** at limit **
   6  Prefactor     31.545        63.878       -.50140E-06   -.32786E-04
   7  Prefactor     .10422E-03    50.748       -.46538E-05** at limit **
   8  norm          .10000E-03    1.5514        .37124E-06** at limit **
   9  norm          .10000E-03    7.9963       -.21857E-07** at limit **
  10  Prefactor     4.1702        6.9007        .14042E-05    .70993E-04
  11  Prefactor     .10000E-03    3.7148        .70001E-07** at limit **
  12  Prefactor     .10000E-03    4.3884        .74549E-07** at limit **
  13  Prefactor     2.2857        22.925        .76282E-05   -.69716E-05
  14  Prefactor     .10000E-03    12.041        .27685E-06** at limit **
  15  Prefactor     46.558        34.388       -.24990E-05   -.57924E-04
  16  Prefactor     .54537        7.4500        .11468E-05   -.24509E-03
  17  Prefactor     13.310        12.641       -.61122E-06   -.28278E-04
  18  Prefactor     8.3544        4.5631        .23105E-06   -.13114E-03
  19  norm          14.004        5.2141        .18558E-06   -.83289E-04
  20  Prefactor     .10000E-03    4.4799        .46262E-08** at limit **
  21  Prefactor     16.662        114.46       -.14322E-04   -.23769E-04
  22  Normalizat    .71132        .23496       -.63522E-06   -.81965E-04
  23  Prefactor     1.0189        .12475       -.44638E-06   -.13977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.457
  Prefactor  = 62.8601
  Prefactor  = 1.28964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5448
  Prefactor  = 0.000104218
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.17023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28572
  Prefactor  = 0.0001
  Prefactor  = 46.5582
  Prefactor  = 0.545373
  Prefactor  = 13.3104
  Prefactor  = 8.35441
  norm       = 14.0035
  Prefactor  = 0.0001
  Prefactor  = 16.6622
  Normalizat = 0.711321
  Prefactor  = 1.01886
 **********
 **   18 **HESSE 
 **********

 FCN=   6715.809     FROM HESSE     STATUS=OK           378 CALLS     3014 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.457        44.818        .52042E-04   -1.4164    
   2  Prefactor     62.860        47.383        .50612E-04   -1.4121    
   3  Prefactor     1.2896        2.7066        .17098E-03   -1.5481    
   4  Prefactor     .10000E-03    14.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.545        59.890        .71321E-04   -1.4584    
   7  Prefactor     .10422E-03    44.549        .14175       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5270        .18400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.0099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1702        7.1985        .98669E-03   -1.5300    
  11  Prefactor     .10000E-03    3.7218        .15425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3905        .16767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2857        22.318        .13570E-02   -1.5406    
  14  Prefactor     .10000E-03    12.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     46.558        34.335        .58759E-04   -1.4342    
  16  Prefactor     .54537        26.855        .40759E-02   -1.5560    
  17  Prefactor     13.310        12.636        .10981E-03   -1.4978    
  18  Prefactor     8.3544        4.5445        .12012E-03   -1.5130    
  19  norm          14.004        5.2148        .10681E-03   -1.4959    
  20  Prefactor     .10000E-03    4.5307        .16940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.662        113.97        .98482E-04   -1.4891    
  22  Normalizat    .71132        .26939        .37677E-03   -1.0345    
  23  Prefactor     1.0189        .14599        .17877E-03   -.92103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68782e-10
Minuit parameter uncertainties:
  1  44.8433
  2  47.4119
  3  2.70682
  4  4.12272e-06
  5  1.77845e-05
  6  60.0049
  7  0.0274348
  8  9.27264e-06
  9  5.18102e-06
  10  7.19998
  11  4.79521e-07
  12  6.48203e-06
  13  14.2913
  14  8.5218e-06
  15  34.3499
  16  7.6569
  17  12.639
  18  4.54473
  19  5.21497
  20  2.31924e-06
  21  87.3959
  22  0.269893
  23  0.146051
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  8.522e-06  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:  1.019e+00  1.461e-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:  7.113e-01  2.699e-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: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198423/likelihoodResults_301276801_301536001_4FGL_J2207.6+0053_daily_bin239.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) = 6715.80948073
delta logL = -0.000392282493522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6715.80909557
delta logL = -7.12181554263e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18628E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4263       1.0000          .0000       10.000    
     3 'Normalizat'    .71056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0193       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=   6715.809     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      252 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10521E-03    8.8715        .18142E-01** at limit **
   2  Index         2.3204        8.6659        .50000        .25338E-04
   3  Normalizat    .71132        .39423E-02    .37677E-03    .70305E-05
   4  Prefactor     1.0189        .22224E-02    .17877E-03    .57870E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105213
  Index      = 2.32038
  Normalizat = 0.711321
  Prefactor  = 1.01886
 **********
 **   18 **HESSE 
 **********

 FCN=   6715.809     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10521E-03    267.21        .64796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3204        5.4942        .50000       -.56560    
   3  Normalizat    .71132        .21629E-01    .15071E-04   -1.0345    
   4  Prefactor     1.0189        .12193E-01    .71508E-05   -.92103    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17167e-08
Minuit parameter uncertainties:
  1  0.0749848
  2  372.417
  3  0.0216289
  4  0.0121927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198423': 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) = 6715.80908742
delta logL = 1.03171532828e-06

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.052e-04  7.498e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.320e+00  3.724e+02  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:  1.019e+00  1.219e-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:  7.113e-01  2.163e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/198423/cmap_HighResolution_301276801_301536001_4FGL_J2207.6+0053_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-09-28 06:05:54.898196', job_id='198423', GAL2='1.02', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632834354.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='239' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 198423: <4FGL_J2207.6+0053_daily_bin239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin239 331.914 0.8907 301276801 301536001 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 :                                   693.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

