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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1721
RA = 336.414, Dec = 21.3418
tmin = 685411201, tmax = 685670401
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='70658', job_status='RUN', time_executed='2022-09-24 01:13:20.176201', time_epoch_executed='1664007200.18' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70658/ft1_4FGL_J2225.6+2120_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70658/ft2_4FGL_J2225.6+2120_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70658/ft1_4FGL_J2225.6+2120_daily_bin1721.fits outfile=/scratch/kocevski/70658/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1721.fits ra=336.414 dec=21.3418 rad=12.0 tmin=685411201.0 tmax=685670401.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.30
user 4.96
sys 0.27

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

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

Number of photons that the gtmktime cut: 764

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70658/ft1_filtered_4FGL_J2225.6+2120_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/70658/ft2_4FGL_J2225.6+2120_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/70658/ltcube_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.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/70658/ft2_4FGL_J2225.6+2120_daily_bin1721.fits
.....................!
real 14.52
user 14.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70658/ft1_filtered_4FGL_J2225.6+2120_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/70658/ft2_4FGL_J2225.6+2120_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/70658/ltcube_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.fits outfile=/scratch/kocevski/70658/expmap_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.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/70658/ltcube_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.fits
.....................!
real 194.66
user 187.94
sys 5.87

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/70658/ft1_filtered_4FGL_J2225.6+2120_daily_bin1721.fits scfile=/scratch/kocevski/70658/ft2_4FGL_J2225.6+2120_daily_bin1721.fits outfile=/scratch/kocevski/70658/cmap_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.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.53
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70658/ft1_filtered_4FGL_J2225.6+2120_daily_bin1721.fits scfile=/scratch/kocevski/70658/ft2_4FGL_J2225.6+2120_daily_bin1721.fits outfile=/scratch/kocevski/70658/cmap_HighResolution_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.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.58
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70658/ft1_filtered_4FGL_J2225.6+2120_daily_bin1721.fits', '/scratch/kocevski/70658/ft2_4FGL_J2225.6+2120_daily_bin1721.fits', expMap='/scratch/kocevski/70658/expmap_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.fits', expCube='/scratch/kocevski/70658/ltcube_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70658/Model_4FGL_J2225.6+2120_daily_bin1721.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/70658/ft1_filtered_4FGL_J2225.6+2120_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/70658/ft2_4FGL_J2225.6+2120_daily_bin1721.fits
Exposure map: /scratch/kocevski/70658/expmap_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.fits
Exposure cube: /scratch/kocevski/70658/ltcube_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70658/Model_4FGL_J2225.6+2120_daily_bin1721.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) = 8423.91314348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58422       1.0000          .0000       .10000E+07
     2 'norm      '    .12623E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    22.821       1.0000          .0000       .10000E+07
     4 'norm      '    .59397E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .59497       1.0000          .0000       .10000E+07
     6 'norm      '    1.3665       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.028       1.0000          .0000       .10000E+07
     8 'norm      '    .19443E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46228E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7886       1.0000          .0000       .10000E+07
    11 'Prefactor '    .86935       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17354E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3187       1.0000          .0000       .10000E+07
    14 'norm      '    1.8465       1.0000          .0000       .10000E+07
    15 'Prefactor '    .53114E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    21.565       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.0069       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8949       1.0000          .0000       .10000E+07
    19 'Prefactor '    41.724       1.0000          .0000       .10000E+07
    20 'Normalizat'    .31563       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2447       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=   8423.912     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1710 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37741E-05    62.037        .26705E-05** at limit **
   2  norm          .11102E-09    3.3824        .59805E-06** at limit **
   3  Prefactor     22.967        26.468        .26679E-05   -.35517E-01
   4  norm          .38858E-09    2.1096        .29639E-06** at limit **
   5  Prefactor     .57067E-05    57.999       -.32851E-05** at limit **
   6  norm          1.3670        1.1030       -.26085E-06    .14144E-01
   7  Prefactor     22.105        2.0504        .17769E-06    .16583E-02
   8  norm           .0000        4.3310       -.26912E-06** at limit **
   9  Prefactor     .11102E-09    9.3177        .87140E-07** at limit **
  10  Prefactor     2.7940        8.9770       -.39179E-06   -.10484E-02
  11  Prefactor     .86930        .24738        .27867E-07    .57462E-02
  12  Prefactor     .10061E-03    11.667       -.41087E-04** at limit **
  13  norm          1.3184        1.0637        .93036E-07   -.29879E-02
  14  norm          1.8476        1.8165       -.13789E-06   -.18812E-02
  15  Prefactor      .0000        11.979       -.11726E-05** at limit **
  16  Prefactor     21.554        5.5471        .78512E-06   -.17311E-01
  17  Prefactor     4.0068        .36870       -.10098E-06    .49991E-02
  18  Prefactor     1.9137        11.236       -.48246E-05   -.17104E-01
  19  Prefactor     41.739        5.1020       -.38488E-06    .20802E-01
  20  Normalizat    .31541        .27074       -.38587E-04    .13472E-03
  21  Prefactor     1.2449        .13606        .14472E-04    .63466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77415e-06
  norm       = 1.11022e-10
  Prefactor  = 22.9672
  norm       = 3.88578e-10
  Prefactor  = 5.70666e-06
  norm       = 1.36699
  Prefactor  = 22.1047
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 2.79402
  Prefactor  = 0.869301
  Prefactor  = 0.000100609
  norm       = 1.31837
  norm       = 1.84764
  Prefactor  = 0
  Prefactor  = 21.5544
  Prefactor  = 4.00677
  Prefactor  = 1.91366
  Prefactor  = 41.7387
  Normalizat = 0.31541
  Prefactor  = 1.24487
 **********
 **   18 **HESSE 
 **********

 FCN=   8423.912     FROM HESSE     STATUS=OK           367 CALLS     2077 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37741E-05    86.409        .70653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11102E-09    3.3391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.967        34.403        .20938E-03   -1.5612    
   4  norm          .38858E-09    .58281        .26047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .57067E-05    90.348        .69680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3670        1.1215        .93295E-04   -1.5685    
   7  Prefactor     22.105        26.145        .21312E-03   -1.5614    
   8  norm           .0000        4.3270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    9.3357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7940        9.0794        .60905E-03   -1.5675    
  11  Prefactor     .86930        .25348        .52867E-02   -1.5521    
  12  Prefactor     .10061E-03    37.898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3184        1.0680        .95817E-03   -1.5685    
  14  norm          1.8476        1.8513        .76710E-03   -1.5681    
  15  Prefactor      .0000        11.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.554        13.675        .21540E-03   -1.5615    
  17  Prefactor     4.0068        .37817        .36272E-02   -1.5308    
  18  Prefactor     1.9137        20.902        .75545E-03   -1.5680    
  19  Prefactor     41.739        47.025        .15483E-03   -1.5579    
  20  Normalizat    .31541        .37947        .15883       -1.2193    
  21  Prefactor     1.2449        .17166        .33651E-01   -.84961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01101e-07
