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 123 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1692
RA = 336.432, Dec = -4.9537
tmin = 677894401, tmax = 678153601
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='484288', job_status='RUN', time_executed='2022-06-29 04:56:51.805773', time_epoch_executed='1656503811.81' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484288

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484288/ft1_4FGL_J2225.7-0457_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484288/ft1_4FGL_J2225.7-0457_daily_bin1692.fits outfile=/scratch/kocevski/484288/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1692.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.50
user 4.23
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.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/484288/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 552

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/484288/ltcube_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.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/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits
.....................!
real 14.86
user 14.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/484288/ltcube_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.fits outfile=/scratch/kocevski/484288/expmap_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.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/484288/ltcube_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.fits
.....................!
real 191.67
user 186.07
sys 4.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 148 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.7-0457 @ 336.432 -4.9537

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.fits scfile=/scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits outfile=/scratch/kocevski/484288/cmap_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.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=336.432 yref=-4.9537 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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.fits scfile=/scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits outfile=/scratch/kocevski/484288/cmap_HighResolution_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.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=336.432 yref=-4.9537 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484288/Model_4FGL_J2225.7-0457_daily_bin1692.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/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.fits.....................!
real 58.37
user 56.99
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.fits', '/scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits', expMap='/scratch/kocevski/484288/expmap_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.fits', expCube='/scratch/kocevski/484288/ltcube_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484288/Model_4FGL_J2225.7-0457_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.7-0457'

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.714e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/484288/ft1_filtered_4FGL_J2225.7-0457_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/484288/ft2_4FGL_J2225.7-0457_daily_bin1692.fits
Exposure map: /scratch/kocevski/484288/expmap_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.fits
Exposure cube: /scratch/kocevski/484288/ltcube_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484288/Model_4FGL_J2225.7-0457_daily_bin1692.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) = 6152.0372022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.826       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6417       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3972       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28686E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.320       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4150       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.031       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.716       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8206       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.075       1.0000         .10000E-03   10000.    
    16 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9757       1.0000         .10000E-03   10000.    
    19 'norm      '    5.5146       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .60550       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0331       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6151.932     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2519 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.245        .10454E-07** at limit **
   2  Prefactor     14.835        9.8323        .18747E-06    .50442E-04
   3  Prefactor     6.6372        11.489        .39463E-06   -.47370E-05
   4  Prefactor     4.4016        16.219        .50620E-06   -.13538E-04
   5  Prefactor     .10000E-03    7.5838        .22014E-07** at limit **
   6  Prefactor     .10003E-03    13.437       -.16082E-06** at limit **
   7  Prefactor     23.170        13.661        .76805E-07   -.48515E-05
   8  Prefactor     32.306        15.208       -.12368E-05    .57517E-04
   9  Prefactor     .10000E-03    25.461       -.17445E-07** at limit **
  10  Prefactor     6.4154        6.0381        .34519E-05   -.10747E-02
  11  Prefactor     24.113        55.987        .29317E-05    .21416E-03
  12  norm          3.9533        3.2149       -.20577E-06   -.16061E-03
  13  Prefactor     16.701        110.83       -.66595E-05   -.28190E-04
  14  norm          2.8210        1.2681        .39276E-08   -.92806E-03
  15  Prefactor     11.043        16.181       -.22880E-05   -.83033E-03
  16  norm          .10000E-03    .72425        .14657E-05** at limit **
  17  Prefactor     47.992        43.092       -.13434E-05   -.67117E-03
  18  Prefactor     4.9902        14.950       -.13389E-06   -.23573E-03
  19  norm          5.5149        10.732        .37735E-06   -.11486E-04
  20  Normalizat    .60594        .22848       -.15150E-05   -.18941E-03
  21  Prefactor     1.0328        .13258        .50328E-07   -.35078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.8352
  Prefactor  = 6.63718
  Prefactor  = 4.40159
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 23.1698
  Prefactor  = 32.3058
  Prefactor  = 0.0001
  Prefactor  = 6.41537
  Prefactor  = 24.1133
  norm       = 3.95327
  Prefactor  = 16.7013
  norm       = 2.82101
  Prefactor  = 11.0429
  norm       = 0.0001
  Prefactor  = 47.9919
  Prefactor  = 4.99024
  norm       = 5.51493
  Normalizat = 0.60594
  Prefactor  = 1.03276
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.932     FROM HESSE     STATUS=OK           321 CALLS     2840 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.835        9.8152        .10402E-03   -1.4937    
   3  Prefactor     6.6372        11.388        .15571E-03   -1.5193    
   4  Prefactor     4.4016        16.201        .19206E-03   -1.5288    
   5  Prefactor     .10000E-03    7.6001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    88.610        .53699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.170        13.657        .83213E-04   -1.4745    
   8  Prefactor     32.306        15.126        .70482E-04   -1.4571    
   9  Prefactor     .10000E-03    25.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4154        5.7469        .77552E-03   -1.5201    
  11  Prefactor     24.113        56.081        .81712E-04   -1.4725    
  12  norm          3.9533        3.2104        .11965E-03   -1.5310    
  13  Prefactor     16.701        109.93        .97960E-04   -1.4890    
  14  norm          2.8210        1.2646        .56161E-04   -1.5372    
  15  Prefactor     11.043        15.933        .12038E-03   -1.5043    
  16  norm          .10000E-03    .98248        .12055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.992        42.926        .57870E-04   -1.4321    
  18  Prefactor     4.9902        14.886        .18029E-03   -1.5261    
  19  norm          5.5149        10.706        .17109E-03   -1.5238    
  20  Normalizat    .60594        .25281        .37024E-03   -1.0773    
  21  Prefactor     1.0328        .15118        .18096E-03   -.91645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92068e-09
