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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1732
RA = 336.414, Dec = 21.3418
tmin = 688262401, tmax = 688521601
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='647633', job_status='RUN', time_executed='2022-10-27 00:37:10.622070', time_epoch_executed='1666856230.62' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647633

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647633/ft1_4FGL_J2225.6+2120_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647633/ft1_4FGL_J2225.6+2120_daily_bin1732.fits outfile=/scratch/kocevski/647633/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1732.fits ra=336.414 dec=21.3418 rad=12.0 tmin=688262401.0 tmax=688521601.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.54
user 3.28
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.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/647633/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1732.fits evtable="EVENTS" outfile="/scratch/kocevski/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.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.32
sys 0.16

Number of photons that the gtmktime cut: 974

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/647633/ltcube_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.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/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits
.....................!
real 12.12
user 11.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/647633/ltcube_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.fits outfile=/scratch/kocevski/647633/expmap_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.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/647633/ltcube_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.fits
.....................!
real 192.01
user 185.39
sys 5.76

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.6+2120 @ 336.414 21.3418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.fits scfile=/scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits outfile=/scratch/kocevski/647633/cmap_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.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.414 yref=21.3418 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/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.fits scfile=/scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits outfile=/scratch/kocevski/647633/cmap_HighResolution_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.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.414 yref=21.3418 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647633/Model_4FGL_J2225.6+2120_daily_bin1732.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/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.fits.....................!
real 98.90
user 97.11
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.fits', '/scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits', expMap='/scratch/kocevski/647633/expmap_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.fits', expCube='/scratch/kocevski/647633/ltcube_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647633/Model_4FGL_J2225.6+2120_daily_bin1732.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.6+2120'

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.284e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/647633/ft1_filtered_4FGL_J2225.6+2120_daily_bin1732.fits
Spacecraft file(s): /scratch/kocevski/647633/ft2_4FGL_J2225.6+2120_daily_bin1732.fits
Exposure map: /scratch/kocevski/647633/expmap_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.fits
Exposure cube: /scratch/kocevski/647633/ltcube_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647633/Model_4FGL_J2225.6+2120_daily_bin1732.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) = 9960.51930916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89867       1.0000          .0000       .10000E+07
     2 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9220       1.0000          .0000       .10000E+07
     4 'norm      '     .0000       1.0000          .0000       .10000E+07
     5 'Prefactor '    37.060       1.0000          .0000       .10000E+07
     6 'norm      '    .82984       1.0000          .0000       .10000E+07
     7 'Prefactor '    33.986       1.0000          .0000       .10000E+07
     8 'norm      '    .99920E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .31697E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.3917       1.0000          .0000       .10000E+07
    11 'Prefactor '    .76289       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8370       1.0000         .10000E-03   10000.    
    13 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
    14 'norm      '    1.5595       1.0000          .0000       .10000E+07
    15 'Prefactor '    .42184E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .29491E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.4816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75939E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    17.325       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0866       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99629       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9960.507     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1412 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33867E-06    1693.0        .38506E-04** at limit **
   2  norm           .0000        .71372        .10642E-07** at limit **
   3  Prefactor     2.4276        68.974       -.35231E-06    .14842E-02
   4  norm           .0000        .44906        .24995E-08** at limit **
   5  Prefactor     37.979        56.712       -.13500E-05    .10589E-02
   6  norm          .83045        .89794        .13043E-07   -.10070E-02
   7  Prefactor     33.944        17.900       -.36119E-06   -.36210E-01
   8  norm           .0000        1.7966       -.46637E-07** at limit **
   9  Prefactor     .12723E-06    17.796        .57330E-06** at limit **
  10  Prefactor     9.4014        13.017        .27266E-06   -.39191E-03
  11  Prefactor     .76268        .23900       -.41200E-07    .10024E-02
  12  Prefactor     9.8668        9.5205       -.58517E-06    .15331E-03
  13  norm           .0000        .18468        .30432E-07** at limit **
  14  norm          1.5593        1.1167       -.23445E-07    .27885E-02
  15  Prefactor     .74662E-07    16.775       -.61546E-06** at limit **
  16  Prefactor     .61062E-09    7.0268        .40748E-06** at limit **
  17  Prefactor     3.4815        .30872        .10120E-07    .29916E-03
  18  Prefactor      .0000        3.2548        .55670E-07** at limit **
  19  Prefactor     17.266        8.5666        .37066E-06   -.72687E-01
  20  Normalizat    1.0867        .27332       -.18642E-06   -.30691E-03
  21  Prefactor     .99641        .13081        .27171E-07   -.93605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.38674e-07
  norm       = 0
  Prefactor  = 2.42763
  norm       = 0
  Prefactor  = 37.9789
  norm       = 0.830447
  Prefactor  = 33.9441
  norm       = 0
  Prefactor  = 1.27232e-07
  Prefactor  = 9.40139
  Prefactor  = 0.762675
  Prefactor  = 9.86679
  norm       = 0
  norm       = 1.55931
  Prefactor  = 7.46625e-08
  Prefactor  = 6.10623e-10
  Prefactor  = 3.4815
  Prefactor  = 0
  Prefactor  = 17.266
  Normalizat = 1.08666
  Prefactor  = 0.996409
 **********
 **   18 **HESSE 
 **********

 FCN=   9960.507     FROM HESSE     STATUS=OK           361 CALLS     1773 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33867E-06    1692.2        .45852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .71071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4276        68.391        .59404E-03   -1.5677    
   4  norm           .0000        .43538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.979        57.112        .16428E-03   -1.5585    
   6  norm          .83045        .90643        .50736E-03   -1.5690    
   7  Prefactor     33.944        18.933        .17155E-03   -1.5591    
   8  norm           .0000        1.7968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12723E-06    18.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4014        12.927        .32677E-03   -1.5647    
  11  Prefactor     .76268        .23993        .58615E-02   -1.5533    
  12  Prefactor     9.8668        9.5087        .31941E-02   -1.5080    
  13  norm           .0000        .18378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5593        1.1040        .85186E-03   -1.5683    
  15  Prefactor     .74662E-07    17.354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .61062E-09    7.0059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4815        .30812        .35702E-02   -1.5335    
  18  Prefactor      .0000        3.2540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.266        20.294        .24035E-03   -1.5625    
  20  Normalizat    1.0867        .22902        .87025E-01   -.90181    
  21  Prefactor     .99641        .10880        .46221E-01   -.92849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56072e-07
