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


Performing analysis on: 4FGL_J2252.0+4031_daily_bin1779
RA = 343.01, Dec = 40.5232
tmin = 700444801, tmax = 700704001
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='40384', job_status='RUN', time_executed='2023-03-17 02:37:06.134264', time_epoch_executed='1679045826.13' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40384/ft1_4FGL_J2252.0+4031_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40384/ft1_4FGL_J2252.0+4031_daily_bin1779.fits outfile=/scratch/kocevski/40384/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin1779.fits ra=343.01 dec=40.5232 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.32
user 5.08
sys 0.22

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

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

Number of photons that the gtmktime cut: 1269

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40384/ft1_filtered_4FGL_J2252.0+4031_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/40384/ltcube_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.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/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits
.....................!
real 12.36
user 11.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40384/ft1_filtered_4FGL_J2252.0+4031_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/40384/ltcube_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.fits outfile=/scratch/kocevski/40384/expmap_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.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/40384/ltcube_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.fits
.....................!
real 191.00
user 185.42
sys 5.07

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/40384/ft1_filtered_4FGL_J2252.0+4031_daily_bin1779.fits scfile=/scratch/kocevski/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits outfile=/scratch/kocevski/40384/cmap_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40384/ft1_filtered_4FGL_J2252.0+4031_daily_bin1779.fits scfile=/scratch/kocevski/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits outfile=/scratch/kocevski/40384/cmap_HighResolution_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/40384/ft1_filtered_4FGL_J2252.0+4031_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/40384/Model_4FGL_J2252.0+4031_daily_bin1779.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/40384/ft1_filtered_4FGL_J2252.0+4031_daily_bin1779.fits.....................!
real 153.95
user 152.41
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/40384/ft1_filtered_4FGL_J2252.0+4031_daily_bin1779.fits', '/scratch/kocevski/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits', expMap='/scratch/kocevski/40384/expmap_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.fits', expCube='/scratch/kocevski/40384/ltcube_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/40384/Model_4FGL_J2252.0+4031_daily_bin1779.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/40384/ft1_filtered_4FGL_J2252.0+4031_daily_bin1779.fits
Spacecraft file(s): /scratch/kocevski/40384/ft2_4FGL_J2252.0+4031_daily_bin1779.fits
Exposure map: /scratch/kocevski/40384/expmap_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.fits
Exposure cube: /scratch/kocevski/40384/ltcube_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/40384/Model_4FGL_J2252.0+4031_daily_bin1779.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) = 12899.0376028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9736       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.7831       1.0000          .0000       .10000E+07
     3 'norm      '    .37928E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10406E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.7613       1.0000          .0000       .10000E+07
     6 'Prefactor '    .59312       1.0000          .0000       .10000E+07
     7 'norm      '    .93448       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.0547       1.0000          .0000       .10000E+07
     9 'norm      '    3.4222       1.0000          .0000       .10000E+07
    10 'norm      '    18.366       1.0000          .0000       .10000E+07
    11 'Prefactor '    .43848E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .58176E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.6166       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3189       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .81505       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=   12898.96     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     1014 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9718        1.0466       -.36100E-07    .46541E-03
   2  Prefactor     3.7680        1.6848       -.68659E-07    .10528E-01
   3  norm           .0000        2.5827        .15002E-06** at limit **
   4  Prefactor      .0000        11.235        .20043E-06** at limit **
   5  Prefactor     4.7105        6.1047       -.15348E-06    .22537E-03
   6  Prefactor     .12602E-03    65.701       -.11990E-06** at limit **
   7  norm          .93463        1.0786       -.13676E-06   -.96843E-03
   8  Prefactor     7.9989        9.0065        .20221E-06    .26175E-02
   9  norm          3.4328        3.1974       -.11231E-06    .18098E-03
  10  norm          18.352        10.014       -.17308E-06   -.53955E-02
  11  Prefactor      .0000        5.6021        .16172E-06** at limit **
  12  norm           .0000        .57677       -.16586E-06** at limit **
  13  Prefactor     .12800E-04    292.42       -.41875E-06** at limit **
  14  Normalizat    1.3201        .21730        .72551E-05   -.12361E-04
  15  Prefactor     .81519        .67921E-01    .24617E-06    .56100E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.97183
  Prefactor  = 3.76804
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.71048
  Prefactor  = 0.000126015
  norm       = 0.934629
  Prefactor  = 7.99892
  norm       = 3.43278
  norm       = 18.3518
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.27998e-05
  Normalizat = 1.32009
  Prefactor  = 0.815185
 **********
 **   18 **HESSE 
 **********

 FCN=   12898.96     FROM HESSE     STATUS=OK           220 CALLS     1234 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9718        1.0676        .35484E-03   -1.5651    
   2  Prefactor     3.7680        13.545        .51877E-03   -1.5669    
   3  norm           .0000        2.5879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        11.347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7105        6.1328        .46086E-03   -1.5665    
   6  Prefactor     .12602E-03    14.728        .12874E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .93463        1.0875        .43405E-03   -1.5689    
   8  Prefactor     7.9989        9.0261        .35304E-03   -1.5651    
   9  norm          3.4328        3.1980        .54657E-03   -1.5671    
  10  norm          18.352        10.050        .23343E-03   -1.5622    
  11  Prefactor      .0000        5.6193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .57741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12800E-04    333.43        .63028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.3201        .19163        .88845E-01   -.82969    
  15  Prefactor     .81519        .59735E-01    .43913E-01   -.99171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18671e-08
