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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin64
RA = 331.914, Dec = 0.8907
tmin = 255916801, tmax = 256176001
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='196988', job_status='RUN', time_executed='2021-09-28 05:48:18.698914', time_epoch_executed='1632833298.7' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196988/ft1_4FGL_J2207.6+0053_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196988/ft2_4FGL_J2207.6+0053_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196988/ft1_4FGL_J2207.6+0053_daily_bin64.fits outfile=/scratch/kocevski/196988/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin64.fits ra=331.914 dec=0.8907 rad=12.0 tmin=255916801.0 tmax=256176001.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.45
user 1.28
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196988/ft2_4FGL_J2207.6+0053_daily_bin64.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/196988/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin64.fits evtable="EVENTS" outfile="/scratch/kocevski/196988/ft1_filtered_4FGL_J2207.6+0053_daily_bin64.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/196988/ft1_filtered_4FGL_J2207.6+0053_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/196988/ft2_4FGL_J2207.6+0053_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/196988/ltcube_255916801_256176001_4FGL_J2207.6+0053_daily_bin64.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/196988/ft2_4FGL_J2207.6+0053_daily_bin64.fits
.....................!
real 12.47
user 12.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196988/ft1_filtered_4FGL_J2207.6+0053_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/196988/ft2_4FGL_J2207.6+0053_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/196988/ltcube_255916801_256176001_4FGL_J2207.6+0053_daily_bin64.fits outfile=/scratch/kocevski/196988/expmap_255916801_256176001_4FGL_J2207.6+0053_daily_bin64.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/196988/ltcube_255916801_256176001_4FGL_J2207.6+0053_daily_bin64.fits
.....................!
real 190.01
user 185.22
sys 4.44

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/196988/ft1_filtered_4FGL_J2207.6+0053_daily_bin64.fits scfile=/scratch/kocevski/196988/ft2_4FGL_J2207.6+0053_daily_bin64.fits outfile=/scratch/kocevski/196988/cmap_255916801_256176001_4FGL_J2207.6+0053_daily_bin64.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/196988/ft1_filtered_4FGL_J2207.6+0053_daily_bin64.fits scfile=/scratch/kocevski/196988/ft2_4FGL_J2207.6+0053_daily_bin64.fits outfile=/scratch/kocevski/196988/cmap_HighResolution_255916801_256176001_4FGL_J2207.6+0053_daily_bin64.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    147.84       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4228       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.296       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.1842       1.0000         .10000E-03   10000.    
     9 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0421       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.456       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21300E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.522       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4957       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8656       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91097       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0210       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=   8272.028     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2549 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.262        .28696E-06** at limit **
   2  Prefactor     147.83        46.968       -.44844E-05   -.20145E-04
   3  Prefactor     .10000E-03    .62625        .13261E-06** at limit **
   4  Prefactor     8.4226        29.597        .14099E-05   -.21276E-04
   5  Prefactor     22.295        28.186        .26342E-06   -.43505E-05
   6  Prefactor     .10000E-03    31.122       -.30102E-05** at limit **
   7  Prefactor     .10000E-03    34.269        .10036E-04** at limit **
   8  norm          5.1837        2.5113        .84585E-07   -.33471E-03
   9  norm          .10000E-03    24.865        .58997E-06** at limit **
  10  Prefactor     4.0413        4.1031        .28273E-06    .10535E-03
  11  Prefactor     .10000E-03    4.7389        .11127E-06** at limit **
  12  Prefactor     .10000E-03    9.4101       -.71586E-07** at limit **
  13  Prefactor     13.459        17.572       -.27699E-06    .53865E-04
  14  Prefactor     .10000E-03    29.620       -.56595E-05** at limit **
  15  Prefactor     42.525        33.060        .15130E-05   -.43193E-05
  16  Prefactor     5.4919        10.998       -.23129E-06   -.14521E-03
  17  Prefactor     .10000E-03    4.3587       -.51512E-07** at limit **
  18  Prefactor     7.8659        4.9527        .76635E-06   -.22154E-03
  19  norm          4.8181        4.8074        .27833E-05   -.59671E-03
  20  Prefactor     .10000E-03    2.8232       -.66192E-07** at limit **
  21  Prefactor     .10000E-03    71.362       -.40785E-05** at limit **
  22  Normalizat    .91098        .21982       -.14318E-05   -.17709E-04
  23  Prefactor     1.0210        .11475        .90074E-07   -.64767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 147.835
  Prefactor  = 0.0001
  Prefactor  = 8.42256
  Prefactor  = 22.2951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.18369
  norm       = 0.0001
  Prefactor  = 4.04131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4587
  Prefactor  = 0.0001
  Prefactor  = 42.5245
  Prefactor  = 5.49193
  Prefactor  = 0.0001
  Prefactor  = 7.86594
  norm       = 4.81807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.910982
  Prefactor  = 1.02097
 **********
 **   18 **HESSE 
 **********

 FCN=   8272.028     FROM HESSE     STATUS=OK           366 CALLS     2915 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     147.83        47.278        .33143E-04   -1.3270    
   3  Prefactor     .10000E-03    .63006        .70243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4226        29.609        .13813E-03   -1.5127    
   5  Prefactor     22.295        28.182        .84829E-04   -1.4763    
   6  Prefactor     .10000E-03    31.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1837        2.5080        .95751E-04   -1.5253    
   9  norm          .10000E-03    25.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0413        4.1084        .18044E-03   -1.5306    
  11  Prefactor     .10000E-03    4.7631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.459        17.525        .10919E-03   -1.4974    
  14  Prefactor     .10000E-03    29.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.525        33.127        .61477E-04   -1.4403    
  16  Prefactor     5.4919        10.961        .17139E-03   -1.5239    
  17  Prefactor     .10000E-03    4.3657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8659        4.9325        .14297E-03   -1.5147    
  19  norm          4.8181        4.6776        .17937E-03   -1.5269    
  20  Prefactor     .10000E-03    2.8423        .14925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    71.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91098        .25854        .35000E-03   -.96075    
  23  Prefactor     1.0210        .13569        .18789E-03   -.92034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82979e-10
