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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin1282
RA = 331.914, Dec = 0.8907
tmin = 571622401, tmax = 571881601
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='204272', job_status='RUN', time_executed='2021-09-28 06:05:50.797514', time_epoch_executed='1632834350.8' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204272

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204272/ft1_4FGL_J2207.6+0053_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204272/ft2_4FGL_J2207.6+0053_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204272/ft1_4FGL_J2207.6+0053_daily_bin1282.fits outfile=/scratch/kocevski/204272/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin1282.fits ra=331.914 dec=0.8907 rad=12.0 tmin=571622401.0 tmax=571881601.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.69
user 2.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204272/ft1_filtered_4FGL_J2207.6+0053_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/204272/ft2_4FGL_J2207.6+0053_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/204272/ltcube_571622401_571881601_4FGL_J2207.6+0053_daily_bin1282.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/204272/ft2_4FGL_J2207.6+0053_daily_bin1282.fits
.....................!
real 13.07
user 12.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204272/ft1_filtered_4FGL_J2207.6+0053_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/204272/ft2_4FGL_J2207.6+0053_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/204272/ltcube_571622401_571881601_4FGL_J2207.6+0053_daily_bin1282.fits outfile=/scratch/kocevski/204272/expmap_571622401_571881601_4FGL_J2207.6+0053_daily_bin1282.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/204272/ltcube_571622401_571881601_4FGL_J2207.6+0053_daily_bin1282.fits
.....................!
real 190.74
user 185.41
sys 4.96

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/204272/ft1_filtered_4FGL_J2207.6+0053_daily_bin1282.fits scfile=/scratch/kocevski/204272/ft2_4FGL_J2207.6+0053_daily_bin1282.fits outfile=/scratch/kocevski/204272/cmap_571622401_571881601_4FGL_J2207.6+0053_daily_bin1282.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/204272/ft1_filtered_4FGL_J2207.6+0053_daily_bin1282.fits scfile=/scratch/kocevski/204272/ft2_4FGL_J2207.6+0053_daily_bin1282.fits outfile=/scratch/kocevski/204272/cmap_HighResolution_571622401_571881601_4FGL_J2207.6+0053_daily_bin1282.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.632       1.0000         .10000E-03   10000.    
     2 'Prefactor '    237.77       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.817       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14959E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10873E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .84961       1.0000         .10000E-03   10000.    
     9 'norm      '    9.5256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.432       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.378       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.070       1.0000         .10000E-03   10000.    
    16 'Prefactor '    78.569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5768       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.074       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9564       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .41207       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91071       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=   4311.504     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2581 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.652        68.831        .22468E-05    .22961E-04
   2  Prefactor     237.65        145.88       -.15925E-05   -.90361E-05
   3  Prefactor     .10001E-03    8.0496       -.43196E-05** at limit **
   4  Prefactor     13.782        100.96        .47102E-05    .60314E-05
   5  Prefactor     .10001E-03    743.74       -.23123E-04** at limit **
   6  Prefactor     .10000E-03    25.832       -.19027E-06** at limit **
   7  Prefactor     .10000E-03    111.26        .12277E-05** at limit **
   8  norm          .84816        3.6601        .50577E-05    .81138E-04
   9  norm          9.5427        33.842       -.85528E-05   -.13035E-03
  10  Prefactor     11.435        12.003        .64415E-06    .87672E-06
  11  Prefactor     .10000E-03    16.300       -.18484E-06** at limit **
  12  Prefactor     48.155        38.149        .10584E-05    .38667E-04
  13  Prefactor     .10000E-03    20.594       -.13519E-06** at limit **
  14  Prefactor     31.365        33.331        .89734E-06    .18973E-04
  15  Prefactor     20.054        37.372        .10865E-05   -.17214E-04
  16  Prefactor     78.568        32.583        .85869E-06    .76741E-04
  17  Prefactor     5.5776        7.7431        .67092E-07   -.71268E-04
  18  Prefactor     .10000E-03    5.6081        .11121E-06** at limit **
  19  norm          16.074        12.587        .38484E-06    .47034E-04
  20  Prefactor     3.9563        4.6513        .66540E-07    .17734E-04
  21  Prefactor     .10000E-03    71.341       -.14000E-06** at limit **
  22  Normalizat    .41203        .35276       -.14120E-04   -.36941E-04
  23  Prefactor     .91075        .16109        .23841E-05   -.12915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6523
  Prefactor  = 237.647
  Prefactor  = 0.000100006
  Prefactor  = 13.7818
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.848164
  norm       = 9.54274
  Prefactor  = 11.4355
  Prefactor  = 0.0001
  Prefactor  = 48.1547
  Prefactor  = 0.0001
  Prefactor  = 31.3648
  Prefactor  = 20.0537
  Prefactor  = 78.568
  Prefactor  = 5.5776
  Prefactor  = 0.0001
  norm       = 16.0737
  Prefactor  = 3.95632
  Prefactor  = 0.0001
  Normalizat = 0.41203
  Prefactor  = 0.910752
 **********
 **   18 **HESSE 
 **********

 FCN=   4311.504     FROM HESSE     STATUS=OK           370 CALLS     2951 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.652        68.455        .77627E-04   -1.4675    
   2  Prefactor     237.65        144.67        .13127E-03   -1.2612    
   3  Prefactor     .10001E-03    7.7972        .35088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.782        101.00        .10775E-03   -1.4965    
   5  Prefactor     .10001E-03    738.09        .20473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    111.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .84816        3.7132        .19264E-03   -1.5524    
   9  norm          9.5427        33.092        .12984E-03   -1.5090    
  10  Prefactor     11.435        11.983        .11848E-03   -1.5032    
  11  Prefactor     .10000E-03    16.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.155        38.071        .57789E-04   -1.4319    
  13  Prefactor     .10000E-03    20.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.365        33.242        .71529E-04   -1.4587    
  15  Prefactor     20.054        37.310        .89405E-04   -1.4812    
  16  Prefactor     78.568        32.384        .45306E-04   -1.3933    
  17  Prefactor     5.5776        7.7392        .17012E-03   -1.5236    
  18  Prefactor     .10000E-03    5.6370        .15158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.074        12.573        .99898E-04   -1.4906    
  20  Prefactor     3.9563        4.6529        .14950E-03   -1.5310    
  21  Prefactor     .10000E-03    71.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .41203        .35734        .48548E-03   -1.1668    
  23  Prefactor     .91075        .17155        .17326E-03   -.95766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14217e-09
