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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin577
RA = 331.914, Dec = 0.8907
tmin = 388886401, tmax = 389145601
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='200005', job_status='RUN', time_executed='2021-09-28 05:55:33.502741', time_epoch_executed='1632833733.5' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200005/ft1_4FGL_J2207.6+0053_daily_bin577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200005/ft2_4FGL_J2207.6+0053_daily_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200005/ft1_4FGL_J2207.6+0053_daily_bin577.fits outfile=/scratch/kocevski/200005/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin577.fits ra=331.914 dec=0.8907 rad=12.0 tmin=388886401.0 tmax=389145601.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.49
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200005/ft1_filtered_4FGL_J2207.6+0053_daily_bin577.fits" evtable="EVENTS" scfile=/scratch/kocevski/200005/ft2_4FGL_J2207.6+0053_daily_bin577.fits sctable="SC_DATA" outfile=/scratch/kocevski/200005/ltcube_388886401_389145601_4FGL_J2207.6+0053_daily_bin577.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/200005/ft2_4FGL_J2207.6+0053_daily_bin577.fits
.....................!
real 11.86
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200005/ft1_filtered_4FGL_J2207.6+0053_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/200005/ft2_4FGL_J2207.6+0053_daily_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/200005/ltcube_388886401_389145601_4FGL_J2207.6+0053_daily_bin577.fits outfile=/scratch/kocevski/200005/expmap_388886401_389145601_4FGL_J2207.6+0053_daily_bin577.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/200005/ltcube_388886401_389145601_4FGL_J2207.6+0053_daily_bin577.fits
.....................!
real 193.74
user 188.42
sys 4.76

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/200005/ft1_filtered_4FGL_J2207.6+0053_daily_bin577.fits scfile=/scratch/kocevski/200005/ft2_4FGL_J2207.6+0053_daily_bin577.fits outfile=/scratch/kocevski/200005/cmap_388886401_389145601_4FGL_J2207.6+0053_daily_bin577.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3866       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.466       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0818       1.0000         .10000E-03   10000.    
     9 'norm      '    19.571       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29192       1.0000         .10000E-03   10000.    
    15 'Prefactor '    76.877       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.635       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.889       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56691       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0967       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=   8205.362     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2616 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55682        17.675       -.32861E-05    .46593E-03
   2  Prefactor     .10000E-03    64.368       -.58360E-06** at limit **
   3  Prefactor     4.3854        2.1209        .12245E-08   -.14216E-04
   4  Prefactor     .10000E-03    14.715        .23747E-06** at limit **
   5  Prefactor     .10000E-03    11.626        .32304E-07** at limit **
   6  Prefactor     .10000E-03    88.687        .77680E-06** at limit **
   7  Prefactor     39.486        45.411       -.46237E-06    .13644E-03
   8  norm          1.0835        2.0846        .11206E-05    .59039E-03
   9  norm          19.559        21.345       -.69565E-06   -.31232E-04
  10  Prefactor     1.9944        6.6087        .23387E-05    .32984E-03
  11  Prefactor     .10000E-03    3.2233        .27047E-07** at limit **
  12  Prefactor     .10000E-03    7.9356        .25778E-08** at limit **
  13  Prefactor     .10000E-03    4.6545       -.21070E-07** at limit **
  14  Prefactor     .33727        5.5757        .30279E-06   -.83255E-04
  15  Prefactor     76.869        31.489       -.10119E-06   -.12849E-03
  16  Prefactor     19.634        10.594        .45842E-07   -.89193E-04
  17  Prefactor     .10000E-03    13.448       -.18563E-06** at limit **
  18  Prefactor     .10000E-03    1.9403       -.66935E-07** at limit **
  19  norm          1.6675        2.6410        .47755E-06    .21576E-03
  20  Prefactor     .10000E-03    1.6829       -.16734E-08** at limit **
  21  Prefactor     57.894        95.356       -.64681E-07    .98857E-06
  22  Normalizat    .56705        .20880       -.58739E-06   -.18806E-04
  23  Prefactor     1.0967        .11538       -.27344E-06   -.81551E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.556824
  Prefactor  = 0.0001
  Prefactor  = 4.38538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 39.4862
  norm       = 1.0835
  norm       = 19.559
  Prefactor  = 1.99441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.337269
  Prefactor  = 76.869
  Prefactor  = 19.6343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66745
  Prefactor  = 0.0001
  Prefactor  = 57.8941
  Normalizat = 0.567053
  Prefactor  = 1.09666
 **********
 **   18 **HESSE 
 **********

 FCN=   8205.362     FROM HESSE     STATUS=OK           370 CALLS     2986 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55682        261.71        .63556E-02   -1.5559    
   2  Prefactor     .10000E-03    65.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3854        2.1181        .88034E-04   -1.5289    
   4  Prefactor     .10000E-03    14.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    89.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.486        45.326        .63803E-04   -1.4450    
   8  norm          1.0835        2.0807        .16868E-03   -1.5500    
   9  norm          19.559        21.238        .90537E-04   -1.4823    
  10  Prefactor     1.9944        6.5711        .29320E-03   -1.5426    
  11  Prefactor     .10000E-03    3.2300        .15881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .33727        38.978        .41094E-02   -1.5592    
  15  Prefactor     76.869        31.501        .45798E-04   -1.3952    
  16  Prefactor     19.634        10.582        .90388E-04   -1.4821    
  17  Prefactor     .10000E-03    13.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9618        .12291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6675        2.6119        .17449E-03   -1.5450    
  20  Prefactor     .10000E-03    1.6843        .11476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.894        94.939        .52728E-04   -1.4185    
  22  Normalizat    .56705        .23003        .40317E-03   -1.0940    
  23  Prefactor     1.0967        .12947        .17212E-03   -.89573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08668e-08
