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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin158
RA = 331.914, Dec = 0.8907
tmin = 280281601, tmax = 280540801
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='198296', job_status='RUN', time_executed='2021-09-28 05:53:29.227570', time_epoch_executed='1632833609.23' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198296/ft1_4FGL_J2207.6+0053_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198296/ft2_4FGL_J2207.6+0053_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198296/ft1_4FGL_J2207.6+0053_daily_bin158.fits outfile=/scratch/kocevski/198296/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin158.fits ra=331.914 dec=0.8907 rad=12.0 tmin=280281601.0 tmax=280540801.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.44
user 4.12
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198296/ft1_filtered_4FGL_J2207.6+0053_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/198296/ft2_4FGL_J2207.6+0053_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/198296/ltcube_280281601_280540801_4FGL_J2207.6+0053_daily_bin158.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/198296/ft2_4FGL_J2207.6+0053_daily_bin158.fits
.....................!
real 16.56
user 16.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198296/ft1_filtered_4FGL_J2207.6+0053_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/198296/ft2_4FGL_J2207.6+0053_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/198296/ltcube_280281601_280540801_4FGL_J2207.6+0053_daily_bin158.fits outfile=/scratch/kocevski/198296/expmap_280281601_280540801_4FGL_J2207.6+0053_daily_bin158.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/198296/ltcube_280281601_280540801_4FGL_J2207.6+0053_daily_bin158.fits
.....................!
real 194.01
user 188.67
sys 4.68

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/198296/ft1_filtered_4FGL_J2207.6+0053_daily_bin158.fits scfile=/scratch/kocevski/198296/ft2_4FGL_J2207.6+0053_daily_bin158.fits outfile=/scratch/kocevski/198296/cmap_280281601_280540801_4FGL_J2207.6+0053_daily_bin158.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198296/ft1_filtered_4FGL_J2207.6+0053_daily_bin158.fits scfile=/scratch/kocevski/198296/ft2_4FGL_J2207.6+0053_daily_bin158.fits outfile=/scratch/kocevski/198296/cmap_HighResolution_280281601_280540801_4FGL_J2207.6+0053_daily_bin158.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.57
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.769       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9901       1.0000         .10000E-03   10000.    
     9 'norm      '    13.059       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.304       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22287E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.806       1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0384       1.0000         .10000E-03   10000.    
    19 'norm      '    12.566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19776E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58898       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0642       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=   5878.539     FROM MIGRAD    STATUS=CONVERGED    962 CALLS     2990 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.651        .18142E-02** at limit **
   2  Prefactor     .10251E-03    51.078        .13791    ** at limit **
   3  Prefactor     .10000E-03    2.7052        .18253E-02** at limit **
   4  Prefactor     22.861        32.642        .83944E-04   -.60132E-04
   5  Prefactor     13.285        62.435        .10972E-03   -.15128E-04
   6  Prefactor     .10000E-03    43.832        .18142E-02** at limit **
   7  Prefactor     .10000E-03    67.917        .18142E-02** at limit **
   8  norm          4.9899        2.6704        .85421E-04   -.19830E-04
   9  norm          13.034        22.289        .11084E-03    .83078E-05
  10  Prefactor     4.7396        4.8216        .16470E-03    .42934E-04
  11  Prefactor     .10000E-03    4.2972        .15508E-02** at limit **
  12  Prefactor     50.275        27.728        .56542E-04   -.46808E-04
  13  Prefactor     .10000E-03    19.736        .18142E-02** at limit **
  14  Prefactor     23.863        22.690        .82098E-04   -.10787E-03
  15  Prefactor     68.573        33.565        .48458E-04   -.17220E-04
  16  Prefactor     .10000E-03    5.3885        .17348E-02** at limit **
  17  Prefactor     .10000E-03    3.3176        .13638E-02** at limit **
  18  Prefactor     4.0371        4.0612        .14727E-03   -.29103E-04
  19  norm          12.565        5.9560        .56501E-03   -.31174E-03
  20  Prefactor     .10000E-03    2.7938        .12501E-02** at limit **
  21  Prefactor     .10000E-03    80.137        .18142E-02** at limit **
  22  Normalizat    .58879        .28906        .40526E-03   -.10180E-03
  23  Prefactor     1.0642        .15460        .17570E-03   -.57770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010251
  Prefactor  = 0.0001
  Prefactor  = 22.8608
  Prefactor  = 13.2853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.98992
  norm       = 13.0336
  Prefactor  = 4.73964
  Prefactor  = 0.0001
  Prefactor  = 50.2753
  Prefactor  = 0.0001
  Prefactor  = 23.8634
  Prefactor  = 68.5734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0371
  norm       = 12.5652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.588792
  Prefactor  = 1.06417
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.539     FROM HESSE     STATUS=OK           356 CALLS     3346 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.651        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10251E-03    51.130        .13779       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7110        .36506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.861        32.638        .33577E-05   -1.4751    
   5  Prefactor     13.285        62.380        .43889E-05   -1.4979    
   6  Prefactor     .10000E-03    43.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    67.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9899        2.6703        .34169E-05   -1.5261    
   9  norm          13.034        22.290        .44337E-05   -1.4986    
  10  Prefactor     4.7396        4.8215        .65880E-05   -1.5273    
  11  Prefactor     .10000E-03    4.2974        .31015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.275        27.728        .11308E-04   -1.4289    
  13  Prefactor     .10000E-03    19.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.863        22.688        .32839E-05   -1.4731    
  15  Prefactor     68.573        33.564        .96916E-05   -1.4050    
  16  Prefactor     .10000E-03    5.3891        .34695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3176        .27277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0371        4.0609        .58908E-05   -1.5306    
  19  norm          12.565        5.9559        .22601E-04   -1.4999    
  20  Prefactor     .10000E-03    2.7939        .25001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    80.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .58879        .28916        .16210E-04   -1.0846    
  23  Prefactor     1.0642        .15468        .35139E-04   -.90620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3296e-10
