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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin969
RA = 331.914, Dec = 0.8907
tmin = 490492801, tmax = 490752001
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='202174', job_status='RUN', time_executed='2021-09-28 06:03:33.673805', time_epoch_executed='1632834213.67' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='969'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202174/ft1_4FGL_J2207.6+0053_daily_bin969.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202174/ft2_4FGL_J2207.6+0053_daily_bin969.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202174/ft1_4FGL_J2207.6+0053_daily_bin969.fits outfile=/scratch/kocevski/202174/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin969.fits ra=331.914 dec=0.8907 rad=12.0 tmin=490492801.0 tmax=490752001.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 5.91
user 5.57
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202174/ft1_filtered_4FGL_J2207.6+0053_daily_bin969.fits" evtable="EVENTS" scfile=/scratch/kocevski/202174/ft2_4FGL_J2207.6+0053_daily_bin969.fits sctable="SC_DATA" outfile=/scratch/kocevski/202174/ltcube_490492801_490752001_4FGL_J2207.6+0053_daily_bin969.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/202174/ft2_4FGL_J2207.6+0053_daily_bin969.fits
.....................!
real 12.29
user 11.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202174/ft1_filtered_4FGL_J2207.6+0053_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/202174/ft2_4FGL_J2207.6+0053_daily_bin969.fits sctable="SC_DATA" expcube=/scratch/kocevski/202174/ltcube_490492801_490752001_4FGL_J2207.6+0053_daily_bin969.fits outfile=/scratch/kocevski/202174/expmap_490492801_490752001_4FGL_J2207.6+0053_daily_bin969.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/202174/ltcube_490492801_490752001_4FGL_J2207.6+0053_daily_bin969.fits
.....................!
real 191.01
user 185.47
sys 4.57

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/202174/ft1_filtered_4FGL_J2207.6+0053_daily_bin969.fits scfile=/scratch/kocevski/202174/ft2_4FGL_J2207.6+0053_daily_bin969.fits outfile=/scratch/kocevski/202174/cmap_490492801_490752001_4FGL_J2207.6+0053_daily_bin969.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202174/ft1_filtered_4FGL_J2207.6+0053_daily_bin969.fits scfile=/scratch/kocevski/202174/ft2_4FGL_J2207.6+0053_daily_bin969.fits outfile=/scratch/kocevski/202174/cmap_HighResolution_490492801_490752001_4FGL_J2207.6+0053_daily_bin969.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/202174/ft1_filtered_4FGL_J2207.6+0053_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/202174/ft2_4FGL_J2207.6+0053_daily_bin969.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/202174/Model_4FGL_J2207.6+0053_daily_bin969.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/202174/ft1_filtered_4FGL_J2207.6+0053_daily_bin969.fits.....................!
real 52.04
user 50.63
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11283E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13365E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.439       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3327       1.0000         .10000E-03   10000.    
     9 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7896       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8775       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12479E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.479       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6584       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.622       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.493       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19813E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3674       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62664       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=   4255.905     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2568 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.210        36.501       -.33277E-07   -.26604E-04
   2  Prefactor     13.551        43.697        .26872E-05   -.34121E-04
   3  Prefactor     .10000E-03    4.2814        .14984E-05** at limit **
   4  Prefactor     .10000E-03    66.458        .22323E-05** at limit **
   5  Prefactor     31.429        41.581        .13548E-05    .33837E-04
   6  Prefactor     .10001E-03    148.46        .75295E-05** at limit **
   7  Prefactor     .10000E-03    20.013        .19315E-06** at limit **
   8  norm          4.3333        3.3505        .40530E-06    .11871E-03
   9  norm          .10000E-03    5.3982        .11660E-06** at limit **
  10  Prefactor     2.7889        6.4046       -.25124E-07   -.69704E-04
  11  Prefactor     1.8718        32.426        .70137E-06   -.27165E-05
  12  Prefactor     .10000E-03    11.426        .16023E-06** at limit **
  13  Prefactor     .10000E-03    28.120        .88121E-06** at limit **
  14  Prefactor     .10003E-03    202.10       -.14645E-04** at limit **
  15  Prefactor     36.468        54.983       -.16958E-05   -.62790E-04
  16  Prefactor     15.744        22.179       -.15037E-05   -.14588E-03
  17  Prefactor     6.6601        45.832        .78435E-06    .36079E-06
  18  Prefactor     .10000E-03    1.6073        .87542E-07** at limit **
  19  norm          10.623        6.5394       -.75563E-07   -.12454E-03
  20  Prefactor     16.496        17.916        .93121E-07   -.83894E-05
  21  Prefactor     .10000E-03    187.68        .10412E-05** at limit **
  22  Normalizat    1.3671        .31680       -.10902E-05   -.36004E-03
  23  Prefactor     .62668        .16302       -.51614E-06   -.78220E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.2096
  Prefactor  = 13.5511
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 31.4287
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 4.33329
  norm       = 0.0001
  Prefactor  = 2.78886
  Prefactor  = 1.87185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 36.4682
  Prefactor  = 15.7436
  Prefactor  = 6.6601
  Prefactor  = 0.0001
  norm       = 10.6235
  Prefactor  = 16.4956
  Prefactor  = 0.0001
  Normalizat = 1.36711
  Prefactor  = 0.626678
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.905     FROM HESSE     STATUS=OK           374 CALLS     2942 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.210        36.515        .64839E-04   -1.4471    
   2  Prefactor     13.551        43.737        .10828E-03   -1.4972    
   3  Prefactor     .10000E-03    4.4866        .18527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    67.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.429        41.717        .71460E-04   -1.4586    
   6  Prefactor     .10001E-03    150.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3333        3.3489        .10011E-03   -1.5292    
   9  norm          .10000E-03    5.4007        .14804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7889        6.3895        .24160E-03   -1.5374    
  11  Prefactor     1.8718        31.573        .30386E-03   -1.5434    
  12  Prefactor     .10000E-03    11.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    202.43        .59742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.468        54.992        .66355E-04   -1.4499    
  16  Prefactor     15.744        22.177        .10096E-03   -1.4914    
  17  Prefactor     6.6601        46.079        .15551E-03   -1.5192    
  18  Prefactor     .10000E-03    1.6100        .80800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.623        6.5394        .12293E-03   -1.5056    
  20  Prefactor     16.496        17.918        .98621E-04   -1.4895    
  21  Prefactor     .10000E-03    188.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3671        .35447        .28327E-03   -.81585    
  23  Prefactor     .62668        .17645        .21181E-03   -1.0647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.378e-09
