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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin1734
RA = 343.01, Dec = 40.5232
tmin = 688780801, tmax = 689040001
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='776505', job_status='RUN', time_executed='2022-11-02 00:37:14.583572', time_epoch_executed='1667374634.58' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776505/ft1_4FGL_J2252.0+4031_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776505/ft1_4FGL_J2252.0+4031_daily_bin1734.fits outfile=/scratch/kocevski/776505/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin1734.fits ra=343.01 dec=40.5232 rad=12.0 tmin=688780801.0 tmax=689040001.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.58
user 3.32
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.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/776505/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin1734.fits evtable="EVENTS" outfile="/scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.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.34
sys 0.15

Number of photons that the gtmktime cut: 1509

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/776505/ltcube_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.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/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits
.....................!
real 12.02
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/776505/ltcube_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.fits outfile=/scratch/kocevski/776505/expmap_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.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/776505/ltcube_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.fits
.....................!
real 192.56
user 186.56
sys 5.67

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 173 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2252.0+4031 @ 343.01 40.5232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.fits scfile=/scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits outfile=/scratch/kocevski/776505/cmap_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.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=343.01 yref=40.5232 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.fits scfile=/scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits outfile=/scratch/kocevski/776505/cmap_HighResolution_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.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=343.01 yref=40.5232 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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776505/Model_4FGL_J2252.0+4031_daily_bin1734.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.fits.....................!
real 178.87
user 177.37
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.fits', '/scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits', expMap='/scratch/kocevski/776505/expmap_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.fits', expCube='/scratch/kocevski/776505/ltcube_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/776505/Model_4FGL_J2252.0+4031_daily_bin1734.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2252.0+4031'

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  2.093e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/776505/ft1_filtered_4FGL_J2252.0+4031_daily_bin1734.fits
Spacecraft file(s): /scratch/kocevski/776505/ft2_4FGL_J2252.0+4031_daily_bin1734.fits
Exposure map: /scratch/kocevski/776505/expmap_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.fits
Exposure cube: /scratch/kocevski/776505/ltcube_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/776505/Model_4FGL_J2252.0+4031_daily_bin1734.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) = 14748.3317295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.262       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14120E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .81775       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.120       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.4393       1.0000          .0000       .10000E+07
     6 'Prefactor '    .75294E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .59091       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.769       1.0000          .0000       .10000E+07
     9 'norm      '    .29809E-07   1.0000          .0000       .10000E+07
    10 'norm      '    16.285       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.717       1.0000          .0000       .10000E+07
    12 'norm      '    .29976E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .12856E-01   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.0865       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .95030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14747.61     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      805 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.264        1.8793       -.24326E-07   -.62234E-02
   2  Prefactor     .55511E-09    9.5437       -.55507E-06** at limit **
   3  norm          .81699        2.5633       -.25455E-05   -.87155E-03
   4  Prefactor     12.225        1.4100        .17440E-06   -.73408E-02
   5  Prefactor     4.4297        5.2320        .79690E-06    .70451E-03
   6  Prefactor     .31641E-08    37.118        .36819E-05** at limit **
   7  norm          .59215        1.5595        .70761E-07   -.38287E-02
   8  Prefactor     11.949        12.319        .20459E-05    .54113E-02
   9  norm          .13878E-08    1.8168        .35692E-06** at limit **
  10  norm          16.237        1.0526       -.68512E-07    .45568E-01
  11  Prefactor     12.621        2.8776       -.45513E-06    .22551E-01
  12  norm           .0000        .69848        .31477E-06** at limit **
  13  Prefactor     .22204E-09    17.974       -.67719E-06** at limit **
  14  Normalizat    1.0860        .24664       -.38924E-04    .18386E-05
  15  Prefactor     .95034        .76333E-01    .89253E-05   -.59090E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.2637
  Prefactor  = 5.55112e-10
  norm       = 0.816986
  Prefactor  = 12.2255
  Prefactor  = 4.42972
  Prefactor  = 3.16414e-09
  norm       = 0.592148
  Prefactor  = 11.9491
  norm       = 1.38778e-09
  norm       = 16.2371
  Prefactor  = 12.6213
  norm       = 0
  Prefactor  = 2.22045e-10
  Normalizat = 1.08601
  Prefactor  = 0.95034
 **********
 **   18 **HESSE 
 **********

 FCN=   14747.61     FROM HESSE     STATUS=OK           216 CALLS     1021 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.264        1.8855        .17888E-03   -1.5596    
   2  Prefactor     .55511E-09    9.5531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .81699        2.5817        .51621E-03   -1.5690    
   4  Prefactor     12.225        14.516        .28749E-03   -1.5638    
   5  Prefactor     4.4297        5.2646        .47769E-03   -1.5666    
   6  Prefactor     .31641E-08    36.314        .14647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .59215        1.5720        .70046E-03   -1.5693    
   8  Prefactor     11.949        12.578        .29176E-03   -1.5639    
   9  norm          .13878E-08    1.8378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.237        9.8560        .24792E-03   -1.5627    
  11  Prefactor     12.621        14.218        .28064E-03   -1.5637    
  12  norm           .0000        .69890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22204E-09    17.974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.0860        .22220        .11279       -.90202    
  15  Prefactor     .95034        .67350E-01    .45643E-01   -.94404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67599e-07
