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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin269
RA = 331.914, Dec = 0.8907
tmin = 309052801, tmax = 309312001
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='198470', job_status='RUN', time_executed='2021-09-28 05:53:20.524520', time_epoch_executed='1632833600.52' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198470/ft1_4FGL_J2207.6+0053_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198470/ft2_4FGL_J2207.6+0053_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198470/ft1_4FGL_J2207.6+0053_daily_bin269.fits outfile=/scratch/kocevski/198470/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin269.fits ra=331.914 dec=0.8907 rad=12.0 tmin=309052801.0 tmax=309312001.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.44
user 3.22
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198470/ft1_filtered_4FGL_J2207.6+0053_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/198470/ft2_4FGL_J2207.6+0053_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/198470/ltcube_309052801_309312001_4FGL_J2207.6+0053_daily_bin269.fits outfile=/scratch/kocevski/198470/expmap_309052801_309312001_4FGL_J2207.6+0053_daily_bin269.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/198470/ltcube_309052801_309312001_4FGL_J2207.6+0053_daily_bin269.fits
.....................!
real 191.72
user 186.45
sys 4.72

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/198470/ft1_filtered_4FGL_J2207.6+0053_daily_bin269.fits scfile=/scratch/kocevski/198470/ft2_4FGL_J2207.6+0053_daily_bin269.fits outfile=/scratch/kocevski/198470/cmap_309052801_309312001_4FGL_J2207.6+0053_daily_bin269.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198470/ft1_filtered_4FGL_J2207.6+0053_daily_bin269.fits scfile=/scratch/kocevski/198470/ft2_4FGL_J2207.6+0053_daily_bin269.fits outfile=/scratch/kocevski/198470/cmap_HighResolution_309052801_309312001_4FGL_J2207.6+0053_daily_bin269.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.59
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9788       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.957       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4315       1.0000         .10000E-03   10000.    
     9 'norm      '    9.1118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3050       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36177E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0012       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8570       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    99.817       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8083       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .39653       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=   8198.523     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2618 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9899        27.167       -.62600E-06   -.26895E-04
   2  Prefactor     .10000E-03    11.698       -.93593E-06** at limit **
   3  Prefactor     .63312        1.3188        .87598E-06    .45185E-03
   4  Prefactor     23.905        28.594        .32824E-06    .15435E-04
   5  Prefactor     31.963        29.298       -.38495E-06   -.38857E-04
   6  Prefactor     .10000E-03    35.701        .17804E-06** at limit **
   7  Prefactor     .10000E-03    15.094        .80526E-06** at limit **
   8  norm          3.4332        1.9921        .64956E-07   -.41620E-05
   9  norm          9.1185        16.492       -.63653E-06   -.78973E-04
  10  Prefactor     2.3052        4.6001       -.29768E-06   -.29588E-03
  11  Prefactor     .10000E-03    3.8003        .10870E-07** at limit **
  12  Prefactor     .10000E-03    13.205        .96305E-06** at limit **
  13  Prefactor     .10000E-03    16.276       -.13065E-05** at limit **
  14  Prefactor     .10359E-03    10.205       -.11941E-05** at limit **
  15  Prefactor     .10000E-03    8.6120        .16557E-06** at limit **
  16  Prefactor     3.6238        10.905       -.93715E-06   -.55885E-04
  17  Prefactor     .10000E-03    6.1872       -.49198E-07** at limit **
  18  Prefactor     2.0016        5.4126        .14067E-05   -.67412E-04
  19  norm          2.8581        2.8731        .56246E-07   -.77564E-04
  20  Prefactor     .10000E-03    5.4446        .73094E-07** at limit **
  21  Prefactor     99.822        88.638       -.43840E-06    .13594E-05
  22  Normalizat    1.8083        .19326       -.79761E-06    .61866E-04
  23  Prefactor     .39641        .98098E-01    .22176E-06   -.10613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.98993
  Prefactor  = 0.0001
  Prefactor  = 0.633119
  Prefactor  = 23.9052
  Prefactor  = 31.9631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.43324
  norm       = 9.11855
  Prefactor  = 2.30522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103591
  Prefactor  = 0.0001
  Prefactor  = 3.62378
  Prefactor  = 0.0001
  Prefactor  = 2.00164
  norm       = 2.85806
  Prefactor  = 0.0001
  Prefactor  = 99.8215
  Normalizat = 1.80831
  Prefactor  = 0.396406
 **********
 **   18 **HESSE 
 **********

 FCN=   8198.523     FROM HESSE     STATUS=OK           382 CALLS     3000 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9899        27.261        .16422E-03   -1.5218    
   2  Prefactor     .10000E-03    11.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .63312        1.2812        .15115E-02   -1.5549    
   4  Prefactor     23.905        28.282        .81839E-04   -1.4730    
   5  Prefactor     31.963        29.294        .70880E-04   -1.4577    
   6  Prefactor     .10000E-03    35.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4332        1.9871        .92149E-04   -1.5337    
   9  norm          9.1185        16.506        .13277E-03   -1.5104    
  10  Prefactor     2.3052        4.7296        .27027E-03   -1.5404    
  11  Prefactor     .10000E-03    3.8137        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10359E-03    11.994        .83395E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6238        10.485        .21232E-03   -1.5327    
  17  Prefactor     .10000E-03    6.2048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0016        5.2111        .26411E-03   -1.5425    
  19  norm          2.8581        2.8627        .14537E-03   -1.5370    
  20  Prefactor     .10000E-03    5.5924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     99.822        88.287        .40239E-04   -1.3706    
  22  Normalizat    1.8083        .22780        .23745E-03   -.69447    
  23  Prefactor     .39641        .11406        .24751E-03   -1.1699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03752e-09
