/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 15 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin46
RA = 331.914, Dec = 0.8907
tmin = 251251201, tmax = 251510401
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='196962', job_status='RUN', time_executed='2021-09-28 05:45:56.346016', time_epoch_executed='1632833156.35' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196962/ft1_4FGL_J2207.6+0053_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196962/ft2_4FGL_J2207.6+0053_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196962/ft1_4FGL_J2207.6+0053_daily_bin46.fits outfile=/scratch/kocevski/196962/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin46.fits ra=331.914 dec=0.8907 rad=12.0 tmin=251251201.0 tmax=251510401.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 1.47
user 1.31
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196962/ft1_filtered_4FGL_J2207.6+0053_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/196962/ft2_4FGL_J2207.6+0053_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/196962/ltcube_251251201_251510401_4FGL_J2207.6+0053_daily_bin46.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/196962/ft2_4FGL_J2207.6+0053_daily_bin46.fits
.....................!
real 15.77
user 15.36
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196962/ft1_filtered_4FGL_J2207.6+0053_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/196962/ft2_4FGL_J2207.6+0053_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/196962/ltcube_251251201_251510401_4FGL_J2207.6+0053_daily_bin46.fits outfile=/scratch/kocevski/196962/expmap_251251201_251510401_4FGL_J2207.6+0053_daily_bin46.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/196962/ltcube_251251201_251510401_4FGL_J2207.6+0053_daily_bin46.fits
.....................!
real 190.69
user 185.34
sys 4.97

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/196962/ft1_filtered_4FGL_J2207.6+0053_daily_bin46.fits scfile=/scratch/kocevski/196962/ft2_4FGL_J2207.6+0053_daily_bin46.fits outfile=/scratch/kocevski/196962/cmap_251251201_251510401_4FGL_J2207.6+0053_daily_bin46.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196962/ft1_filtered_4FGL_J2207.6+0053_daily_bin46.fits scfile=/scratch/kocevski/196962/ft2_4FGL_J2207.6+0053_daily_bin46.fits outfile=/scratch/kocevski/196962/cmap_HighResolution_251251201_251510401_4FGL_J2207.6+0053_daily_bin46.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29275E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5516       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.452       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5604       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6607       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16832E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.065       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.194       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.216       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7754       1.0000         .10000E-03   10000.    
    19 'norm      '    24.098       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .87783       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81559       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86095       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=   8296.700     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2634 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3762        .28222E-07** at limit **
   2  Prefactor     .10006E-03    138.38        .21471E-05** at limit **
   3  Prefactor     1.5486        1.5133        .25619E-06    .52979E-03
   4  Prefactor     .10000E-03    14.371        .11275E-06** at limit **
   5  Prefactor     36.431        35.048        .51730E-06    .87972E-05
   6  Prefactor     .10000E-03    46.665       -.71396E-07** at limit **
   7  Prefactor     8.5815        30.415       -.64189E-05   -.11598E-03
   8  norm          5.6602        2.4442        .34601E-07   -.29089E-03
   9  norm          .10000E-03    9.6796        .40832E-06** at limit **
  10  Prefactor     .10008E-03    4.6824        .13152E-05** at limit **
  11  Prefactor     .10000E-03    7.1149       -.66156E-08** at limit **
  12  Prefactor     19.067        17.502       -.18685E-06   -.21702E-03
  13  Prefactor     .10000E-03    11.044       -.38389E-07** at limit **
  14  Prefactor     17.533        14.143       -.11539E-07   -.10412E-03
  15  Prefactor     59.197        31.160        .87011E-07   -.12138E-03
  16  Prefactor     13.217        11.998       -.10007E-05   -.59434E-04
  17  Prefactor     .10000E-03    3.5231       -.82366E-08** at limit **
  18  Prefactor     4.7759        4.9001        .20107E-05   -.64573E-03
  19  norm          24.099        5.8278       -.17004E-06   -.30222E-03
  20  Prefactor     .87756        2.9221        .34497E-06   -.73291E-04
  21  Prefactor     .10000E-03    37.514       -.25852E-07** at limit **
  22  Normalizat    .81548        .19227       -.49914E-06   -.26461E-03
  23  Prefactor     .86096        .10278       -.11236E-06   -.45629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 1.54858
  Prefactor  = 0.0001
  Prefactor  = 36.4311
  Prefactor  = 0.0001
  Prefactor  = 8.58153
  norm       = 5.6602
  norm       = 0.0001
  Prefactor  = 0.000100083
  Prefactor  = 0.0001
  Prefactor  = 19.0671
  Prefactor  = 0.0001
  Prefactor  = 17.5335
  Prefactor  = 59.1975
  Prefactor  = 13.2174
  Prefactor  = 0.0001
  Prefactor  = 4.77587
  norm       = 24.0987
  Prefactor  = 0.877556
  Prefactor  = 0.0001
  Normalizat = 0.815476
  Prefactor  = 0.860958
 **********
 **   18 **HESSE 
 **********

 FCN=   8296.700     FROM HESSE     STATUS=OK           380 CALLS     3014 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    143.74        .42800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5486        1.4985        .10568E-03   -1.5459    
   4  Prefactor     .10000E-03    14.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.431        35.001        .66379E-04   -1.4500    
   6  Prefactor     .10000E-03    46.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5815        33.065        .13701E-03   -1.5122    
   8  norm          5.6602        2.4431        .89210E-04   -1.5232    
   9  norm          .10000E-03    9.7477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10008E-03    5.8869        .56775E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.067        17.517        .91728E-04   -1.4834    
  13  Prefactor     .10000E-03    11.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.533        14.145        .95651E-04   -1.4870    
  15  Prefactor     59.197        31.162        .52147E-04   -1.4168    
  16  Prefactor     13.217        12.010        .11018E-03   -1.4981    
  17  Prefactor     .10000E-03    3.5251        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7759        4.9440        .89198E-03   -1.5271    
  19  norm          24.099        5.8361        .81600E-04   -1.4726    
  20  Prefactor     .87756        3.0487        .27699E-02   -1.5521    
  21  Prefactor     .10000E-03    37.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .81548        .22519        .33537E-03   -.99497    
  23  Prefactor     .86096        .12118        .18401E-03   -.97519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4836e-08
