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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin298
RA = 331.914, Dec = 0.8907
tmin = 316569601, tmax = 316828801
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='198517', job_status='RUN', time_executed='2021-09-28 05:53:05.734679', time_epoch_executed='1632833585.73' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198517/ft1_4FGL_J2207.6+0053_daily_bin298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198517/ft2_4FGL_J2207.6+0053_daily_bin298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198517/ft1_4FGL_J2207.6+0053_daily_bin298.fits outfile=/scratch/kocevski/198517/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin298.fits ra=331.914 dec=0.8907 rad=12.0 tmin=316569601.0 tmax=316828801.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.83
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198517/ft2_4FGL_J2207.6+0053_daily_bin298.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/198517/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin298.fits evtable="EVENTS" outfile="/scratch/kocevski/198517/ft1_filtered_4FGL_J2207.6+0053_daily_bin298.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.67
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198517/ft1_filtered_4FGL_J2207.6+0053_daily_bin298.fits" evtable="EVENTS" scfile=/scratch/kocevski/198517/ft2_4FGL_J2207.6+0053_daily_bin298.fits sctable="SC_DATA" outfile=/scratch/kocevski/198517/ltcube_316569601_316828801_4FGL_J2207.6+0053_daily_bin298.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/198517/ft2_4FGL_J2207.6+0053_daily_bin298.fits
.....................!
real 11.82
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198517/ft1_filtered_4FGL_J2207.6+0053_daily_bin298.fits evtable="EVENTS" scfile=/scratch/kocevski/198517/ft2_4FGL_J2207.6+0053_daily_bin298.fits sctable="SC_DATA" expcube=/scratch/kocevski/198517/ltcube_316569601_316828801_4FGL_J2207.6+0053_daily_bin298.fits outfile=/scratch/kocevski/198517/expmap_316569601_316828801_4FGL_J2207.6+0053_daily_bin298.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/198517/ltcube_316569601_316828801_4FGL_J2207.6+0053_daily_bin298.fits
.....................!
real 189.98
user 184.93
sys 4.70

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.176       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7066       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6518       1.0000         .10000E-03   10000.    
     9 'norm      '    51.467       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5545       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4324       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.764       1.0000         .10000E-03   10000.    
    19 'norm      '    16.311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.924       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26853E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .44455       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0748       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=   5608.014     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2537 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.182        39.656        .19621E-06    .99315E-05
   2  Prefactor     35.619        37.347        .23547E-06    .35916E-05
   3  Prefactor     .10000E-03    1.4786       -.77694E-07** at limit **
   4  Prefactor     .10000E-03    18.488       -.37246E-06** at limit **
   5  Prefactor     .10000E-03    20.169        .13747E-06** at limit **
   6  Prefactor     .10000E-03    81.810        .27679E-06** at limit **
   7  Prefactor     3.6783        276.16        .46636E-05   -.11840E-05
   8  norm          3.6531        2.5418        .15813E-06    .59168E-05
   9  norm          51.469        29.330       -.69479E-06   -.23291E-05
  10  Prefactor     .10000E-03    5.5078       -.89986E-06** at limit **
  11  Prefactor     4.1305        11.874        .45761E-06    .35441E-05
  12  Prefactor     6.5557        17.499        .37149E-05   -.12291E-04
  13  Prefactor     .10000E-03    14.547        .12504E-06** at limit **
  14  Prefactor     26.683        25.024        .19194E-07   -.34999E-05
  15  Prefactor     1.4339        72.482        .27944E-05   -.30613E-05
  16  Prefactor     .10000E-03    7.5664        .96366E-07** at limit **
  17  Prefactor     .10000E-03    5.1248        .33007E-07** at limit **
  18  Prefactor     13.758        7.0430        .37222E-07    .16885E-04
  19  norm          16.302        6.8524       -.59349E-07    .28800E-04
  20  Prefactor     11.924        8.2706        .51622E-07    .25420E-05
  21  Prefactor     .10000E-03    144.76       -.20100E-05** at limit **
  22  Normalizat    .44431        .27749       -.23986E-05   -.12724E-04
  23  Prefactor     1.0749        .14492        .11657E-06   -.13249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1817
  Prefactor  = 35.6188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67833
  norm       = 3.65314
  norm       = 51.469
  Prefactor  = 0.0001
  Prefactor  = 4.13045
  Prefactor  = 6.55573
  Prefactor  = 0.0001
  Prefactor  = 26.6829
  Prefactor  = 1.4339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7575
  norm       = 16.3016
  Prefactor  = 11.9241
  Prefactor  = 0.000100002
  Normalizat = 0.44431
  Prefactor  = 1.07489
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.014     FROM HESSE     STATUS=OK           374 CALLS     2911 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.182        39.594        .69570E-04   -1.4555    
   2  Prefactor     35.619        37.129        .67145E-04   -1.4514    
   3  Prefactor     .10000E-03    1.5124        .17673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    81.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6783        269.55        .20976E-03   -1.5324    
   8  norm          3.6531        2.5337        .93679E-04   -1.5326    
   9  norm          51.469        28.964        .55903E-04   -1.4272    
  10  Prefactor     .10000E-03    5.5349        .17156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1305        11.826        .19835E-03   -1.5301    
  12  Prefactor     6.5557        17.402        .78376E-03   -1.5196    
  13  Prefactor     .10000E-03    14.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.683        24.861        .77554E-04   -1.4674    
  15  Prefactor     1.4339        72.974        .36086E-03   -1.5468    
  16  Prefactor     .10000E-03    7.5948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1277        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.758        7.0114        .10796E-03   -1.4966    
  19  norm          16.302        6.8302        .99170E-04   -1.4900    
  20  Prefactor     11.924        8.2726        .11601E-03   -1.5017    
  21  Prefactor     .10000E-03    145.77        .19945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .44431        .28543        .45012E-03   -1.1507    
  23  Prefactor     1.0749        .15359        .17132E-03   -.90273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13539e-11
