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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1765
RA = 336.414, Dec = 21.3418
tmin = 696816001, tmax = 697075201
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='648336', job_status='RUN', time_executed='2023-02-03 01:46:35.676826', time_epoch_executed='1675417595.68' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648336/ft1_4FGL_J2225.6+2120_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648336/ft2_4FGL_J2225.6+2120_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648336/ft1_4FGL_J2225.6+2120_daily_bin1765.fits outfile=/scratch/kocevski/648336/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1765.fits ra=336.414 dec=21.3418 rad=12.0 tmin=696816001.0 tmax=697075201.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.69
user 3.44
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648336/ft2_4FGL_J2225.6+2120_daily_bin1765.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/648336/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/648336/ft1_filtered_4FGL_J2225.6+2120_daily_bin1765.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 1029

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648336/ft1_filtered_4FGL_J2225.6+2120_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/648336/ft2_4FGL_J2225.6+2120_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/648336/ltcube_696816001_697075201_4FGL_J2225.6+2120_daily_bin1765.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/648336/ft2_4FGL_J2225.6+2120_daily_bin1765.fits
.....................!
real 15.52
user 14.91
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648336/ft1_filtered_4FGL_J2225.6+2120_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/648336/ft2_4FGL_J2225.6+2120_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/648336/ltcube_696816001_697075201_4FGL_J2225.6+2120_daily_bin1765.fits outfile=/scratch/kocevski/648336/expmap_696816001_697075201_4FGL_J2225.6+2120_daily_bin1765.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/648336/ltcube_696816001_697075201_4FGL_J2225.6+2120_daily_bin1765.fits
.....................!
real 193.63
user 187.33
sys 5.25

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/648336/ft1_filtered_4FGL_J2225.6+2120_daily_bin1765.fits scfile=/scratch/kocevski/648336/ft2_4FGL_J2225.6+2120_daily_bin1765.fits outfile=/scratch/kocevski/648336/cmap_696816001_697075201_4FGL_J2225.6+2120_daily_bin1765.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648336/ft1_filtered_4FGL_J2225.6+2120_daily_bin1765.fits scfile=/scratch/kocevski/648336/ft2_4FGL_J2225.6+2120_daily_bin1765.fits outfile=/scratch/kocevski/648336/cmap_HighResolution_696816001_697075201_4FGL_J2225.6+2120_daily_bin1765.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36637E-08   1.0000          .0000       .10000E+07
     2 'norm      '    .35760E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63215E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .90611E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    12.605       1.0000          .0000       .10000E+07
     6 'norm      '    .66002       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.7955       1.0000          .0000       .10000E+07
     8 'norm      '    .19176E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .88448E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .41617E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.3769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21588E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2128       1.0000          .0000       .10000E+07
    14 'norm      '    1.5930       1.0000          .0000       .10000E+07
    15 'Prefactor '    14.717       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.260       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.3683       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52435E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.7853       1.0000          .0000       .10000E+07
    20 'Normalizat'    .56891       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2235       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=   10274.23     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1268 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12912E-06    41.388        .77504E-06** at limit **
   2  norm           .0000        1.8580       -.11330E-05** at limit **
   3  Prefactor     .43582E-06    3.2026        .99328E-06** at limit **
   4  norm           .0000        .55769        .19768E-07** at limit **
   5  Prefactor     11.474        31.048       -.70977E-05    .24384E-01
   6  norm          .66008        .64088       -.19809E-06   -.30476E-02
   7  Prefactor     5.8270        7.2067       -.97346E-06    .54368E-01
   8  norm          .27756E-09    3.6266       -.13949E-05** at limit **
   9  Prefactor     .50038E-06    2.9435       -.12423E-05** at limit **
  10  Prefactor     .60507E-08    4.5084        .22062E-06** at limit **
  11  Prefactor     6.3768        .48876        .31855E-06    .55869E-03
  12  Prefactor     .10000E-03    5.0704        .36104E-05** at limit **
  13  norm          3.2134        1.1857       -.10155E-06   -.56882E-02
  14  norm          1.5906        1.2575        .87617E-07    .97991E-03
  15  Prefactor     14.681        7.5072       -.10269E-05    .70772E-01
  16  Prefactor     11.246        9.0189       -.11859E-05   -.36765E-01
  17  Prefactor     1.3683        .21740       -.45811E-06    .19343E-03
  18  Prefactor      .0000        7.0706       -.13249E-05** at limit **
  19  Prefactor     3.7931        11.302       -.52335E-05   -.19395E-01
  20  Normalizat    .56878        .26640        .59547E-04   -.79809E-04
  21  Prefactor     1.2238        .13576       -.14481E-04   -.19883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.29119e-07
  norm       = 0
  Prefactor  = 4.35818e-07
  norm       = 0
  Prefactor  = 11.4744
  norm       = 0.660083
  Prefactor  = 5.82702
  norm       = 2.77556e-10
  Prefactor  = 5.00378e-07
  Prefactor  = 6.05072e-09
  Prefactor  = 6.37685
  Prefactor  = 0.0001
  norm       = 3.21343
  norm       = 1.59059
  Prefactor  = 14.6807
  Prefactor  = 11.2455
  Prefactor  = 1.36827
  Prefactor  = 0
  Prefactor  = 3.79315
  Normalizat = 0.568782
  Prefactor  = 1.22382
 **********
 **   18 **HESSE 
 **********

 FCN=   10274.23     FROM HESSE     STATUS=OK           359 CALLS     1627 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12912E-06    41.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.8184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43582E-06    5.1503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .55123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.474        32.817        .28188E-03   -1.5640    
   6  norm          .66008        .64792        .64014E-03   -1.5692    
   7  Prefactor     5.8270        17.653        .41696E-03   -1.5660    
   8  norm          .27756E-09    3.6177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .50038E-06    5.0654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .60507E-08    4.5255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3768        .48915        .39736E-02   -1.5203    
  12  Prefactor     .10000E-03    5.0522        .10080E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2134        1.1886        .56496E-03   -1.5672    
  14  norm          1.5906        1.2563        .84022E-03   -1.5683    
  15  Prefactor     14.681        16.950        .26082E-03   -1.5631    
  16  Prefactor     11.246        9.1682        .29830E-03   -1.5641    
  17  Prefactor     1.3683        .21896        .40549E-02   -1.5474    
  18  Prefactor      .0000        7.0635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7931        14.450        .51861E-03   -1.5669    
  20  Normalizat    .56878        .25804        .11806       -1.0933    
  21  Prefactor     1.2238        .12796        .34097E-01   -.85601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24765e-07
