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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin814
RA = 331.914, Dec = 0.8907
tmin = 450316801, tmax = 450576001
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='200373', job_status='RUN', time_executed='2021-09-28 05:58:13.108161', time_epoch_executed='1632833893.11' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200373/ft1_4FGL_J2207.6+0053_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200373/ft2_4FGL_J2207.6+0053_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200373/ft1_4FGL_J2207.6+0053_daily_bin814.fits outfile=/scratch/kocevski/200373/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin814.fits ra=331.914 dec=0.8907 rad=12.0 tmin=450316801.0 tmax=450576001.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.95
user 3.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200373/ft1_filtered_4FGL_J2207.6+0053_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/200373/ft2_4FGL_J2207.6+0053_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/200373/ltcube_450316801_450576001_4FGL_J2207.6+0053_daily_bin814.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/200373/ft2_4FGL_J2207.6+0053_daily_bin814.fits
.....................!
real 11.75
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200373/ft1_filtered_4FGL_J2207.6+0053_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/200373/ft2_4FGL_J2207.6+0053_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/200373/ltcube_450316801_450576001_4FGL_J2207.6+0053_daily_bin814.fits outfile=/scratch/kocevski/200373/expmap_450316801_450576001_4FGL_J2207.6+0053_daily_bin814.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/200373/ltcube_450316801_450576001_4FGL_J2207.6+0053_daily_bin814.fits
.....................!
real 189.32
user 185.05
sys 3.95

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/200373/ft1_filtered_4FGL_J2207.6+0053_daily_bin814.fits scfile=/scratch/kocevski/200373/ft2_4FGL_J2207.6+0053_daily_bin814.fits outfile=/scratch/kocevski/200373/cmap_450316801_450576001_4FGL_J2207.6+0053_daily_bin814.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200373/ft1_filtered_4FGL_J2207.6+0053_daily_bin814.fits scfile=/scratch/kocevski/200373/ft2_4FGL_J2207.6+0053_daily_bin814.fits outfile=/scratch/kocevski/200373/cmap_HighResolution_450316801_450576001_4FGL_J2207.6+0053_daily_bin814.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8849       1.0000         .10000E-03   10000.    
     8 'norm      '    .80561       1.0000         .10000E-03   10000.    
     9 'norm      '    6.5277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.631       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.383       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .99829E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.456       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0737       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1857       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6075       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88541       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0012       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=   6300.761     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2200 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.738       -.17697E-04** at limit **
   2  Prefactor     .10000E-03    19.668       -.16034E-05** at limit **
   3  Prefactor     .10000E-03    .90196       -.17412E-06** at limit **
   4  Prefactor     19.157        29.445        .31444E-04   -.28145E-04
   5  Prefactor     .10000E-03    17.102        .21259E-05** at limit **
   6  Prefactor     .10000E-03    19.677       -.15947E-05** at limit **
   7  Prefactor     7.8952        37.849        .35662E-04   -.23715E-04
   8  norm          .80554        1.2540        .18009E-07   -.34652E-03
   9  norm          6.5360        13.624       -.25499E-05   -.13468E-03
  10  Prefactor     .10000E-03    2.2081       -.22207E-06** at limit **
  11  Prefactor     19.050        13.417       -.32088E-06   -.12368E-03
  12  Prefactor     .10000E-03    13.022       -.48280E-06** at limit **
  13  Prefactor     12.623        11.808        .60261E-06   -.67313E-04
  14  Prefactor     13.373        14.554        .18376E-06   -.10706E-03
  15  Prefactor     4.9382        44.067        .71049E-04   -.15791E-04
  16  Prefactor     .39898        8.0340        .10647E-05   -.74428E-05
  17  Prefactor     11.449        13.861       -.51647E-06   -.44893E-04
  18  Prefactor     7.0181        5.2744        .80482E-06   -.61596E-03
  19  norm          1.1879        3.8177        .45032E-06   -.10280E-02
  20  Prefactor     3.6108        7.7719        .19831E-05   -.21788E-03
  21  Prefactor     .10000E-03    30.849        .11296E-04** at limit **
  22  Normalizat    .88438        .22639       -.12857E-04   -.12176E-03
  23  Prefactor     1.0014        .12218       -.66188E-06   -.57496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.8952
  norm       = 0.805539
  norm       = 6.53597
  Prefactor  = 0.0001
  Prefactor  = 19.0502
  Prefactor  = 0.000100001
  Prefactor  = 12.6235
  Prefactor  = 13.3728
  Prefactor  = 4.93825
  Prefactor  = 0.398977
  Prefactor  = 11.449
  Prefactor  = 7.01812
  norm       = 1.18792
  Prefactor  = 3.61079
  Prefactor  = 0.0001
  Normalizat = 0.884381
  Prefactor  = 1.00136
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.761     FROM HESSE     STATUS=OK           376 CALLS     2576 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .91465        .73572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.157        29.410        .91575E-04   -1.4832    
   5  Prefactor     .10000E-03    17.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8952        37.607        .14280E-03   -1.5146    
   8  norm          .80554        1.0402        .10732E-02   -1.5528    
   9  norm          6.5360        13.590        .15708E-03   -1.5197    
  10  Prefactor     .10000E-03    2.2104        .11517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.050        13.416        .91764E-04   -1.4835    
  12  Prefactor     .10000E-03    13.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.623        11.802        .56355E-03   -1.4997    
  14  Prefactor     13.373        14.554        .10949E-03   -1.4976    
  15  Prefactor     4.9382        43.613        .18180E-03   -1.5263    
  16  Prefactor     .39898        73.628        .39563E-02   -1.5582    
  17  Prefactor     11.449        13.858        .11836E-03   -1.5031    
  18  Prefactor     7.0181        5.3136        .14010E-03   -1.5178    
  19  norm          1.1879        3.7958        .26378E-03   -1.5490    
  20  Prefactor     3.6108        7.7613        .21274E-03   -1.5328    
  21  Prefactor     .10000E-03    30.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88438        .26220        .33925E-03   -.97011    
  23  Prefactor     1.0014        .14366        .18282E-03   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28272e-08