Minuit parameter uncertainties:
  1  39.6256
  2  37.1526
  3  2.73391e-06
  4  3.60208e-05
  5  4.4833e-05
  6  0.000189592
  7  63.2729
  8  2.53381
  9  28.9717
  10  1.80552e-06
  11  11.833
  12  17.4151
  13  1.5264e-05
  14  24.8703
  15  20.4843
  16  1.05977e-05
  17  9.73735e-07
  18  7.01179
  19  6.83048
  20  8.2734
  21  0.0010481
  22  0.28637
  23  0.15365
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.668e+01  2.487e+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.075e+00  1.537e-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:  4.443e-01  2.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 6.49e-08 +/- 6.04e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.79e-05

TS (Fixed Index): 1.69
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198517/likelihoodResults_316569601_316828801_4FGL_J2207.6+0053_daily_bin298.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) = 5606.97587805
delta logL = 1.03829044846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5606.94521755
delta logL = 1.06895094321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1764       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8212       1.0000          .0000       10.000    
     3 'Normalizat'    .35258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1108       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=   5606.945     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1451        45.780        .49303E-02    .28173E-03
   2  Index         3.8250        2.7391        .98428E-01    .15112E-03
   3  Normalizat    .35245        .84197E-01    .11361        .54251E-04
   4  Prefactor     1.1107        .46589E-01    .37190E-01   -.61518E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1451
  Index      = 3.82501
  Normalizat = 0.352448
  Prefactor  = 1.11074
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.945     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1451        71.392        .87466E-04   -1.5301    
   2  Index         3.8250        3.6460        .38568E-02   -.23722    
   3  Normalizat    .35245        .26719        .50308E-03   -1.1984    
   4  Prefactor     1.1107        .15392        .16876E-03   -.89124    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.85815e-10
Minuit parameter uncertainties:
  1  34.4528
  2  4.12312
  3  0.268161
  4  0.153981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198517': 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) = 5606.9452095
delta logL = 1.06895899879

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  4.145e+00  3.445e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.825e+00  4.123e+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.111e+00  1.540e-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:  3.524e-01  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 331.914 0.891
Photon Index (Free Index): 3.83 +/- 4.12
Photon Flux (Free Index): 1.27e-07 +/- 7.91e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.95e-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/198517/cmap_HighResolution_316569601_316828801_4FGL_J2207.6+0053_daily_bin298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='6.49e-08', energy_flux2='1.97e-05', photon_flux_error='6.04e-08', dlogl='1.07e+00', energy_flux='1.92e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-28 06:03:31.838957', photon_index_error2='4.12', photon_index2='3.83', ts='1.69', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.95e-05', EG='0.44', time_epoch_completed='1632834211.84', return_code='0', job_id='198517', GAL2='1.11', EG2='0.35', return_code2='102', energy_flux_error='1.79e-05', photon_flux_error2='7.91e-08', ts2='4.25', photon_index='2.48' WHERE bin_id='298' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:03:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 198517: <4FGL_J2207.6+0053_daily_bin298> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin298> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:50:37 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:50:38 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:38 2021
Terminated at Tue Sep 28 06:03:32 2021
Results reported at Tue Sep 28 06:03:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin298 331.914 0.8907 316569601 316828801 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 :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            775 sec.

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

