aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 71 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17510
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2207.6+0053_weekly_bin759
RA = 331.914, Dec = 0.8907
tmin = 698025601, tmax = 698630401
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='607982', job_status='RUN', time_executed='2023-02-21 04:41:44.017038', time_epoch_executed='1676983304.02' WHERE source_name='4FGL J2207.6+0053' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607982

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607982/ft1_4FGL_J2207.6+0053_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607982/ft2_4FGL_J2207.6+0053_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607982/ft1_4FGL_J2207.6+0053_weekly_bin759.fits outfile=/scratch/kocevski/607982/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin759.fits ra=331.914 dec=0.8907 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.58
user 8.25
sys 0.27

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

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

Number of photons that the gtmktime cut: 1080

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607982/ft1_filtered_4FGL_J2207.6+0053_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/607982/ft2_4FGL_J2207.6+0053_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/607982/ltcube_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.fits outfile=/scratch/kocevski/607982/expmap_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.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/607982/ltcube_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.fits
.....................!
real 190.87
user 186.58
sys 3.91

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/607982/ft1_filtered_4FGL_J2207.6+0053_weekly_bin759.fits scfile=/scratch/kocevski/607982/ft2_4FGL_J2207.6+0053_weekly_bin759.fits outfile=/scratch/kocevski/607982/cmap_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607982/ft1_filtered_4FGL_J2207.6+0053_weekly_bin759.fits scfile=/scratch/kocevski/607982/ft2_4FGL_J2207.6+0053_weekly_bin759.fits outfile=/scratch/kocevski/607982/cmap_HighResolution_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/607982/ft1_filtered_4FGL_J2207.6+0053_weekly_bin759.fits', '/scratch/kocevski/607982/ft2_4FGL_J2207.6+0053_weekly_bin759.fits', expMap='/scratch/kocevski/607982/expmap_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.fits', expCube='/scratch/kocevski/607982/ltcube_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/607982/Model_4FGL_J2207.6+0053_weekly_bin759.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  0.000e+00  1.000e+06 ( 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/607982/ft1_filtered_4FGL_J2207.6+0053_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/607982/ft2_4FGL_J2207.6+0053_weekly_bin759.fits
Exposure map: /scratch/kocevski/607982/expmap_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.fits
Exposure cube: /scratch/kocevski/607982/ltcube_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/607982/Model_4FGL_J2207.6+0053_weekly_bin759.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) = 12492.2074059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3367       1.0000          .0000       .10000E+07
     2 'Prefactor '    41.433       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.3338       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14887       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16079E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .19990E-06   1.0000          .0000       .10000E+07
     7 'norm      '    15.055       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17001E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    13.587       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.8958       1.0000          .0000       .10000E+07
    11 'Prefactor '    24.309       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.5231       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.269       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11524E-04   1.0000          .0000       .10000E+07
    15 'norm      '    5.4562       1.0000          .0000       .10000E+07
    16 'Prefactor '    .36630       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .70166E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    .75295       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0350       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12492.14     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1455 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5219        4.5699        .82210E-07    .77473E-02
   2  Prefactor     42.593        54.393        .29675E-06   -.73097E-04
   3  Prefactor     3.2992        2.8955        .33211E-07    .17086E-02
   4  Prefactor     .23370E-07    155.40       -.65945E-05** at limit **
   5  Prefactor     .16653E-09    13.206        .22434E-06** at limit **
   6  norm           .0000        .89384        .13976E-06** at limit **
   7  norm          15.204        15.009        .10522E-05    .30810E-03
   8  Prefactor      .0000        9.4819        .14376E-06** at limit **
   9  Prefactor     13.607        8.6299       -.19830E-06    .46414E-03
  10  Prefactor     3.9050        11.354        .36034E-05    .11898E-02
  11  Prefactor     24.313        6.0961        .82474E-06    .11451E-02
  12  Prefactor     3.5379        11.254       -.12048E-05    .51124E-03
  13  Prefactor     11.265        10.266       -.28610E-06    .67299E-03
  14  Prefactor      .0000        1.4181       -.21223E-07** at limit **
  15  norm          5.4129        4.0875        .13468E-06    .14802E-02
  16  Prefactor     .34415        11.651       -.29700E-05   -.31993E-04
  17  Prefactor      .0000        44.138       -.46655E-06** at limit **
  18  Normalizat    .75252        .21038       -.15116E-04    .19360E-03
  19  Prefactor     1.0349        .10987        .20357E-05    .27160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52188
  Prefactor  = 42.593
  Prefactor  = 3.29923
  Prefactor  = 2.33702e-08
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 15.2038
  Prefactor  = 0
  Prefactor  = 13.6065
  Prefactor  = 3.90503
  Prefactor  = 24.3126
  Prefactor  = 3.53787
  Prefactor  = 11.2651
  Prefactor  = 0
  norm       = 5.41287
  Prefactor  = 0.344146
  Prefactor  = 0
  Normalizat = 0.752523
  Prefactor  = 1.03493
 **********
 **   18 **HESSE 
 **********

 FCN=   12492.14     FROM HESSE     STATUS=OK           322 CALLS     1777 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5219        19.488        .32774E-03   -1.5646    
   2  Prefactor     42.593        55.028        .15537E-03   -1.5577    
   3  Prefactor     3.2992        3.0081        .55410E-03   -1.5672    
   4  Prefactor     .23370E-07    17.864        .15167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    13.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .88291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.204        15.014        .25787E-03   -1.5630    
   8  Prefactor      .0000        9.2857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.607        8.6364        .27148E-03   -1.5634    
  10  Prefactor     3.9050        14.810        .51094E-03   -1.5668    
  11  Prefactor     24.313        18.673        .20287E-03   -1.5609    
  12  Prefactor     3.5379        11.323        .53833E-03   -1.5670    
  13  Prefactor     11.265        10.271        .29818E-03   -1.5641    
  14  Prefactor      .0000        1.4166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4129        4.0878        .42993E-03   -1.5661    
  16  Prefactor     .34415        2.7579        .65196E-01   -1.5591    
  17  Prefactor      .0000        44.063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .75252        .18436        .89233E-01   -1.0185    
  19  Prefactor     1.0349        .94264E-01    .40882E-01   -.91574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63672e-09
