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


Performing analysis on: 4FGL_J2207.6+0053_weekly_bin760
RA = 331.914, Dec = 0.8907
tmin = 698630401, tmax = 699235201
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='42564', job_status='RUN', time_executed='2023-02-28 02:31:09.342426', time_epoch_executed='1677580269.34' WHERE source_name='4FGL J2207.6+0053' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42564

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42564/ft1_4FGL_J2207.6+0053_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42564/ft2_4FGL_J2207.6+0053_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42564/ft1_4FGL_J2207.6+0053_weekly_bin760.fits outfile=/scratch/kocevski/42564/ft1_filteredMKT_4FGL_J2207.6+0053_weekly_bin760.fits ra=331.914 dec=0.8907 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.31
user 6.00
sys 0.26

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

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

Number of photons that the gtmktime cut: 550

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42564/ft1_filtered_4FGL_J2207.6+0053_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/42564/ft2_4FGL_J2207.6+0053_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/42564/ltcube_698630401_699235201_4FGL_J2207.6+0053_weekly_bin760.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/42564/ft2_4FGL_J2207.6+0053_weekly_bin760.fits
.....................!
real 31.97
user 31.38
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42564/ft1_filtered_4FGL_J2207.6+0053_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/42564/ft2_4FGL_J2207.6+0053_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/42564/ltcube_698630401_699235201_4FGL_J2207.6+0053_weekly_bin760.fits outfile=/scratch/kocevski/42564/expmap_698630401_699235201_4FGL_J2207.6+0053_weekly_bin760.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/42564/ltcube_698630401_699235201_4FGL_J2207.6+0053_weekly_bin760.fits
.....................!
real 191.66
user 186.60
sys 4.46

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/42564/ft1_filtered_4FGL_J2207.6+0053_weekly_bin760.fits scfile=/scratch/kocevski/42564/ft2_4FGL_J2207.6+0053_weekly_bin760.fits outfile=/scratch/kocevski/42564/cmap_698630401_699235201_4FGL_J2207.6+0053_weekly_bin760.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42564/ft1_filtered_4FGL_J2207.6+0053_weekly_bin760.fits scfile=/scratch/kocevski/42564/ft2_4FGL_J2207.6+0053_weekly_bin760.fits outfile=/scratch/kocevski/42564/cmap_HighResolution_698630401_699235201_4FGL_J2207.6+0053_weekly_bin760.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11337E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .89994E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .21293       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30600E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17512E-01   1.0000          .0000       .10000E+07
     6 'norm      '    4.2822       1.0000          .0000       .10000E+07
     7 'norm      '    .47840E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14721E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .93558       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12147E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .93534       1.0000          .0000       .10000E+07
    12 'Prefactor '    .85584E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .19024E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .23681E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .32401E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15560E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12890E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.4198       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=   6776.327     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     1184 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11657E-08    27.846        .13360E-06** at limit **
   2  Prefactor     .44409E-09    30.868       -.43073E-06** at limit **
   3  Prefactor     .24442        7.4800       -.70122E-06** at limit **
   4  Prefactor     .27756E-09    13.003       -.28378E-06** at limit **
   5  Prefactor     .61062E-09    34.045        .31725E-06** at limit **
   6  norm          4.2778        2.6914        .12362E-06    .67028E-02
   7  norm          .49960E-09    20.583       -.18513E-06** at limit **
   8  Prefactor     .55511E-10    5.3981        .76715E-07** at limit **
   9  Prefactor     1.0343        21.807        .16635E-05    .77200E-01
  10  Prefactor     .19762E-07    54.680       -.29862E-07** at limit **
  11  Prefactor     .83728E-02    4588.1       -.24974E-04** at limit **
  12  Prefactor     .22204E-09    16.124       -.16523E-06** at limit **
  13  Prefactor      .0000        5.2029        .11714E-07** at limit **
  14  Prefactor     .22204E-09    3.9564        .32100E-06** at limit **
  15  norm          .42744E-08    37.881        .29197E-06** at limit **
  16  Prefactor     .10000E-03    6.4423       -.65665E-05** at limit **
  17  Prefactor     .83439E-06    150.88        .14326E-05** at limit **
  18  Normalizat    .10000E-01    .15117        .13758E-06** at limit **
  19  Prefactor     1.4202        .79121E-01   -.24588E-05   -.15363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16573e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 0.24442
  Prefactor  = 2.77556e-10
  Prefactor  = 6.10623e-10
  norm       = 4.27778
  norm       = 4.996e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 1.03435
  Prefactor  = 1.9762e-08
  Prefactor  = 0.00837276
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  norm       = 4.27436e-09
  Prefactor  = 0.000100001
  Prefactor  = 8.34388e-07
  Normalizat = 0.01
  Prefactor  = 1.42019
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.327     FROM HESSE     STATUS=OK           308 CALLS     1492 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11657E-08    27.876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .44409E-09    30.910        .14206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .24442        1.6068        .57838E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27756E-09    13.056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61062E-09    33.883        .17206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2778        2.7196        .48662E-03   -1.5667    
   7  norm          .49960E-09    20.600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    5.4037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0343        87.181        .43331E-03   -1.5688    
  10  Prefactor     .19762E-07    55.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83728E-02    55.480        .10101E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    16.155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        5.2107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22204E-09    3.9964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .42744E-08    38.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .83439E-06    153.78        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .94561E-01    .32259       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4202        .99581E-01    .30793E-01   -.79800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05114e-06
