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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin331
RA = 331.914, Dec = 0.8907
tmin = 325123201, tmax = 325382401
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='198571', job_status='RUN', time_executed='2021-09-28 05:54:21.206117', time_epoch_executed='1632833661.21' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198571/ft1_4FGL_J2207.6+0053_daily_bin331.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198571/ft2_4FGL_J2207.6+0053_daily_bin331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198571/ft1_4FGL_J2207.6+0053_daily_bin331.fits outfile=/scratch/kocevski/198571/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin331.fits ra=331.914 dec=0.8907 rad=12.0 tmin=325123201.0 tmax=325382401.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.59
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198571/ft2_4FGL_J2207.6+0053_daily_bin331.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/198571/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin331.fits evtable="EVENTS" outfile="/scratch/kocevski/198571/ft1_filtered_4FGL_J2207.6+0053_daily_bin331.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198571/ft1_filtered_4FGL_J2207.6+0053_daily_bin331.fits" evtable="EVENTS" scfile=/scratch/kocevski/198571/ft2_4FGL_J2207.6+0053_daily_bin331.fits sctable="SC_DATA" outfile=/scratch/kocevski/198571/ltcube_325123201_325382401_4FGL_J2207.6+0053_daily_bin331.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/198571/ft2_4FGL_J2207.6+0053_daily_bin331.fits
.....................!
real 11.69
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198571/ft1_filtered_4FGL_J2207.6+0053_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/198571/ft2_4FGL_J2207.6+0053_daily_bin331.fits sctable="SC_DATA" expcube=/scratch/kocevski/198571/ltcube_325123201_325382401_4FGL_J2207.6+0053_daily_bin331.fits outfile=/scratch/kocevski/198571/expmap_325123201_325382401_4FGL_J2207.6+0053_daily_bin331.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/198571/ltcube_325123201_325382401_4FGL_J2207.6+0053_daily_bin331.fits
.....................!
real 190.21
user 185.02
sys 4.89

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/198571/ft1_filtered_4FGL_J2207.6+0053_daily_bin331.fits scfile=/scratch/kocevski/198571/ft2_4FGL_J2207.6+0053_daily_bin331.fits outfile=/scratch/kocevski/198571/cmap_325123201_325382401_4FGL_J2207.6+0053_daily_bin331.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=331.914 yref=0.8907 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198571/ft1_filtered_4FGL_J2207.6+0053_daily_bin331.fits scfile=/scratch/kocevski/198571/ft2_4FGL_J2207.6+0053_daily_bin331.fits outfile=/scratch/kocevski/198571/cmap_HighResolution_325123201_325382401_4FGL_J2207.6+0053_daily_bin331.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11090E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.684       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7583       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6541       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53772       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7307       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6892       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.290       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0044       1.0000         .10000E-03   10000.    
    19 'norm      '    .29045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2306       1.0000         .10000E-03   10000.    
    21 'Prefactor '    166.59       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92651       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81197       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=   6445.955     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2967 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.721        31.658        .27546E-06   -.15336E-04
   2  Prefactor     .10001E-03    77.852       -.81170E-06** at limit **
   3  Prefactor     .10000E-03    1.0112       -.10409E-06** at limit **
   4  Prefactor     41.825        34.970        .21668E-06   -.13450E-03
   5  Prefactor     28.684        27.665        .14317E-06    .12359E-04
   6  Prefactor     .10000E-03    24.371       -.97769E-08** at limit **
   7  Prefactor     2.8245        110.52       -.20505E-04   -.17464E-04
   8  norm          7.6542        2.8313        .76534E-07   -.14003E-03
   9  norm          .10000E-03    7.8136        .25256E-06** at limit **
  10  Prefactor     .53586        7.0941        .25532E-06    .14841E-03
  11  Prefactor     2.7312        12.311        .40303E-05   -.10396E-03
  12  Prefactor     22.947        18.124       -.20776E-06   -.14167E-03
  13  Prefactor     2.6884        9.7234        .34745E-05   -.44994E-04
  14  Prefactor     12.291        12.784       -.48424E-06   -.30549E-04
  15  Prefactor     .10000E-03    61.293       -.50981E-06** at limit **
  16  Prefactor     .10000E-03    2.8814       -.48140E-08** at limit **
  17  Prefactor     .10000E-03    5.3726       -.27239E-07** at limit **
  18  Prefactor     7.0047        4.7608        .58253E-07    .32089E-04
  19  norm          .10000E-03    3.1446        .43949E-06** at limit **
  20  Prefactor     3.2306        4.7945        .91319E-06   -.37063E-04
  21  Prefactor     166.61        110.78        .76946E-07    .79670E-04
  22  Normalizat    .92652        .21352       -.12766E-05   -.20798E-03
  23  Prefactor     .81196        .11258        .15259E-06   -.27766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7213
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 41.8246
  Prefactor  = 28.684
  Prefactor  = 0.0001
  Prefactor  = 2.82454
  norm       = 7.65421
  norm       = 0.0001
  Prefactor  = 0.535863
  Prefactor  = 2.73118
  Prefactor  = 22.9471
  Prefactor  = 2.68838
  Prefactor  = 12.2913
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00472
  norm       = 0.0001
  Prefactor  = 3.23056
  Prefactor  = 166.608
  Normalizat = 0.926524
  Prefactor  = 0.811956
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.955     FROM HESSE     STATUS=OK           372 CALLS     3339 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.721        31.693        .85943E-04   -1.4776    
   2  Prefactor     .10001E-03    78.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0218        .78688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.825        35.070        .61978E-04   -1.4414    
   5  Prefactor     28.684        27.674        .74804E-04   -1.4636    
   6  Prefactor     .10000E-03    24.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8245        119.46        .24509E-03   -1.5372    
   8  norm          7.6542        2.8347        .78162E-04   -1.5155    
   9  norm          .10000E-03    7.8376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .53586        14.780        .33512E-02   -1.5562    
  11  Prefactor     2.7312        12.454        .12321E-02   -1.5377    
  12  Prefactor     22.947        18.125        .83614E-04   -1.4750    
  13  Prefactor     2.6884        9.7426        .12423E-02   -1.5380    
  14  Prefactor     12.291        12.786        .11426E-03   -1.5007    
  15  Prefactor     .10000E-03    62.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8862        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0047        4.7537        .13482E-03   -1.5179    
  19  norm          .10000E-03    6.7352        .26899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2306        4.8040        .10487E-02   -1.5348    
  21  Prefactor     166.61        109.35        .15626E-03   -1.3119    
  22  Normalizat    .92652        .25217        .31151E-03   -.95534    
  23  Prefactor     .81196        .13447        .18364E-03   -.99289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7526e-10