Minuit parameter uncertainties:
  1  0.0046366
  2  5.11534e-07
  3  0.0029964
  4  2.58608e-07
  5  32.8177
  6  0.647925
  7  17.6535
  8  6.44279e-05
  9  0.00318414
  10  0.000330911
  11  0.489155
  12  5.00352e-05
  13  1.18861
  14  1.25632
  15  16.9505
  16  9.16818
  17  0.218961
  18  2.27292e-05
  19  14.4503
  20  0.258586
  21  0.127996
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.051e-09  3.309e-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:  1.224e+00  1.280e-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:  5.688e-01  2.586e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648336/likelihoodResults_696816001_697075201_4FGL_J2225.6+2120_daily_bin1765.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) = 10274.2314955
delta logL = -0.000751893883717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10274.2307355
delta logL = 8.11387144495e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23024E-02   1.0000          .0000       .10000E+07
     2 'Index     '    3.8890       1.0000          .0000       10.000    
     3 'Normalizat'    .56879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2237       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10273.55     FROM MIGRAD    STATUS=CONVERGED    200 CALLS      411 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77102E-03    .93262E-03    .30784E-05** at limit **
   2  Index        10.0000        1.9548        .50000    ** at limit **
   3  Normalizat    .49502        .26718        .55952E-03    .35314E-04
   4  Prefactor     1.2512        .13844        .18993E-03    .13252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000771021
  Index      = 10
  Normalizat = 0.495022
  Prefactor  = 1.25123
 **********
 **   18 **HESSE 
 **********

 FCN=   10273.55     FROM HESSE     STATUS=OK            31 CALLS      442 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77102E-03    .89530E-03    .61567E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.8132        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .49502        .26750        .22381E-04   -1.1265    
   4  Prefactor     1.2512        .13853        .75972E-05   -.84769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93012e-10
Minuit parameter uncertainties:
  1  0.000895301
  2  1.19717e-05
  3  0.268202
  4  0.138574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648336': 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) = 10273.5460617
delta logL = 0.684681888371

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  7.710e-04  8.953e-04  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  1.000e+01  1.197e-05  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.251e+00  1.386e-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:  4.950e-01  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 336.414 21.342
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 3.97e-08 +/- 4.47e-08
Energy Flux (Free Index): 4.44e-06 +/- 5.03e-06

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/648336/cmap_HighResolution_696816001_697075201_4FGL_J2225.6+2120_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', comment='SUCCESS', energy_flux2='4.44e-06', dlogl='6.85e-01', photon_flux2='3.97e-08', job_status='DONE', time_completed='2023-02-03 01:58:26.429096', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='6.90e-08', energy_flux_error2='5.03e-06', EG='0.57', time_epoch_completed='1675418306.43', return_code='0', job_id='648336', GAL2='1.25', EG2='0.50', return_code2='0', photon_flux_error2='4.47e-08', ts2='1.45', photon_index='2.81' WHERE bin_id='1765' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:58:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 648336: <4FGL_J2225.6+2120_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 01:45:15 2023
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:46:08 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:46:08 2023
Terminated at Fri Feb  3 01:58:27 2023
Results reported at Fri Feb  3 01:58:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1765 336.414 21.3418 696816001 697075201 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            792 sec.

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