Minuit parameter uncertainties:
  1  3.19616e-06
  2  0.00574376
  3  1.49852
  4  1.66114e-05
  5  35.0211
  6  0.000285049
  7  33.1353
  8  2.44313
  9  6.37401e-05
  10  0.00139897
  11  1.97197e-06
  12  17.5219
  13  2.90492e-07
  14  14.1475
  15  31.1703
  16  12.0119
  17  4.54193e-07
  18  4.94439
  19  5.83621
  20  3.04924
  21  9.19689e-05
  22  0.225452
  23  0.121215
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.753e+01  1.415e+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.610e-01  1.212e-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:  8.155e-01  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.52
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/196962/likelihoodResults_251251201_251510401_4FGL_J2207.6+0053_daily_bin46.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) = 8296.69965345
delta logL = 0.000168900613062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8296.69951419
delta logL = 0.000308163758746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.829       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4622       1.0000          .0000       10.000    
     3 'Normalizat'    .81664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86068       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.

 FCN=   8296.700     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      235 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.843        375.26        .23713E-02    .44519E-03
   2  Index         2.4633        6.1780        .16189        .11119E-03
   3  Normalizat    .81655        .10297        .75725E-01    .38489E-04
   4  Prefactor     .86057        .39446E-01    .44502E-01    .20493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8428
  Index      = 2.46334
  Normalizat = 0.816548
  Prefactor  = 0.860572
 **********
 **   18 **HESSE 
 **********

 FCN=   8296.700     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.843        20.647        .47427E-03   -1.4863    
   2  Index         2.4633        .90291        .94019E-02   -.53209    
   3  Normalizat    .81655        .21853        .33517E-03   -.99458    
   4  Prefactor     .86057        .12156        .18405E-03   -.97533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06337e-09
Minuit parameter uncertainties:
  1  20.6554
  2  0.909652
  3  0.218763
  4  0.121595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196962': 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) = 8296.69950895
delta logL = 0.000313405829729

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.784e+01  2.066e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.463e+00  9.097e-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.606e-01  1.216e-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:  8.165e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.46 +/- 0.91
Photon Flux (Free Index): 4.19e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.12e-05

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/196962/cmap_HighResolution_251251201_251510401_4FGL_J2207.6+0053_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='1.27e-05', photon_flux_error='3.44e-08', dlogl='3.13e-04', energy_flux='1.26e-05', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-09-28 05:58:59.593896', photon_index_error2='0.91', photon_index2='2.46', ts='2.52', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.12e-05', EG='0.82', time_epoch_completed='1632833939.59', return_code='0', job_id='196962', GAL2='0.86', EG2='0.82', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.47e-08', ts2='2.52', photon_index='2.48' WHERE bin_id='46' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:58:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 196962: <4FGL_J2207.6+0053_daily_bin46> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin46> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:33 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:45:34 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:45:34 2021
Terminated at Tue Sep 28 05:59:00 2021
Results reported at Tue Sep 28 05:59:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin46 331.914 0.8907 251251201 251510401 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 :                                   782.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