Minuit parameter uncertainties:
  1  19.488
  2  55.0285
  3  3.00815
  4  0.00129283
  5  9.39794e-05
  6  2.6232e-06
  7  15.0141
  8  2.26054e-05
  9  8.63645
  10  14.8097
  11  18.6726
  12  11.3226
  13  10.2713
  14  6.3071e-06
  15  4.08777
  16  1.94829
  17  3.77544e-05
  18  0.184509
  19  0.094279
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.431e+01  1.867e+01  0.000e+00  1.000e+06 ( 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.035e+00  9.428e-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:  7.525e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.85
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.91e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/607982/likelihoodResults_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.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) = 12492.0547507
delta logL = 0.0823802072555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12492.0502472
delta logL = 0.0868837937232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.052       1.0000          .0000       .10000E+07
     2 'Index     '    2.7410       1.0000          .0000       10.000    
     3 'Normalizat'    .73673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0407       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=   12492.05     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      260 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.052        275.20        .22918E-03    .56659E-02
   2  Index         2.7413        3.4018        .13619        .21808E-03
   3  Normalizat    .73664        .77919E-01    .90111E-01   -.26901E-04
   4  Prefactor     1.0408        .34057E-01    .40488E-01   -.20565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.052
  Index      = 2.74135
  Normalizat = 0.736643
  Prefactor  = 1.04076
 **********
 **   18 **HESSE 
 **********

 FCN=   12492.05     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.052        22.791        .91673E-05   -1.5621    
   2  Index         2.7413        .75284        .81148E-02   -.46870    
   3  Normalizat    .73664        .20867        .39918E-03   -1.0246    
   4  Prefactor     1.0408        .11060        .18264E-03   -.91383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76209e-08
Minuit parameter uncertainties:
  1  22.7908
  2  0.756461
  3  0.208896
  4  0.110626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607982': 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) = 12492.0502465
delta logL = 0.0868844177839

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.905e+01  2.279e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.741e+00  7.565e-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:  1.041e+00  1.106e-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:  7.366e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.74 +/- 0.76
Photon Flux (Free Index): 7.27e-08 +/- 5.63e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.19e-05

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/607982/cmap_HighResolution_698025601_698630401_4FGL_J2207.6+0053_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='5.91e-08', energy_flux2='1.69e-05', photon_flux_error='4.54e-08', dlogl='8.69e-02', energy_flux='1.75e-05', photon_flux2='7.27e-08', job_status='DONE', time_completed='2023-02-21 04:55:11.412073', photon_index_error2='0.76', photon_index2='2.74', ts='2.85', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.19e-05', EG='0.75', time_epoch_completed='1676984111.41', return_code='0', job_id='607982', GAL2='1.04', EG2='0.74', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.63e-08', ts2='3.05', photon_index='2.48' WHERE bin_id='759' AND source_name='4FGL J2207.6+0053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 04:55:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 607982: <4FGL_J2207.6+0053_weekly_bin759> in cluster <slac> Done

Job <4FGL_J2207.6+0053_weekly_bin759> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 04:40:23 2023
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 04:40:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 04:40:23 2023
Terminated at Tue Feb 21 04:55:12 2023
Results reported at Tue Feb 21 04:55:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_weekly_bin759 331.914 0.8907 698025601 698630401 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 :                                   808.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             319.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