Minuit parameter uncertainties:
  1  1.88552
  2  0.000146559
  3  2.58173
  4  14.5165
  5  5.26458
  6  0.000676596
  7  1.57201
  8  12.5783
  9  0.000100757
  10  9.85597
  11  14.2176
  12  6.04347e-06
  13  0.000125929
  14  0.222394
  15  0.0673563
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  4.430e+00  5.265e+00  0.000e+00  1.000e+06 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.503e-01  6.736e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.086e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 343.010 40.523
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.71e-05

TS (Fixed Index): 1.19
Ra Dec: 343.010 40.523
Photon Flux Upper Limit: 9.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776505/likelihoodResults_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.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) = 14745.8653059
delta logL = 1.74483441785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 14748.2027172
delta logL = -0.592576866929

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14745.17     FROM MIGRAD    STATUS=CONVERGED    279 CALLS      560 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 89.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25387E-05    .26928E-06    .18626E-10** at limit **
   2  Index         7.9075        .14735        .80557E-06   -.34905E-03
   3  Normalizat    .92259        .21895       -.91485E-07   -.45357E-03
   4  Prefactor     .98522        .68343E-01    .12909E-07   -.70049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53875e-06
  Index      = 7.90746
  Normalizat = 0.922591
  Prefactor  = 0.985216
 **********
 **   18 **HESSE 
 **********

 FCN=   14745.17     FROM HESSE     STATUS=OK            33 CALLS      593 TOTAL
                     EDM=   .29E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25387E-05    .16450E-05    .74902E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9075        .21688        .40404E-02    .62056    
   3  Normalizat    .92259        .24374        .53627E-03   -.95671    
   4  Prefactor     .98522        .76571E-01    .16628E-03   -.93224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00029189
Minuit parameter uncertainties:
  1  1.64496e-06
  2  0.216978
  3  0.244028
  4  0.0765793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776505': 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) = 14745.1661499
delta logL = 2.44399042948

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  2.539e-06  1.645e-06  0.000e+00  1.000e+06 ( 1.000e-13)
405        Index:  7.907e+00  2.170e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.852e-01  7.658e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.226e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.55
Ra Dec: 343.010 40.523
Photon Index (Free Index): 7.91 +/- 0.22
Photon Flux (Free Index): 1.44e-07 +/- 1.65e-07
Energy Flux (Free Index): 1.68e-05 +/- 1.93e-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/776505/cmap_HighResolution_688780801_689040001_4FGL_J2252.0+4031_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-03', comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='1.68e-05', photon_flux_error='2.79e-08', dlogl='2.44e+00', energy_flux='1.44e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2022-11-02 00:51:33.640947', photon_index_error2='0.22', photon_index2='7.91', ts='1.19', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.38e-08', energy_flux_error2='1.93e-05', EG='1.09', time_epoch_completed='1667375493.64', return_code='0', job_id='776505', GAL2='0.99', EG2='0.92', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='1.65e-07', ts2='6.55', photon_index='2.05' WHERE bin_id='1734' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:51:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 776505: <4FGL_J2252.0+4031_daily_bin1734> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin1734> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Nov  2 00:35:30 2022
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:35:31 2022
Terminated at Wed Nov  2 00:51:34 2022
Results reported at Wed Nov  2 00:51:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin1734 343.01 40.5232 688780801 689040001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2252.0+4031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   861.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