Minuit parameter uncertainties:
  1  24.2486
  2  0.000334191
  3  2.11811
  4  5.16828e-05
  5  1.31687e-05
  6  0.000996133
  7  45.3651
  8  2.0808
  9  21.2466
  10  6.57344
  11  8.5108e-07
  12  8.10109e-07
  13  7.26668e-07
  14  7.25524
  15  31.5082
  16  10.5831
  17  4.04228e-05
  18  1.24519e-06
  19  2.61203
  20  2.54196e-07
  21  95.1882
  22  0.230421
  23  0.129511
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  3.373e-01  7.255e+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

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  1.097e+00  1.295e-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.671e-01  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200005/likelihoodResults_388886401_389145601_4FGL_J2207.6+0053_daily_bin577.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) = 8205.34794916
delta logL = 0.0135627046802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8205.2883001
delta logL = 0.0732117694588

Fit tolerance = 1e-08

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

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

 FCN=   8205.288     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      275 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6814        10.892        .10538E-02    .99829E-04
   2  Index         1.8220        1.2118        .13546E-01   -.83927E-06
   3  Normalizat    .56921        .21964        .40243E-03   -.17006E-04
   4  Prefactor     1.0940        .12845        .17229E-03   -.17157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68141
  Index      = 1.82195
  Normalizat = 0.569213
  Prefactor  = 1.09405
 **********
 **   18 **HESSE 
 **********

 FCN=   8205.288     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6814        10.854        .21076E-03   -1.5324    
   2  Index         1.8220        1.2084        .54184E-03   -.68880    
   3  Normalizat    .56921        .21975        .16097E-04   -1.0931    
   4  Prefactor     1.0940        .12852        .68915E-05   -.89657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.209e-12
Minuit parameter uncertainties:
  1  10.8594
  2  1.22908
  3  0.220091
  4  0.128558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200005': 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) = 8205.28828813
delta logL = 0.0732237358607

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  3.681e+00  1.086e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.822e+00  1.229e+00  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.094e+00  1.286e-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.692e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 331.914 0.891

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/200005/cmap_HighResolution_388886401_389145601_4FGL_J2207.6+0053_daily_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-28 06:08:36.390286', job_id='200005', GAL2='1.09', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1632834516.39', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='7.32e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='577' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:08:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 200005: <4FGL_J2207.6+0053_daily_bin577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin577 331.914 0.8907 388886401 389145601 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 :                                   777.02 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             376.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

