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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1675
RA = 336.432, Dec = -4.9537
tmin = 673488001, tmax = 673747201
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='884146', job_status='RUN', time_executed='2022-05-09 01:30:05.787700', time_epoch_executed='1652085005.79' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884146

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884146/ft1_4FGL_J2225.7-0457_daily_bin1675.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884146/ft1_4FGL_J2225.7-0457_daily_bin1675.fits outfile=/scratch/kocevski/884146/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1675.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=673488001.0 tmax=673747201.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 2.58
user 2.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.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/884146/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1675.fits evtable="EVENTS" outfile="/scratch/kocevski/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.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.51
user 0.36
sys 0.13

Number of photons that the gtmktime cut: 640

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.fits" evtable="EVENTS" scfile=/scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits sctable="SC_DATA" outfile=/scratch/kocevski/884146/ltcube_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.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/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits
.....................!
real 15.85
user 15.42
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits sctable="SC_DATA" expcube=/scratch/kocevski/884146/ltcube_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.fits outfile=/scratch/kocevski/884146/expmap_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.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/884146/ltcube_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.fits
.....................!
real 192.16
user 187.03
sys 4.73

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/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.fits scfile=/scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits outfile=/scratch/kocevski/884146/cmap_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.fits scfile=/scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits outfile=/scratch/kocevski/884146/cmap_HighResolution_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884146/Model_4FGL_J2225.7-0457_daily_bin1675.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/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.fits....................!
real 67.06
user 65.52
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.fits', '/scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits', expMap='/scratch/kocevski/884146/expmap_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.fits', expCube='/scratch/kocevski/884146/ltcube_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/884146/Model_4FGL_J2225.7-0457_daily_bin1675.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/884146/ft1_filtered_4FGL_J2225.7-0457_daily_bin1675.fits
Spacecraft file(s): /scratch/kocevski/884146/ft2_4FGL_J2225.7-0457_daily_bin1675.fits
Exposure map: /scratch/kocevski/884146/expmap_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.fits
Exposure cube: /scratch/kocevski/884146/ltcube_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/884146/Model_4FGL_J2225.7-0457_daily_bin1675.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) = 7034.19056053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1733       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5194       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.415       1.0000         .10000E-03   10000.    
    12 'norm      '    .11448E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.339       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.098       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0249       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.533       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2593       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72102       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=   7034.187     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2197 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.888        .19127E-06** at limit **
   2  Prefactor     .10000E-03    2.3793       -.25206E-08** at limit **
   3  Prefactor     4.1730        9.0397        .10836E-05   -.66920E-05
   4  Prefactor     .10000E-03    3.9124       -.19763E-07** at limit **
   5  Prefactor     2.4802        11.858        .28732E-05   -.74407E-05
   6  Prefactor     .10000E-03    3.8214        .11811E-07** at limit **
   7  Prefactor     1.2854        24.542        .11347E-04   -.15005E-04
   8  Prefactor     6.5190        6.2497        .56169E-07    .33236E-04
   9  Prefactor     .10000E-03    58.866       -.13801E-05** at limit **
  10  Prefactor     4.2153        3.0157       -.74880E-08    .10776E-03
  11  Prefactor     19.391        36.733        .38991E-05   -.16019E-04
  12  norm          .10000E-03    1.9077       -.69408E-06** at limit **
  13  Prefactor     29.319        68.070        .42463E-05    .30903E-04
  14  norm          1.3647        .87736        .90579E-07    .30420E-03
  15  Prefactor     23.133        23.462        .28955E-06    .69468E-04
  16  norm          1.0200        1.5399       -.85727E-06    .16168E-03
  17  Prefactor     22.563        34.824        .17141E-05    .46024E-04
  18  Prefactor     .10000E-03    10.801        .92701E-07** at limit **
  19  norm          .10000E-03    12.373       -.20990E-06** at limit **
  20  Normalizat    1.2596        .19061       -.18274E-05    .13288E-03
  21  Prefactor     .72090        .11096        .52557E-06    .29544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17296
  Prefactor  = 0.0001
  Prefactor  = 2.48023
  Prefactor  = 0.0001
  Prefactor  = 1.28541
  Prefactor  = 6.51902
  Prefactor  = 0.0001
  Prefactor  = 4.21535
  Prefactor  = 19.3907
  norm       = 0.000100001
  Prefactor  = 29.3193
  norm       = 1.36467
  Prefactor  = 23.1335
  norm       = 1.02
  Prefactor  = 22.5626
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.25956
  Prefactor  = 0.720902
 **********
 **   18 **HESSE 
 **********

 FCN=   7034.187     FROM HESSE     STATUS=OK           321 CALLS     2518 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3974        .12631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1730        9.0096        .98644E-03   -1.5299    
   4  Prefactor     .10000E-03    3.9154        .16202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4802        11.887        .12981E-02   -1.5393    
   6  Prefactor     .10000E-03    3.8254        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2854        24.944        .19524E-02   -1.5481    
   8  Prefactor     6.5190        6.2427        .15718E-03   -1.5197    
   9  Prefactor     .10000E-03    59.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2153        3.0090        .11748E-03   -1.5297    
  11  Prefactor     19.391        36.632        .90900E-04   -1.4827    
  12  norm          .10000E-03    3.5695        .22005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.319        67.881        .73968E-04   -1.4624    
  14  norm          1.3647        .87072        .60257E-04   -1.5474    
  15  Prefactor     23.133        24.239        .83344E-04   -1.4746    
  16  norm          1.0200        1.5621        .88162E-03   -1.5506    
  17  Prefactor     22.563        35.629        .84381E-04   -1.4758    
  18  Prefactor     .10000E-03    10.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2596        .22199        .25759E-03   -.84782    
  21  Prefactor     .72090        .13155        .20212E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6268e-09
