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


Performing analysis on: 4FGL_J2207.6+0053_weekly_bin734
RA = 331.914, Dec = 0.8907
tmin = 682905601, tmax = 683510401
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='341266', job_status='RUN', time_executed='2022-09-17 05:23:03.177956', time_epoch_executed='1663417383.18' WHERE source_name='4FGL J2207.6+0053' and cadence='weekly' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341266

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341266/ft1_4FGL_J2207.6+0053_weekly_bin734.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341266/ft2_4FGL_J2207.6+0053_weekly_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341266/ft1_4FGL_J2207.6+0053_weekly_bin734.fits outfile=/scratch/kocevski/341266/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin734.fits ra=331.914 dec=0.8907 rad=12.0 tmin=682905601.0 tmax=683510401.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 7.96
user 7.62
sys 0.29

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

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

Number of photons that the gtmktime cut: 1190

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341266/ft1_filtered_4FGL_J2207.6+0053_weekly_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/341266/ft2_4FGL_J2207.6+0053_weekly_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/341266/ltcube_682905601_683510401_4FGL_J2207.6+0053_weekly_bin734.fits outfile=/scratch/kocevski/341266/expmap_682905601_683510401_4FGL_J2207.6+0053_weekly_bin734.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/341266/ltcube_682905601_683510401_4FGL_J2207.6+0053_weekly_bin734.fits
.....................!
real 156.40
user 151.90
sys 3.94

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/341266/ft1_filtered_4FGL_J2207.6+0053_weekly_bin734.fits scfile=/scratch/kocevski/341266/ft2_4FGL_J2207.6+0053_weekly_bin734.fits outfile=/scratch/kocevski/341266/cmap_682905601_683510401_4FGL_J2207.6+0053_weekly_bin734.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341266/ft1_filtered_4FGL_J2207.6+0053_weekly_bin734.fits scfile=/scratch/kocevski/341266/ft2_4FGL_J2207.6+0053_weekly_bin734.fits outfile=/scratch/kocevski/341266/cmap_HighResolution_682905601_683510401_4FGL_J2207.6+0053_weekly_bin734.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.889       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.586       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.6682       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19551E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .41937E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .34945       1.0000          .0000       .10000E+07
     7 'norm      '    3.9004       1.0000          .0000       .10000E+07
     8 'Prefactor '    .26513E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.0481       1.0000          .0000       .10000E+07
    10 'Prefactor '    .59397E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    20.904       1.0000          .0000       .10000E+07
    12 'Prefactor '    28.493       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25741E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10776E-04   1.0000          .0000       .10000E+07
    15 'norm      '    2.0222       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10580E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    .89752       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90776       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=   13035.29     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1141 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.639        4.8052        .96775E-06    .87075E-01
   2  Prefactor     10.282        30.546       -.87696E-05    .23792E-01
   3  Prefactor     2.6754        1.7344        .40264E-07   -.35422E-02
   4  Prefactor     .15210E-07    7.0208       -.31390E-06** at limit **
   5  Prefactor     .49960E-09    32.593       -.27600E-05** at limit **
   6  norm          .35599        1.4212       -.13672E-05   -.14375E-02
   7  norm          3.7824        1.2189        .84585E-07    .35038E-01
   8  Prefactor     .16653E-09    3.6537        .13441E-05** at limit **
   9  Prefactor     7.0171        6.1708        .12776E-05    .60135E-02
  10  Prefactor     .14821E-07    3.5174        .10480E-05** at limit **
  11  Prefactor     21.246        3.4512       -.46230E-06   -.17175    
  12  Prefactor     28.472        3.9488       -.20890E-06    .13662    
  13  Prefactor     .46907E-07    4.2114        .34590E-05** at limit **
  14  Prefactor      .0000        1.8952        .39699E-06** at limit **
  15  norm          2.0219        2.2378        .87479E-06   -.19376E-02
  16  Prefactor     .10000E-03    .98144       -.19914E-05** at limit **
  17  Prefactor     .25480E-07    20.942        .55569E-06** at limit **
  18  Normalizat    .89745        .17363        .84057E-05   -.10523E-03
  19  Prefactor     .90785        .96669E-01   -.15337E-05   -.25625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6392
  Prefactor  = 10.2822
  Prefactor  = 2.67536
  Prefactor  = 1.52101e-08
  Prefactor  = 4.996e-10
  norm       = 0.355986
  norm       = 3.78239
  Prefactor  = 1.66533e-10
  Prefactor  = 7.01713
  Prefactor  = 1.48215e-08
  Prefactor  = 21.2463
  Prefactor  = 28.4724
  Prefactor  = 4.69069e-08
  Prefactor  = 0
  norm       = 2.02194
  Prefactor  = 0.0001
  Prefactor  = 2.54796e-08
  Normalizat = 0.897446
  Prefactor  = 0.907847
 **********
 **   18 **HESSE 
 **********

 FCN=   13035.29     FROM HESSE     STATUS=OK           310 CALLS     1451 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.639        20.410        .23017E-03   -1.5622    
   2  Prefactor     10.282        32.600        .30770E-03   -1.5644    
   3  Prefactor     2.6754        1.7706        .62367E-03   -1.5675    
   4  Prefactor     .15210E-07    7.1298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .49960E-09    31.897        .15877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .35599        1.0685        .31373E-02   -1.5696    
   7  norm          3.7824        8.4850        .51063E-03   -1.5669    
   8  Prefactor     .16653E-09    3.6750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0171        6.2056        .37763E-03   -1.5655    
  10  Prefactor     .14821E-07    3.6636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.246        12.884        .21878E-03   -1.5616    
  12  Prefactor     28.472        10.054        .18737E-03   -1.5601    
  13  Prefactor     .46907E-07    4.6354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.8656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0219        2.2547        .72741E-03   -1.5680    
  16  Prefactor     .10000E-03    .97502        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .25480E-07    21.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .89745        .15099        .72089E-01   -.96550    
  19  Prefactor     .90785        .81146E-01    .45104E-01   -.95867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76541e-07
