/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 27 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin39
RA = 331.914, Dec = 0.8907
tmin = 249436801, tmax = 249696001
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='196952', job_status='RUN', time_executed='2021-09-28 05:46:11.571768', time_epoch_executed='1632833171.57' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196952/ft1_4FGL_J2207.6+0053_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196952/ft2_4FGL_J2207.6+0053_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196952/ft1_4FGL_J2207.6+0053_daily_bin39.fits outfile=/scratch/kocevski/196952/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin39.fits ra=331.914 dec=0.8907 rad=12.0 tmin=249436801.0 tmax=249696001.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.44
user 1.26
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196952/ft1_filtered_4FGL_J2207.6+0053_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/196952/ft2_4FGL_J2207.6+0053_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/196952/ltcube_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.fits outfile=/scratch/kocevski/196952/expmap_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.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/196952/ltcube_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.fits
.....................!
real 190.66
user 185.21
sys 5.14

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/196952/ft1_filtered_4FGL_J2207.6+0053_daily_bin39.fits scfile=/scratch/kocevski/196952/ft2_4FGL_J2207.6+0053_daily_bin39.fits outfile=/scratch/kocevski/196952/cmap_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196952/ft1_filtered_4FGL_J2207.6+0053_daily_bin39.fits scfile=/scratch/kocevski/196952/ft2_4FGL_J2207.6+0053_daily_bin39.fits outfile=/scratch/kocevski/196952/cmap_HighResolution_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.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.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/196952/ft1_filtered_4FGL_J2207.6+0053_daily_bin39.fits', '/scratch/kocevski/196952/ft2_4FGL_J2207.6+0053_daily_bin39.fits', expMap='/scratch/kocevski/196952/expmap_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.fits', expCube='/scratch/kocevski/196952/ltcube_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/196952/Model_4FGL_J2207.6+0053_daily_bin39.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/196952/ft1_filtered_4FGL_J2207.6+0053_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/196952/ft2_4FGL_J2207.6+0053_daily_bin39.fits
Exposure map: /scratch/kocevski/196952/expmap_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.fits
Exposure cube: /scratch/kocevski/196952/ltcube_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/196952/Model_4FGL_J2207.6+0053_daily_bin39.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10151.0505044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0530       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .71269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2564       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.508       1.0000         .10000E-03   10000.    
     8 'norm      '    9.1890       1.0000         .10000E-03   10000.    
     9 'norm      '    .95893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0620       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.902       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.025       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8071       1.0000         .10000E-03   10000.    
    19 'norm      '    14.243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3354       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28815E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60301       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96866       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=   10150.01     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2227 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0598        21.457        .16832E-06   -.20525E-04
   2  Prefactor     .10000E-03    21.653       -.25110E-08** at limit **
   3  Prefactor     .71289        1.1981        .83779E-06   -.95657E-04
   4  Prefactor     3.2597        55.605       -.30982E-05   -.40435E-04
   5  Prefactor     .10000E-03    10.621       -.16428E-07** at limit **
   6  Prefactor     .10000E-03    24.710       -.99196E-07** at limit **
   7  Prefactor     10.451        25.468       -.85715E-07   -.99666E-04
   8  norm          9.1884        2.4116        .86287E-08   -.29829E-03
   9  norm          .99265        6.8468        .38476E-06   -.19221E-03
  10  Prefactor     .10000E-03    5.5220       -.32778E-06** at limit **
  11  Prefactor     8.0635        9.5060        .62785E-07   -.77855E-04
  12  Prefactor     12.255        15.867        .20398E-07    .10183E-04
  13  Prefactor     11.891        14.122        .86962E-07    .26284E-04
  14  Prefactor     18.015        16.619       -.50083E-07   -.72718E-04
  15  Prefactor     .10001E-03    13.925        .23002E-06** at limit **
  16  Prefactor     23.030        11.766        .35780E-07   -.58939E-04
  17  Prefactor     .10000E-03    4.7220        .89646E-08** at limit **
  18  Prefactor     3.8066        2.7977        .32410E-07   -.10265E-03
  19  norm          14.242        3.9334        .36052E-07   -.15437E-03
  20  Prefactor     4.3354        3.5674       -.15487E-07    .61496E-04
  21  Prefactor     .10000E-03    73.367        .11831E-05** at limit **
  22  Normalizat    .60296        .18033       -.16194E-06   -.14743E-03
  23  Prefactor     .96869        .93786E-01   -.74281E-07   -.18237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.05976
  Prefactor  = 0.0001
  Prefactor  = 0.712895
  Prefactor  = 3.25967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4514
  norm       = 9.18838
  norm       = 0.992654
  Prefactor  = 0.0001
  Prefactor  = 8.06347
  Prefactor  = 12.2547
  Prefactor  = 11.8906
  Prefactor  = 18.0149
  Prefactor  = 0.000100008
  Prefactor  = 23.0299
  Prefactor  = 0.0001
  Prefactor  = 3.80661
  norm       = 14.2419
  Prefactor  = 4.33539
  Prefactor  = 0.000100002
  Normalizat = 0.602959
  Prefactor  = 0.968693
 **********
 **   18 **HESSE 
 **********

 FCN=   10150.01     FROM HESSE     STATUS=OK           386 CALLS     2613 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0598        21.452        .13321E-03   -1.5106    
   2  Prefactor     .10000E-03    21.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71289        1.2045        .15490E-02   -1.5539    
   4  Prefactor     3.2597        56.291        .22443E-03   -1.5347    
   5  Prefactor     .10000E-03    10.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.451        25.408        .12360E-03   -1.5061    
   8  norm          9.1884        2.4126        .74484E-04   -1.5102    
   9  norm          .99265        46.193        .47304E-02   -1.5509    
  10  Prefactor     .10000E-03    5.6921        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0635        9.4764        .14121E-03   -1.5140    
  12  Prefactor     12.255        15.603        .11441E-03   -1.5008    
  13  Prefactor     11.891        14.076        .11612E-03   -1.5018    
  14  Prefactor     18.015        16.586        .94390E-04   -1.4859    
  15  Prefactor     .10001E-03    104.87        .70186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.030        11.737        .83476E-04   -1.4748    
  17  Prefactor     .10000E-03    4.7318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8066        2.7878        .13451E-03   -1.5318    
  19  norm          14.242        3.9314        .10038E-03   -1.4953    
  20  Prefactor     4.3354        3.5688        .16845E-03   -1.5292    
  21  Prefactor     .10000E-03    73.474        .21407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .60296        .20276        .37412E-03   -1.0786    
  23  Prefactor     .96869        .10836        .17287E-03   -.93780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57789e-09