Minuit parameter uncertainties:
  1  31.7174
  2  0.0018504
  3  2.48896e-06
  4  35.087
  5  27.6863
  6  7.68851e-06
  7  36.816
  8  2.83479
  9  4.04811e-05
  10  5.62946
  11  11.6682
  12  18.1292
  13  9.74836
  14  12.7887
  15  0.00107787
  16  2.30388e-07
  17  5.40516e-07
  18  4.75391
  19  2.90824e-05
  20  4.80458
  21  109.483
  22  0.252496
  23  0.134521
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.229e+01  1.279e+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:  8.120e-01  1.345e-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.265e-01  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 2.99e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 8.83e-06 +/- 9.19e-06

TS (Fixed Index): 1.66
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198571/likelihoodResults_325123201_325382401_4FGL_J2207.6+0053_daily_bin331.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) = 6445.9008585
delta logL = 0.054083527195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6445.8984385
delta logL = 0.0565035246764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.080       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2392       1.0000          .0000       10.000    
     3 'Normalizat'    .93156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80985       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=   6445.898     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      279 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.080        19.454        .99881E-04   -.15867E-03
   2  Index         2.2391        .71516        .93273E-02   -.16219E-04
   3  Normalizat    .93157        .23739        .31074E-03   -.33805E-04
   4  Prefactor     .80985        .13252        .18384E-03   -.50708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0803
  Index      = 2.23913
  Normalizat = 0.931566
  Prefactor  = 0.809846
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.898     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.080        18.798        .39952E-05   -1.4906    
   2  Index         2.2391        .69129        .37309E-03   -.58497    
   3  Normalizat    .93157        .23756        .12430E-04   -.95360    
   4  Prefactor     .80985        .13262        .73537E-05   -.99366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19156e-11
Minuit parameter uncertainties:
  1  18.8048
  2  0.694497
  3  0.237827
  4  0.132671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198571': 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) = 6445.89843849
delta logL = 0.0565035312729

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.608e+01  1.880e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.239e+00  6.945e-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:  8.098e-01  1.327e-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.316e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.24 +/- 0.69
Photon Flux (Free Index): 2.62e-08 +/- 2.97e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.35e-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/198571/cmap_HighResolution_325123201_325382401_4FGL_J2207.6+0053_daily_bin331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', comment='SUCCESS', photon_flux='2.99e-08', energy_flux2='1.10e-05', photon_flux_error='3.11e-08', dlogl='5.65e-02', energy_flux='8.83e-06', photon_flux2='2.62e-08', job_status='DONE', time_completed='2021-09-28 06:06:08.806482', photon_index_error2='0.69', photon_index2='2.24', ts='1.66', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.35e-05', EG='0.93', time_epoch_completed='1632834368.81', return_code='0', job_id='198571', GAL2='0.81', EG2='0.93', return_code2='0', energy_flux_error='9.19e-06', photon_flux_error2='2.97e-08', ts2='1.77', photon_index='2.48' WHERE bin_id='331' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:06:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 198571: <4FGL_J2207.6+0053_daily_bin331> in cluster <slac> Done

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

Your job looked like:

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

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