Minuit parameter uncertainties:
  1  0.0361181
  2  4.14055e-05
  3  34.4035
  4  2.90487e-05
  5  0.0454135
  6  1.1215
  7  26.1456
  8  2.02313e-05
  9  5.88622e-05
  10  9.07949
  11  0.25348
  12  0.00961453
  13  1.06799
  14  1.85133
  15  2.66265e-05
  16  13.6753
  17  0.37817
  18  12.649
  19  47.0254
  20  0.382619
  21  0.171736
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.794e+00  9.079e+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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.245e+00  1.717e-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:  3.154e-01  3.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70658/likelihoodResults_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.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) = 8423.80175796
delta logL = 0.110713355267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8423.78715141
delta logL = 0.125319906645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1845       1.0000          .0000       .10000E+07
     2 'Index     '    2.0853       1.0000          .0000       10.000    
     3 'Normalizat'    .32041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2422       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8423.787     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      233 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1787        11.775         .0000        .26734E-01
   2  Index         2.0857        .87899         .0000       -.95286E-05
   3  Normalizat    .32071        .31466         .0000       -.54030E-04
   4  Prefactor     1.2421        .16191         .0000        .28052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17872
  Index      = 2.08575
  Normalizat = 0.320713
  Prefactor  = 1.24205
 **********
 **   18 **HESSE 
 **********

 FCN=   8423.787     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1787        8.6865        .98487E-04   -1.5667    
   2  Index         2.0857        1.1534        .13902E-01   -.62223    
   3  Normalizat    .32071        .26507        .69637E-03   -1.2162    
   4  Prefactor     1.2421        .13622        .18759E-03   -.85047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12353e-09
Minuit parameter uncertainties:
  1  8.68656
  2  1.16943
  3  0.266118
  4  0.136256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70658': 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) = 8423.78715029
delta logL = 0.125321019907

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  4.179e+00  8.687e+00  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.086e+00  1.169e+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.242e+00  1.363e-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:  3.207e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 336.414 21.342

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/70658/cmap_HighResolution_685411201_685670401_4FGL_J2225.6+2120_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.99e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2022-09-24 01:24:12.559869', job_id='70658', GAL2='1.24', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1664007852.56', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.25e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1721' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 01:24:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 70658: <4FGL_J2225.6+2120_daily_bin1721> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1721> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep 24 01:10:37 2022
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 01:12:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 01:12:57 2022
Terminated at Sat Sep 24 01:24:13 2022
Results reported at Sat Sep 24 01:24:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1721 336.414 21.3418 685411201 685670401 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 :                                   652.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            816 sec.

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