Minuit parameter uncertainties:
  1  2.42288e-06
  2  0.0226772
  3  3.78114e-06
  4  32.6635
  5  57.674
  6  3.52545e-06
  7  8.02137e-06
  8  2.67037
  9  22.3046
  10  4.82191
  11  4.08709e-06
  12  27.735
  13  7.35014e-05
  14  22.6962
  15  33.5736
  16  4.81751e-06
  17  1.43259e-07
  18  4.06114
  19  5.95618
  20  4.88e-07
  21  8.48225e-06
  22  0.289908
  23  0.15474
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.386e+01  2.270e+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:  1.064e+00  1.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  5.888e-01  2.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 5.51e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/198296/likelihoodResults_280281601_280540801_4FGL_J2207.6+0053_daily_bin158.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) = 5878.20784923
delta logL = 0.330993377679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5878.18776686
delta logL = 0.351075747927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8175       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2169       1.0000          .0000       10.000    
     3 'Normalizat'    .54913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0787       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5878.188     FROM MIGRAD    STATUS=FAILED        98 CALLS      308 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7965        27.548        .63945E-03   -.57621E-04
   2  Index         3.2188        1.4707        .48890E-02    .47087E-03
   3  Normalizat    .54913        .27738        .41868E-03   -.18573E-04
   4  Prefactor     1.0787        .15642        .17459E-03   -.61065E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5878.188     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      382 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7965        27.548        .24341E-03   -1.5082    
   2  Index         3.2188        1.4707        .80397E-03   -.36424    
   3  Normalizat    .54913        .27738        .49543E-03   -1.1019    
   4  Prefactor     1.0787        .15642        .19434E-03   -.90151    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5878.188     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      421 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7966        17.472        .25578E-04    .57781E-05
   2  Index         3.2188        .94083        .97780E-03   -.18835E-05
   3  Normalizat    .54913        .27658        .16747E-04    .13577E-06
   4  Prefactor     1.0787        .15571        .34919E-04    .26046E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.79656
  Index      = 3.21879
  Normalizat = 0.549132
  Prefactor  = 1.07866
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.188     FROM HESSE     STATUS=OK            23 CALLS      444 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7966        16.652        .10231E-05   -1.5082    
   2  Index         3.2188        .89705        .39112E-04   -.36424    
   3  Normalizat    .54913        .27652        .33495E-05   -1.1019    
   4  Prefactor     1.0787        .15565        .69838E-05   -.90151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70293e-13
Minuit parameter uncertainties:
  1  16.6597
  2  0.902653
  3  0.277214
  4  0.155719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198296': 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) = 5878.18776364
delta logL = 0.351078973037

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  9.797e+00  1.666e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.219e+00  9.027e-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:  1.079e+00  1.557e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  5.491e-01  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 331.914 0.891
Photon Index (Free Index): 3.22 +/- 0.90
Photon Flux (Free Index): 9.10e-08 +/- 7.37e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.30e-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/198296/cmap_HighResolution_280281601_280540801_4FGL_J2207.6+0053_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='1.65e-05', photon_flux_error='5.51e-08', dlogl='3.51e-01', energy_flux='1.71e-05', photon_flux2='9.10e-08', job_status='DONE', time_completed='2021-09-28 06:05:15.702565', photon_index_error2='0.90', photon_index2='3.22', ts='1.59', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.30e-05', EG='0.59', time_epoch_completed='1632834315.7', return_code='0', job_id='198296', GAL2='1.08', EG2='0.55', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.37e-08', ts2='2.43', photon_index='2.48' WHERE bin_id='158' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 198296: <4FGL_J2207.6+0053_daily_bin158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin158 331.914 0.8907 280281601 280540801 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 :                                   704.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