Minuit parameter uncertainties:
  1  36.5365
  2  43.8405
  3  0.000126797
  4  0.00021642
  5  41.7554
  6  0.00260232
  7  1.53088e-05
  8  3.34909
  9  3.27289e-06
  10  6.39103
  11  15.3845
  12  2.05106e-05
  13  0.00014933
  14  0.00486103
  15  55.0682
  16  22.1891
  17  35.0752
  18  6.13714e-06
  19  6.53984
  20  17.9239
  21  0.000360519
  22  0.355107
  23  0.176606
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.861e-03  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:  6.267e-01  1.766e-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:  1.367e+00  3.551e-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: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202174/likelihoodResults_490492801_490752001_4FGL_J2207.6+0053_daily_bin969.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) = 4255.90523492
delta logL = -2.27695336434e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4255.90523491
delta logL = -2.27603104577e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4841       1.0000          .0000       10.000    
     3 'Normalizat'    1.3671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62668       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=   4253.090     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      300 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65448E-01    .53865        .18102E-02    .13068E-02
   2  Index         6.1127        2.3873        .66462E-01    .92542E-04
   3  Normalizat    1.0668        .99100E-01    .70891E-01    .89674E-04
   4  Prefactor     .73517        .52229E-01    .41417E-01    .30535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0654479
  Index      = 6.11273
  Normalizat = 1.0668
  Prefactor  = 0.735175
 **********
 **   18 **HESSE 
 **********

 FCN=   4253.090     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      331 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65448E-01    .83133        .80741E-05   -1.5657    
   2  Index         6.1127        3.0476        .28133E-02    .22443    
   3  Normalizat    1.0668        .31096        .31374E-03   -.90825    
   4  Prefactor     .73517        .16211        .19671E-03   -1.0216    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05235e-07
Minuit parameter uncertainties:
  1  0.466165
  2  3.29219
  3  0.311496
  4  0.162215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202174': 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) = 4253.090148
delta logL = 2.81506414514

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  6.545e-02  4.662e-01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  6.113e+00  3.292e+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:  7.352e-01  1.622e-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:  1.067e+00  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.34
Ra Dec: 331.914 0.891
Photon Index (Free Index): 6.11 +/- 3.29
Photon Flux (Free Index): 2.53e-07 +/- 1.28e-07
Energy Flux (Free Index): 3.14e-05 +/- 1.61e-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/202174/cmap_HighResolution_490492801_490752001_4FGL_J2207.6+0053_daily_bin969.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', energy_flux2='3.14e-05', dlogl='2.82e+00', photon_flux2='2.53e-07', job_status='DONE', time_completed='2021-09-28 06:13:07.389499', photon_index_error2='3.29', photon_index2='6.11', ts='-0.00', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.61e-05', EG='1.37', time_epoch_completed='1632834787.39', return_code='0', job_id='202174', GAL2='0.74', EG2='1.07', return_code2='102', photon_flux_error2='1.28e-07', ts2='6.34', photon_index='2.48' WHERE bin_id='969' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:13:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 202174: <4FGL_J2207.6+0053_daily_bin969> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin969> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 06:00:25 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:00:28 2021
Terminated at Tue Sep 28 06:13:08 2021
Results reported at Tue Sep 28 06:13:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin969 331.914 0.8907 490492801 490752001 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 :                                   564.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            763 sec.

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