Minuit parameter uncertainties:
  1  68.6578
  2  144.89
  3  0.000435535
  4  74.7969
  5  0.00667712
  6  3.29128e-05
  7  0.000901467
  8  3.54949
  9  33.1557
  10  11.9858
  11  4.92342e-05
  12  38.0898
  13  3.81312e-05
  14  33.2613
  15  37.3535
  16  32.3915
  17  7.74062
  18  1.44025e-06
  19  12.5747
  20  4.6533
  21  0.000190483
  22  0.359343
  23  0.17165
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  3.136e+01  3.326e+01  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.108e-01  1.717e-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:  4.120e-01  3.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 7.63e-08 +/- 8.08e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 2.39e-05

TS (Fixed Index): 1.32
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 2.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204272/likelihoodResults_571622401_571881601_4FGL_J2207.6+0053_daily_bin1282.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): 0
logL (Free Index) = 4311.48193759
delta logL = 0.0224376024944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4311.4729682
delta logL = 0.0314069950282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.693       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6525       1.0000          .0000       10.000    
     3 'Normalizat'    .40454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91321       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=   4311.473     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.688        36.287        .77539E-04    .40282E-03
   2  Index         2.6528        .72002        .59634E-02    .20063E-03
   3  Normalizat    .40454        .32267        .48971E-03   -.20924E-03
   4  Prefactor     .91321        .16867        .17303E-03   -.62902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6884
  Index      = 2.65275
  Normalizat = 0.404537
  Prefactor  = 0.913211
 **********
 **   18 **HESSE 
 **********

 FCN=   4311.473     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.688        34.521        .15508E-04   -1.4674    
   2  Index         2.6528        .68486        .23854E-03   -.48867    
   3  Normalizat    .40454        .32261        .19588E-04   -1.1707    
   4  Prefactor     .91321        .16860        .34607E-04   -.95681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10705e-09
Minuit parameter uncertainties:
  1  34.5471
  2  0.687641
  3  0.324104
  4  0.168695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204272': 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) = 4311.4729681
delta logL = 0.0314070910626

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.669e+01  3.455e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.653e+00  6.876e-01  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.132e-01  1.687e-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:  4.045e-01  3.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.65 +/- 0.69
Photon Flux (Free Index): 8.69e-08 +/- 9.42e-08
Energy Flux (Free Index): 2.17e-05 +/- 2.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/204272/cmap_HighResolution_571622401_571881601_4FGL_J2207.6+0053_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', comment='SUCCESS', photon_flux='7.63e-08', energy_flux2='2.17e-05', photon_flux_error='8.08e-08', dlogl='3.14e-02', energy_flux='2.25e-05', photon_flux2='8.69e-08', job_status='DONE', time_completed='2021-09-28 06:14:53.607069', photon_index_error2='0.69', photon_index2='2.65', ts='1.32', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.48e-07', energy_flux_error2='2.23e-05', EG='0.41', time_epoch_completed='1632834893.61', return_code='0', job_id='204272', GAL2='0.91', EG2='0.40', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='9.42e-08', ts2='1.39', photon_index='2.48' WHERE bin_id='1282' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:14:53 PDT 2021


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

Job <4FGL_J2207.6+0053_daily_bin1282> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:05:37 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:05:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:05:39 2021
Terminated at Tue Sep 28 06:14:54 2021
Results reported at Tue Sep 28 06:14:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin1282 331.914 0.8907 571622401 571881601 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 :                                   537.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            557 sec.

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