Minuit parameter uncertainties:
  1  0.0478916
  2  8.43479e-06
  3  25.7706
  4  2.11692e-06
  5  57.1131
  6  0.906426
  7  18.9331
  8  3.66797e-06
  9  0.00307514
  10  12.927
  11  0.239931
  12  9.5102
  13  1.36341e-06
  14  1.10396
  15  0.0022763
  16  0.000129619
  17  0.308124
  18  1.24835e-05
  19  20.2943
  20  0.229228
  21  0.108821
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  9.401e+00  1.293e+01  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.964e-01  1.088e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.087e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647633/likelihoodResults_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.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) = 9960.37214142
delta logL = 0.135188648997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9960.34884949
delta logL = 0.158480569571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8484       1.0000          .0000       .10000E+07
     2 'Index     '    3.4505       1.0000          .0000       10.000    
     3 'Normalizat'    1.0608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0055       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   9960.349     FROM MIGRAD    STATUS=FAILED        96 CALLS      253 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8400        14.296        .76631E-04   -.10429E-02
   2  Index         3.4508        1.5666        .13179E-01    .45984E-03
   3  Normalizat    1.0608        .26749        .38948E-03   -.94047E-04
   4  Prefactor     1.0055        .13174        .20087E-03   -.65834E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9960.349     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      329 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8400        14.296        .19614E-04   -1.5656    
   2  Index         3.4508        1.5666        .12418E-02   -.31503    
   3  Normalizat    1.0608        .26749        .30486E-03   -.91021    
   4  Prefactor     1.0055        .13174        .21899E-03   -.92547    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9960.349     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      362 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8400        11.475        .30652E-05   -.37089E-03
   2  Index         3.4508        1.2646        .26358E-02   -.83675E-06
   3  Normalizat    1.0608        .26807        .15579E-04   -.13719E-04
   4  Prefactor     1.0055        .13190        .40174E-04   -.98480E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83998
  Index      = 3.45077
  Normalizat = 1.06079
  Prefactor  = 1.00549
 **********
 **   18 **HESSE 
 **********

 FCN=   9960.349     FROM HESSE     STATUS=OK            23 CALLS      385 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8400        11.134        .12261E-06   -1.5656    
   2  Index         3.4508        1.2279        .10543E-03   -.31503    
   3  Normalizat    1.0608        .26804        .31159E-05   -.91021    
   4  Prefactor     1.0055        .13188        .80347E-05   -.92547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89298e-12
Minuit parameter uncertainties:
  1  11.1343
  2  1.24202
  3  0.268378
  4  0.131919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647633': 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) = 9960.34884906
delta logL = 0.158481002429

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.840e+00  1.113e+01  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  3.451e+00  1.242e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.005e+00  1.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.061e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 336.414 21.342
Photon Index (Free Index): 3.45 +/- 1.24
Photon Flux (Free Index): 5.53e-08 +/- 6.34e-08
Energy Flux (Free Index): 9.32e-06 +/- 1.06e-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/647633/cmap_HighResolution_688262401_688521601_4FGL_J2225.6+2120_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', energy_flux2='9.32e-06', dlogl='1.58e-01', photon_flux2='5.53e-08', job_status='DONE', time_completed='2022-10-27 00:49:03.352047', photon_index_error2='1.24', photon_index2='3.45', ts='0.67', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.06e-05', EG='1.09', time_epoch_completed='1666856943.35', return_code='0', job_id='647633', GAL2='1.01', EG2='1.06', return_code2='0', photon_flux_error2='6.34e-08', ts2='1.02', photon_index='2.81' WHERE bin_id='1732' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:49:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 647633: <4FGL_J2225.6+2120_daily_bin1732> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:35:42 2022
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:35:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:35:43 2022
Terminated at Thu Oct 27 00:49:04 2022
Results reported at Thu Oct 27 00:49:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1732 336.414 21.3418 688262401 688521601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.6+2120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   713.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

