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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1762
RA = 336.414, Dec = 21.3418
tmin = 696038401, tmax = 696297601
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='121946', job_status='RUN', time_executed='2023-01-25 01:43:03.753009', time_epoch_executed='1674639783.75' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121946/ft1_4FGL_J2225.6+2120_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121946/ft2_4FGL_J2225.6+2120_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121946/ft1_4FGL_J2225.6+2120_daily_bin1762.fits outfile=/scratch/kocevski/121946/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1762.fits ra=336.414 dec=21.3418 rad=12.0 tmin=696038401.0 tmax=696297601.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.67
user 3.43
sys 0.18

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

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

Number of photons that the gtmktime cut: 884

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121946/ft1_filtered_4FGL_J2225.6+2120_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/121946/ft2_4FGL_J2225.6+2120_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/121946/ltcube_696038401_696297601_4FGL_J2225.6+2120_daily_bin1762.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/121946/ft2_4FGL_J2225.6+2120_daily_bin1762.fits
.....................!
real 13.64
user 13.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121946/ft1_filtered_4FGL_J2225.6+2120_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/121946/ft2_4FGL_J2225.6+2120_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/121946/ltcube_696038401_696297601_4FGL_J2225.6+2120_daily_bin1762.fits outfile=/scratch/kocevski/121946/expmap_696038401_696297601_4FGL_J2225.6+2120_daily_bin1762.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/121946/ltcube_696038401_696297601_4FGL_J2225.6+2120_daily_bin1762.fits
.....................!
real 191.33
user 185.56
sys 4.47

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/121946/ft1_filtered_4FGL_J2225.6+2120_daily_bin1762.fits scfile=/scratch/kocevski/121946/ft2_4FGL_J2225.6+2120_daily_bin1762.fits outfile=/scratch/kocevski/121946/cmap_696038401_696297601_4FGL_J2225.6+2120_daily_bin1762.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121946/ft1_filtered_4FGL_J2225.6+2120_daily_bin1762.fits scfile=/scratch/kocevski/121946/ft2_4FGL_J2225.6+2120_daily_bin1762.fits outfile=/scratch/kocevski/121946/cmap_HighResolution_696038401_696297601_4FGL_J2225.6+2120_daily_bin1762.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73811E-01   1.0000          .0000       .10000E+07
     2 'norm      '    2.2136       1.0000          .0000       .10000E+07
     3 'Prefactor '    .20976E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .72214E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .26275E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .27577E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.496       1.0000          .0000       .10000E+07
     8 'norm      '    .84903       1.0000          .0000       .10000E+07
     9 'Prefactor '    .53361E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .13071E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.7225       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14668E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4046       1.0000          .0000       .10000E+07
    14 'norm      '    1.5214       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28236E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .70992E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.5499       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6920       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.0930       1.0000          .0000       .10000E+07
    20 'Normalizat'    .94927       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92345       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=   9065.971     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1362 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    38.475        .35467E-06** at limit **
   2  norm          2.2124        2.1856       -.38333E-08    .23056E-02
   3  Prefactor     .37470E-07    5.6603       -.66363E-06** at limit **
   4  norm          .33307E-09    1.4314       -.60088E-06** at limit **
   5  Prefactor     .18319E-08    20.294       -.12375E-05** at limit **
   6  norm          .29827E-01    4.3212       -.26490E-07** at limit **
   7  Prefactor     11.566        1.1206       -.51865E-07   -.18183E-02
   8  norm          .73291        .75524        .41769E-06    .10533E-01
   9  Prefactor     .46074E-08    4.1981       -.74175E-06** at limit **
  10  Prefactor     .38303E-08    6.6359       -.16323E-06** at limit **
  11  Prefactor     2.7227        .34976        .30998E-06    .59463E-02
  12  Prefactor     .10000E-03    6.0555        .75370E-06** at limit **
  13  norm          2.4030        1.0187       -.36689E-07   -.18670E-01
  14  norm          1.5220        1.3958        .39746E-07    .32327E-02
  15  Prefactor     .88263E-08    10.963        .80863E-06** at limit **
  16  Prefactor     .66613E-09    2.6275        .50733E-07** at limit **
  17  Prefactor     1.5495        .22873       -.10150E-06    .46359E-02
  18  Prefactor     8.7790        10.323        .19719E-05   -.19601E-02
  19  Prefactor     3.0742        1.1560        .40055E-07   -.22774E-02
  20  Normalizat    .94956        .25031        .10384E-04   -.13496E-03
  21  Prefactor     .92349        .12516       -.59170E-05   -.45058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  norm       = 2.21238
  Prefactor  = 3.747e-08
  norm       = 3.33067e-10
  Prefactor  = 1.83187e-09
  norm       = 0.0298273
  Prefactor  = 11.5663
  norm       = 0.732914
  Prefactor  = 4.60743e-09
  Prefactor  = 3.83027e-09
  Prefactor  = 2.72271
  Prefactor  = 0.0001
  norm       = 2.40305
  norm       = 1.52195
  Prefactor  = 8.82627e-09
  Prefactor  = 6.66134e-10
  Prefactor  = 1.54949
  Prefactor  = 8.77903
  Prefactor  = 3.07419
  Normalizat = 0.949557
  Prefactor  = 0.923488
 **********
 **   18 **HESSE 
 **********

 FCN=   9065.971     FROM HESSE     STATUS=OK           369 CALLS     1731 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    38.569        .14694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2124        2.2151        .69102E-03   -1.5678    
   3  Prefactor     .37470E-07    9.4528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .33307E-09    .38149        .20775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18319E-08    20.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .29827E-01    .55600        .22981E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.566        15.174        .29522E-03   -1.5640    
   8  norm          .73291        4.1544        .49349E-03   -1.5691    
   9  Prefactor     .46074E-08    9.7609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38303E-08    6.6742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7227        .35061        .43834E-02   -1.5378    
  12  Prefactor     .10000E-03    5.9816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4030        1.0113        .66000E-03   -1.5677    
  14  norm          1.5220        1.4131        .86582E-03   -1.5683    
  15  Prefactor     .88263E-08    11.150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .66613E-09    2.6929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5495        .22833        .37177E-02   -1.5459    
  18  Prefactor     8.7790        10.474        .33975E-03   -1.5649    
  19  Prefactor     3.0742        32.096        .57639E-03   -1.5673    
  20  Normalizat    .94956        .21410        .83416E-01   -.94740    
  21  Prefactor     .92349        .10418        .45303E-01   -.95325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2842e-08