Minuit parameter uncertainties:
  1  1.09898e-05
  2  3.73104e-06
  3  9.0125
  4  1.23943e-06
  5  10.8629
  6  2.53808e-06
  7  11.3299
  8  6.2433
  9  3.01584e-05
  10  3.00909
  11  36.6747
  12  9.12347e-05
  13  68.0601
  14  0.870729
  15  24.2495
  16  1.56214
  17  35.663
  18  7.91644e-05
  19  8.6576e-06
  20  0.222154
  21  0.131607
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  4.215e+00  3.009e+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:  7.209e-01  1.316e-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:  1.260e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 9.57e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7033.75310297
delta logL = 0.433451164786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7033.72184381
delta logL = 0.464710322616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0639       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8711       1.0000          .0000       10.000    
     3 'Normalizat'    1.2779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71400       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=   7033.722     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0607        12.201        .44670E-02    .14857E-03
   2  Index         1.8701        1.3455        .24491       -.79543E-04
   3  Normalizat    1.2778        .18332        .57900E-01    .60683E-04
   4  Prefactor     .71404        .11138        .42587E-01    .14302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0607
  Index      = 1.87009
  Normalizat = 1.27779
  Prefactor  = 0.714039
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.722     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0607        3.7149        .13159E-03   -1.5258    
   2  Index         1.8701        .52908        .85012E-02   -.67639    
   3  Normalizat    1.2778        .21041        .25605E-03   -.84232    
   4  Prefactor     .71404        .12885        .20296E-03   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08124e-11
Minuit parameter uncertainties:
  1  3.71507
  2  0.530718
  3  0.210548
  4  0.128903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884146': 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) = 7033.72184174
delta logL = 0.46471239056

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  5.061e+00  3.715e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.870e+00  5.307e-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:  7.140e-01  1.289e-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:  1.278e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.28
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 1.87 +/- 0.53
Photon Flux (Free Index): 2.66e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.60e-05 +/- 2.91e-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/884146/cmap_HighResolution_673488001_673747201_4FGL_J2225.7-0457_daily_bin1675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='2.60e-05', photon_flux_error='3.02e-08', dlogl='4.65e-01', energy_flux='1.34e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2022-05-09 01:39:24.146148', photon_index_error2='0.53', photon_index2='1.87', ts='4.35', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.91e-05', EG='1.26', time_epoch_completed='1652085564.15', return_code='0', job_id='884146', GAL2='0.71', EG2='1.28', return_code2='0', energy_flux_error='9.57e-06', photon_flux_error2='2.56e-08', ts2='5.28', photon_index='2.43' WHERE bin_id='1675' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May  9 01:39:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 884146: <4FGL_J2225.7-0457_daily_bin1675> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1675> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon May  9 01:25:26 2022
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon May  9 01:26:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon May  9 01:26:23 2022
Terminated at Mon May  9 01:39:25 2022
Results reported at Mon May  9 01:39:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1675 336.432 -4.9537 673488001 673747201 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 :                                   560.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            839 sec.

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