Minuit parameter uncertainties:
  1  21.4707
  2  2.66856e-05
  3  1.20451
  4  27.1212
  5  8.89959e-06
  6  5.75394e-05
  7  25.4339
  8  2.41263
  9  13.5535
  10  4.82156e-05
  11  9.4782
  12  15.6084
  13  14.0798
  14  16.5897
  15  0.00179624
  16  11.7379
  17  7.25747e-07
  18  2.78794
  19  3.93145
  20  3.569
  21  0.00080309
  22  0.203011
  23  0.108384
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.801e+01  1.659e+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:  9.687e-01  1.084e-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:  6.030e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 4.38e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/196952/likelihoodResults_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.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) = 10146.931583
delta logL = 3.07816508291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10146.726481
delta logL = 3.28326708447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52342E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.9914       1.0000          .0000       10.000    
     3 'Normalizat'    .44307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0344       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=   10146.73     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      301 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52355E-01    .23187        .20068E-02    .20664E-02
   2  Index         5.9915        1.6919        .80086E-01    .15729E-03
   3  Normalizat    .44316        .50738E-01    .97412E-01   -.70281E-04
   4  Prefactor     1.0344        .29233E-01    .40928E-01   -.39020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0523554
  Index      = 5.9915
  Normalizat = 0.443163
  Prefactor  = 1.03436
 **********
 **   18 **HESSE 
 **********

 FCN=   10146.73     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      332 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52355E-01    .41440        .89673E-05   -1.5662    
   2  Index         5.9915        2.4211        .32801E-02    .19962    
   3  Normalizat    .44316        .17088        .43163E-03   -1.1513    
   4  Prefactor     1.0344        .96537E-01    .16773E-03   -.91593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.66051e-10
Minuit parameter uncertainties:
  1  0.294312
  2  2.53233
  3  0.171077
  4  0.0965532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196952': 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) = 10146.7264796
delta logL = 3.28326845138

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  5.236e-02  2.943e-01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  5.991e+00  2.532e+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.034e+00  9.655e-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:  4.432e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.39
Ra Dec: 331.914 0.891
Photon Index (Free Index): 5.99 +/- 2.53
Photon Flux (Free Index): 1.56e-07 +/- 6.54e-08
Energy Flux (Free Index): 1.94e-05 +/- 9.13e-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/196952/cmap_HighResolution_249436801_249696001_4FGL_J2207.6+0053_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', comment='SUCCESS', photon_flux='4.38e-08', energy_flux2='1.94e-05', photon_flux_error='4.03e-08', dlogl='3.28e+00', energy_flux='1.29e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-28 06:00:21.294984', photon_index_error2='2.53', photon_index2='5.99', ts='2.37', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='9.13e-06', EG='0.60', time_epoch_completed='1632834021.3', return_code='0', job_id='196952', GAL2='1.03', EG2='0.44', return_code2='102', energy_flux_error='1.19e-05', photon_flux_error2='6.54e-08', ts2='10.39', photon_index='2.48' WHERE bin_id='39' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:00:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 196952: <4FGL_J2207.6+0053_daily_bin39> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin39 331.914 0.8907 249436801 249696001 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 :                                   848.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