Minuit parameter uncertainties:
  1  1.06762
  2  13.5455
  3  1.28125e-05
  4  2.26094e-05
  5  6.13276
  6  0.0861631
  7  1.08753
  8  9.02615
  9  3.19795
  10  10.0502
  11  9.56919e-06
  12  1.54052e-06
  13  0.130665
  14  0.191736
  15  0.0597393
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  4.710e+00  6.133e+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:  8.152e-01  5.974e-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.320e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/40384/likelihoodResults_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.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) = 12898.3712898
delta logL = 0.589132964216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12898.3651758
delta logL = 0.59524688497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4360       1.0000          .0000       .10000E+07
     2 'Index     '    2.9654       1.0000          .0000       10.000    
     3 'Normalizat'    1.2712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82234       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   12898.37     FROM MIGRAD    STATUS=FAILED        97 CALLS      304 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4330        42.591        .18009E-04    .20857E-02
   2  Index         2.9662        3.7990        .48960E-02    .10484E-02
   3  Normalizat    1.2712        .22931        .39958E-03   -.79663E-06
   4  Prefactor     .82233        .69273E-01    .15339E-03   -.13637E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12898.37     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      387 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4330        42.591        .16823E-04    .20857E-02
   2  Index         2.9662        3.7990        .83995E-03    .10484E-02
   3  Normalizat    1.2712        .22931        .24262E-03   -.79663E-06
   4  Prefactor     .82233        .69273E-01    .66791E-04   -.13637E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12898.37     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      418 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4330        4.1829        .36018E-05   -.82066E-04
   2  Index         2.9662        1.1878        .97920E-03    .40715E-04
   3  Normalizat    1.2712        .21998        .15983E-04   -.85354E-06
   4  Prefactor     .82233        .68389E-01    .30679E-04   -.13341E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43301
  Index      = 2.9662
  Normalizat = 1.27119
  Prefactor  = 0.822334
 **********
 **   18 **HESSE 
 **********

 FCN=   12898.37     FROM HESSE     STATUS=OK            25 CALLS      443 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4330        3.5476        .14407E-06   -1.5684    
   2  Index         2.9662        1.0104        .19584E-03   -.41890    
   3  Normalizat    1.2712        .21912        .31967E-05   -.84431    
   4  Prefactor     .82233        .68163E-01    .61357E-05   -.98910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42577e-14
Minuit parameter uncertainties:
  1  3.54759
  2  1.01879
  3  0.219283
  4  0.0681698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40384': 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) = 12898.3651754
delta logL = 0.59524730388

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.433e+00  3.548e+00  0.000e+00  1.000e+06 ( 1.000e-13)
405        Index:  2.966e+00  1.019e+00  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:  8.223e-01  6.817e-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.271e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 343.010 40.523
Photon Index (Free Index): 2.97 +/- 1.02
Photon Flux (Free Index): 6.83e-08 +/- 5.75e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.16e-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/40384/cmap_HighResolution_700444801_700704001_4FGL_J2252.0+4031_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='5.95e-01', photon_flux2='6.83e-08', job_status='DONE', time_completed='2023-03-17 02:50:13.481333', photon_index_error2='1.02', photon_index2='2.97', ts='0.72', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='1.16e-05', EG='1.32', time_epoch_completed='1679046613.48', return_code='0', job_id='40384', GAL2='0.82', EG2='1.27', return_code2='0', photon_flux_error2='5.75e-08', ts2='1.96', photon_index='2.05' WHERE bin_id='1779' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 02:50:13 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 40384: <4FGL_J2252.0+4031_daily_bin1779> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin1779> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Mar 17 02:35:16 2023
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 02:35:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 02:35:17 2023
Terminated at Fri Mar 17 02:50:14 2023
Results reported at Fri Mar 17 02:50:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin1779 343.01 40.5232 700444801 700704001 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 :                                   789.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