Minuit parameter uncertainties:
  1  25.5763
  2  8.72419e-05
  3  1.28128
  4  28.2981
  5  29.3076
  6  2.1754e-05
  7  0.000105424
  8  1.98717
  9  16.5145
  10  4.73036
  11  4.16218e-06
  12  0.000105393
  13  6.6781e-05
  14  0.0131277
  15  1.52615e-05
  16  10.4904
  17  2.03456e-06
  18  5.21229
  19  2.86286
  20  2.6053e-06
  21  88.4035
  22  0.227932
  23  0.114125
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.036e-04  1.313e-02  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:  3.964e-01  1.141e-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.808e+00  2.279e-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: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198470/likelihoodResults_309052801_309312001_4FGL_J2207.6+0053_daily_bin269.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) = 8198.52316269
delta logL = -2.00502436201e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8198.52316268
delta logL = -2.00407212105e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4842       1.0000          .0000       10.000    
     3 'Normalizat'    1.8083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39641       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=   8197.778     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      381 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13067E-02    .11069E-04** at limit **
   2  Index         8.3707        .42279        .76176E-02    .23001E-04
   3  Normalizat    1.7329        .22186        .24138E-03    .49819E-03
   4  Prefactor     .42389        .11545        .23970E-03    .78249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.37068
  Normalizat = 1.73294
  Prefactor  = 0.423895
 **********
 **   18 **HESSE 
 **********

 FCN=   8197.778     FROM HESSE     STATUS=OK            25 CALLS      406 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12961E-02    .44275E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3707        .41137        .30470E-03    .73979    
   3  Normalizat    1.7329        .22177        .48277E-04   -.71427    
   4  Prefactor     .42389        .11547        .95878E-05   -1.1561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37746e-09
Minuit parameter uncertainties:
  1  7.37879e-08
  2  0.412222
  3  0.221899
  4  0.115538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198470': 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) = 8197.77812374
delta logL = 0.745018899943

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  7.379e-08  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  8.371e+00  4.122e-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:  4.239e-01  1.155e-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.733e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 331.914 0.891
Photon Index (Free Index): 8.37 +/- 0.41
Photon Flux (Free Index): 5.73e-08 +/- 5.16e-08
Energy Flux (Free Index): 6.59e-06 +/- 5.92e-06

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/198470/cmap_HighResolution_309052801_309312001_4FGL_J2207.6+0053_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', comment='SUCCESS', energy_flux2='6.59e-06', dlogl='7.45e-01', photon_flux2='5.73e-08', job_status='DONE', time_completed='2021-09-28 06:06:48.095318', photon_index_error2='0.41', photon_index2='8.37', ts='-0.00', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', photon_flux_upper_limit='8.00e-08', energy_flux_error2='5.92e-06', EG='1.81', time_epoch_completed='1632834408.1', return_code='0', job_id='198470', GAL2='0.42', EG2='1.73', return_code2='0', photon_flux_error2='5.16e-08', ts2='1.64', photon_index='2.48' WHERE bin_id='269' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:06:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 198470: <4FGL_J2207.6+0053_daily_bin269> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin269> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:50:32 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:50:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:50:34 2021
Terminated at Tue Sep 28 06:06:48 2021
Results reported at Tue Sep 28 06:06:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin269 331.914 0.8907 309052801 309312001 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 :                                   802.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