Minuit parameter uncertainties:
  1  3.45163e-05
  2  3.94673e-05
  3  1.6428e-05
  4  29.4321
  5  2.10186e-05
  6  8.00213e-06
  7  34.4973
  8  1.04027
  9  13.5969
  10  3.50928e-05
  11  13.4177
  12  0.000171545
  13  11.8041
  14  14.5583
  15  29.3794
  16  10.8521
  17  13.8615
  18  5.31394
  19  3.79661
  20  7.76347
  21  4.77808e-05
  22  0.262582
  23  0.143717
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.337e+01  1.456e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  1.001e+00  1.437e-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:  8.844e-01  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 9.61e-06 +/- 1.05e-05

TS (Fixed Index): 1.88
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200373/likelihoodResults_450316801_450576001_4FGL_J2207.6+0053_daily_bin814.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) = 6300.75517081
delta logL = 0.00602425321631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6300.75103685
delta logL = 0.0101582119923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.810       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6662       1.0000          .0000       10.000    
     3 'Normalizat'    .87625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0040       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=   6300.751     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      239 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.806        19.110        .11657E-03   -.11362E-02
   2  Index         2.6663        1.3983        .80354E-02   -.40086E-03
   3  Normalizat    .87628        .25838        .34065E-03   -.75723E-03
   4  Prefactor     1.0040        .14428        .18260E-03   -.14534E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8058
  Index      = 2.66631
  Normalizat = 0.87628
  Prefactor  = 1.00396
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.751     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.806        17.368        .23314E-04   -1.5021    
   2  Index         2.6663        1.2717        .32142E-03   -.48560    
   3  Normalizat    .87628        .25703        .68129E-04   -.97299    
   4  Prefactor     1.0040        .14403        .36520E-04   -.92598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62231e-09
Minuit parameter uncertainties:
  1  17.3752
  2  1.28992
  3  0.257387
  4  0.144086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200373': 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) = 6300.75103681
delta logL = 0.0101582599755

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.181e+01  1.738e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.666e+00  1.290e+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.004e+00  1.441e-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:  8.763e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.67 +/- 1.29
Photon Flux (Free Index): 3.94e-08 +/- 6.35e-08
Energy Flux (Free Index): 9.74e-06 +/- 1.02e-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/200373/cmap_HighResolution_450316801_450576001_4FGL_J2207.6+0053_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.74e-03', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='9.74e-06', photon_flux_error='3.54e-08', dlogl='1.02e-02', energy_flux='9.61e-06', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-09-28 06:08:52.442078', photon_index_error2='1.29', photon_index2='2.67', ts='1.88', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.02e-05', EG='0.88', time_epoch_completed='1632834532.44', return_code='0', job_id='200373', GAL2='1.00', EG2='0.88', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='6.35e-08', ts2='1.91', photon_index='2.48' WHERE bin_id='814' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 200373: <4FGL_J2207.6+0053_daily_bin814> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin814 331.914 0.8907 450316801 450576001 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