Minuit parameter uncertainties:
  1  8.0543e-06
  2  9.81623
  3  11.3921
  4  16.2172
  5  6.46758e-06
  6  0.0032895
  7  13.6584
  8  15.1273
  9  2.66712e-05
  10  5.74744
  11  56.2042
  12  3.21049
  13  85.9266
  14  1.26459
  15  15.9388
  16  3.9206e-06
  17  42.9533
  18  14.8971
  19  10.71
  20  0.253297
  21  0.151243
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  6.415e+00  5.747e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.033e+00  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  6.059e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 5.76e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.83e-05

TS (Fixed Index): 2.05
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484288/likelihoodResults_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.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) = 6151.35176612
delta logL = 0.580183457318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6151.2162384
delta logL = 0.715711177251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6266       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3348       1.0000          .0000       10.000    
     3 'Normalizat'    .65124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0231       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6151.216     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6280        2.8058        .62908E-02   -.93049E-04
   2  Index         1.3345        .37679        .20002       -.80234E-04
   3  Normalizat    .65136        .20599        .80898E-01    .31711E-04
   4  Prefactor     1.0230        .12961        .41843E-01   -.35503E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62801
  Index      = 1.33453
  Normalizat = 0.651359
  Prefactor  = 1.02302
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.216     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6280        4.8989        .12441E-03   -1.5384    
   2  Index         1.3345        .72414        .79937E-02   -.82286    
   3  Normalizat    .65136        .23550        .35824E-03   -1.0585    
   4  Prefactor     1.0230        .14876        .18188E-03   -.91966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11498e-12
Minuit parameter uncertainties:
  1  4.89968
  2  0.729732
  3  0.23586
  4  0.148822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484288': 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) = 6151.21623747
delta logL = 0.715712116368

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.628e+00  4.900e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.335e+00  7.297e-01  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.023e+00  1.488e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  6.514e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.48
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 1.33 +/- 0.73
Photon Flux (Free Index): 1.09e-08 +/- 1.90e-08
Energy Flux (Free Index): 5.95e-05 +/- 8.15e-05

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/484288/cmap_HighResolution_677894401_678153601_4FGL_J2225.7-0457_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='5.95e-05', photon_flux_error='5.76e-08', dlogl='7.16e-01', energy_flux='2.04e-05', photon_flux2='1.09e-08', job_status='DONE', time_completed='2022-06-29 05:06:48.834398', photon_index_error2='0.73', photon_index2='1.33', ts='2.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='8.15e-05', EG='0.61', time_epoch_completed='1656504408.83', return_code='0', job_id='484288', GAL2='1.02', EG2='0.65', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='1.90e-08', ts2='3.48', photon_index='2.43' WHERE bin_id='1692' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:06:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 484288: <4FGL_J2225.7-0457_daily_bin1692> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1692> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jun 29 04:50:24 2022
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:54:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:54:38 2022
Terminated at Wed Jun 29 05:06:51 2022
Results reported at Wed Jun 29 05:06:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1692 336.432 -4.9537 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.7-0457 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.32 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             302.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            987 sec.

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