Minuit parameter uncertainties:
  1  20.4105
  2  32.6004
  3  1.77059
  4  0.000659165
  5  0.000248445
  6  1.06848
  7  8.48505
  8  5.12958e-05
  9  6.20556
  10  0.000466133
  11  12.884
  12  10.0537
  13  0.000932865
  14  1.07827e-05
  15  2.25468
  16  8.27893e-06
  17  0.00146403
  18  0.151063
  19  0.0811571
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.125e+01  1.288e+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:  9.078e-01  8.116e-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:  8.974e-01  1.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 9.26e-06

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) = 13035.1378882
delta logL = 0.150544228978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13035.1234463
delta logL = 0.164986178315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.666       1.0000          .0000       .10000E+07
     2 'Index     '    2.8130       1.0000          .0000       10.000    
     3 'Normalizat'    .88065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91433       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=   13035.12     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      251 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.666        153.11        .26128E-03    .15962E-01
   2  Index         2.8130        2.9185        .12841        .41391E-03
   3  Normalizat    .88065        .63952E-01    .72696E-01    .27920E-03
   4  Prefactor     .91432        .30440E-01    .45187E-01   -.51104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6661
  Index      = 2.81298
  Normalizat = 0.880655
  Prefactor  = 0.914325
 **********
 **   18 **HESSE 
 **********

 FCN=   13035.12     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.666        18.603        .10451E-04   -1.5631    
   2  Index         2.8130        .75621        .67595E-02   -.45271    
   3  Normalizat    .88065        .17532        .32168E-03   -.97143    
   4  Prefactor     .91432        .97889E-01    .17852E-03   -.95642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52799e-09
Minuit parameter uncertainties:
  1  18.6027
  2  0.759823
  3  0.175431
  4  0.0979077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341266': 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) = 13035.1234463
delta logL = 0.164986180085

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.467e+01  1.860e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.813e+00  7.598e-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:  9.143e-01  9.791e-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:  8.807e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.81 +/- 0.76
Photon Flux (Free Index): 6.37e-08 +/- 4.00e-08
Energy Flux (Free Index): 1.41e-05 +/- 8.84e-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/341266/cmap_HighResolution_682905601_683510401_4FGL_J2207.6+0053_weekly_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='1.41e-05', photon_flux_error='3.13e-08', dlogl='1.65e-01', energy_flux='1.53e-05', photon_flux2='6.37e-08', job_status='DONE', time_completed='2022-09-17 05:33:21.556325', photon_index_error2='0.76', photon_index2='2.81', ts='4.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='8.84e-06', EG='0.90', time_epoch_completed='1663418001.56', return_code='0', job_id='341266', GAL2='0.91', EG2='0.88', return_code2='0', energy_flux_error='9.26e-06', photon_flux_error2='4.00e-08', ts2='4.42', photon_index='2.48' WHERE bin_id='734' AND source_name='4FGL J2207.6+0053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 05:33:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 341266: <4FGL_J2207.6+0053_weekly_bin734> in cluster <slac> Done

Job <4FGL_J2207.6+0053_weekly_bin734> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 17 05:20:22 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 05:20:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 05:20:42 2022
Terminated at Sat Sep 17 05:33:22 2022
Results reported at Sat Sep 17 05:33:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_weekly_bin734 331.914 0.8907 682905601 683510401 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 :                                   617.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            780 sec.

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