Minuit parameter uncertainties:
  1  0.000356366
  2  2.21514
  3  0.00119006
  4  2.22342e-05
  5  0.000386296
  6  0.257557
  7  15.1737
  8  3.48988
  9  0.000425218
  10  0.00031879
  11  0.350611
  12  9.20218e-05
  13  1.01129
  14  1.4131
  15  0.000628067
  16  8.63582e-05
  17  0.228332
  18  10.4741
  19  19.8665
  20  0.214294
  21  0.104203
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.830e-09  3.188e-04  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.235e-01  1.042e-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:  9.496e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/121946/likelihoodResults_696038401_696297601_4FGL_J2225.6+2120_daily_bin1762.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): 102
logL (Free Index) = 9065.97272445
delta logL = -0.00155336777425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9065.97117198
delta logL = -8.96201527212e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55583E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.2163       1.0000          .0000       10.000    
     3 'Normalizat'    .94937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92364       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.

 FCN=   9065.971     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      300 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71609E-08    10.457        .42118E-03** at limit **
   2  Index         1.5853        8.9729        .50000       -.68212E-08
   3  Normalizat    .94956        .72275E-02    .83416E-01   -.44643E-04
   4  Prefactor     .92349        .36814E-02    .45306E-01   -.11638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.16094e-09
  Index      = 1.58525
  Normalizat = 0.949555
  Prefactor  = 0.923489
 **********
 **   18 **HESSE 
 **********

 FCN=   9065.971     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      331 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71609E-08    51.649        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5853        5.6376        .50000       -.75179    
   3  Normalizat    .94956        .16107E-01    .36930E-03   -.94740    
   4  Prefactor     .92349        .82204E-02    .18946E-03   -.95325    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.24254e-08
Minuit parameter uncertainties:
  1  0.00121411
  2  20129.9
  3  0.0161075
  4  0.00822046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121946': 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): 102
logL (Free Index) = 9065.97117108
delta logL = -3.21961124428e-10

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  7.161e-09  1.214e-03  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  1.585e+00  2.013e+04  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:  9.235e-01  8.220e-03  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:  9.496e-01  1.611e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/121946/cmap_HighResolution_696038401_696297601_4FGL_J2225.6+2120_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2023-01-25 01:53:59.902762', job_id='121946', GAL2='0.92', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1674640439.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.22e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1762' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:53:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 121946: <4FGL_J2225.6+2120_daily_bin1762> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 01:40:18 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:42:07 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:42:07 2023
Terminated at Wed Jan 25 01:54:00 2023
Results reported at Wed Jan 25 01:54:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1762 336.414 21.3418 696038401 696297601 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 :                                   656.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            822 sec.

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