Minuit parameter uncertainties:
  1  0.000358397
  2  0.000237001
  3  1.25337
  4  0.000123773
  5  0.000294021
  6  2.71959
  7  0.000198933
  8  2.86645e-05
  9  18.9925
  10  0.0020925
  11  1.36313
  12  0.00012289
  13  1.53327e-05
  14  5.96539e-05
  15  0.000809367
  16  0.000162521
  17  0.0226553
  18  1.99168e-07
  19  0.0995947
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  8.373e-03  1.363e+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

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  1.420e+00  9.959e-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:  1.000e-02  1.992e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/42564/likelihoodResults_698630401_699235201_4FGL_J2207.6+0053_weekly_bin760.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) = 6776.32751661
delta logL = -0.000473538882943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6776.32619521
delta logL = 0.000847859467285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5945       1.0000          .0000       .10000E+07
     2 'Index     '    2.1936       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4198       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6776.326     FROM MIGRAD    STATUS=FAILED        98 CALLS      283 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6464        308.75        .33588E-04   -.39761E-02
   2  Index         2.2026        6.0626        .31153E-01   -.31184E-03
   3  Normalizat    .10000E-01    .15104        .11779E-01** at limit **
   4  Prefactor     1.4195        .74264E-01    .16598E-03   -.31202E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6776.326     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      410 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6516        308.75        .40370E-05   -1.5682    
   2  Index         2.2040        6.0626        .34514E-03   -.59341    
   3  Normalizat    .10000E-01    .15104        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4195        .74264E-01    .50722E-08   -.79820    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6776.326     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      437 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6499        245.66        .13435E-05   -.24325E-04
   2  Index         2.2040        6.0981        .12461E-02    .13524E-04
   3  Normalizat    .10000E-01    .15110        .23557E-02** at limit **
   4  Prefactor     1.4195        .73981E-01    .33197E-04    .10747E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64989
  Index      = 2.20399
  Normalizat = 0.01
  Prefactor  = 1.41951
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.326     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6499        245.25        .37389E-06   -1.5682    
   2  Index         2.2040        6.0982        .24923E-03   -.59342    
   3  Normalizat    .10000E-01    .15110        .47115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4195        .73984E-01    .66393E-05   -.79820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02734e-10
Minuit parameter uncertainties:
  1  40.2325
  2  4.27947
  3  2.94007e-07
  4  0.0739891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42564': 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) = 6776.32618664
delta logL = 0.000856431145621

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.650e+00  4.023e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.204e+00  4.279e+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.420e+00  7.399e-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:  1.000e-02  2.940e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.914 0.891

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/42564/cmap_HighResolution_698630401_699235201_4FGL_J2207.6+0053_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', job_status='DONE', photon_flux_upper_limit='2.05e-07', time_completed='2023-02-28 02:41:06.483054', job_id='42564', GAL2='1.42', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677580866.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='8.56e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='760' AND source_name='4FGL J2207.6+0053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 02:41:06 PST 2023


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

Job <4FGL_J2207.6+0053_weekly_bin760> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Feb 28 02:30:20 2023
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 02:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 02:30:21 2023
Terminated at Tue Feb 28 02:41:07 2023
Results reported at Tue Feb 28 02:41:07 2023

Your job looked like:

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

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