Minuit parameter uncertainties:
  1  6.34771e-06
  2  47.2898
  3  7.89827e-06
  4  29.6603
  5  28.1984
  6  2.36965e-06
  7  2.40181e-06
  8  2.50804
  9  3.11256e-06
  10  4.10872
  11  7.11323e-06
  12  2.48137e-06
  13  17.5317
  14  0.000109157
  15  33.141
  16  10.9654
  17  3.9333e-07
  18  4.93274
  19  4.67795
  20  5.25068e-07
  21  0.000314067
  22  0.258892
  23  0.135734
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.092e-04  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.021e+00  1.357e-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.110e-01  2.589e-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: 9.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196988/likelihoodResults_255916801_256176001_4FGL_J2207.6+0053_daily_bin64.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): 102
logL (Free Index) = 8272.02849692
delta logL = -0.0001593718207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8272.028338
delta logL = -4.46536432719e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12894E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4614       1.0000          .0000       10.000    
     3 'Normalizat'    .91097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0210       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=   8272.028     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    225.25        .18142E-02** at limit **
   2  Index         2.4158        8.6916        .50000        .47722E-05
   3  Normalizat    .91098        .13551E-01    .35000E-03   -.96797E-05
   4  Prefactor     1.0210        .77117E-02    .18789E-03   -.22872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100832
  Index      = 2.41576
  Normalizat = 0.910982
  Prefactor  = 1.02097
 **********
 **   18 **HESSE 
 **********

 FCN=   8272.028     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10083E-03    993.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4158        5.3620        .50000       -.54316    
   3  Normalizat    .91098        .29656E-01    .14000E-04   -.96075    
   4  Prefactor     1.0210        .16876E-01    .75156E-05   -.92034    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11169e-09
Minuit parameter uncertainties:
  1  0.058503
  2  841.756
  3  0.0296565
  4  0.0168763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196988': 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): 102
logL (Free Index) = 8272.02833747
delta logL = 8.02774593467e-08

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.008e-04  5.850e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.416e+00  8.418e+02  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.021e+00  1.688e-02  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.110e-01  2.966e-02  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/196988/cmap_HighResolution_255916801_256176001_4FGL_J2207.6+0053_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.47e-08', time_completed='2021-09-28 06:01:07.375143', job_id='196988', GAL2='1.02', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632834067.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.03e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='64' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 196988: <4FGL_J2207.6+0053_daily_bin64> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin64 331.914 0.8907 255916801 256176001 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 :                                   767.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

