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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1728
RA = 341.491, Dec = 15.7479
tmin = 687225601, tmax = 687484801
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='304500', job_status='RUN', time_executed='2022-10-15 00:39:04.713403', time_epoch_executed='1665819544.71' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304500/ft1_4FGL_J2245.9+1544_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304500/ft1_4FGL_J2245.9+1544_daily_bin1728.fits outfile=/scratch/kocevski/304500/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1728.fits ra=341.491 dec=15.7479 rad=12.0 tmin=687225601.0 tmax=687484801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.70
user 2.50
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.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/304500/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1728.fits evtable="EVENTS" outfile="/scratch/kocevski/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.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.33
sys 0.15

Number of photons that the gtmktime cut: 239

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304500/ltcube_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.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/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits
.....................!
real 12.94
user 12.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304500/ltcube_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.fits outfile=/scratch/kocevski/304500/expmap_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.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/304500/ltcube_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.fits
.....................!
real 192.04
user 186.23
sys 5.44

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

Setting source of interest to:
4FGL J2245.9+1544 @ 341.491 15.7479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.fits scfile=/scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits outfile=/scratch/kocevski/304500/cmap_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.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=341.491 yref=15.7479 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.fits scfile=/scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits outfile=/scratch/kocevski/304500/cmap_HighResolution_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.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=341.491 yref=15.7479 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304500/Model_4FGL_J2245.9+1544_daily_bin1728.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/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.fits......................!
real 37.45
user 36.09
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.fits', '/scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits', expMap='/scratch/kocevski/304500/expmap_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.fits', expCube='/scratch/kocevski/304500/ltcube_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304500/Model_4FGL_J2245.9+1544_daily_bin1728.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2245.9+1544'

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  5.169e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/304500/ft1_filtered_4FGL_J2245.9+1544_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/304500/ft2_4FGL_J2245.9+1544_daily_bin1728.fits
Exposure map: /scratch/kocevski/304500/expmap_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.fits
Exposure cube: /scratch/kocevski/304500/ltcube_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304500/Model_4FGL_J2245.9+1544_daily_bin1728.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) = 2665.62008988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1208       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.681       1.0000          .0000       .10000E+07
     3 'norm      '    10.134       1.0000          .0000       .10000E+07
     4 'Prefactor '    47.941       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56855E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .66926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .45630E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    94.204       1.0000          .0000       .10000E+07
    10 'Prefactor '    .89317E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.7199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.235       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.182       1.0000          .0000       .10000E+07
    14 'Prefactor '    197.88       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13683E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17001       1.0000          .0000       .10000E+07
    17 'norm      '    .49930E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    59.814       1.0000          .0000       .10000E+07
    19 'norm      '    100.97       1.0000          .0000       .10000E+07
    20 'Normalizat'    .44623       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2664.737     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     1673 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1294        1.4435        .26679E-06   -.40174E-03
   2  Prefactor     10.025        21.733       -.45851E-05    .60910E-03
   3  norm          10.184        10.051        .34481E-06    .50580E-03
   4  Prefactor     45.984        32.537       -.26359E-05    .88831E-03
   5  Prefactor     .38858E-09    28.055       -.15231E-04** at limit **
   6  Prefactor     .67786        .38601        .15136E-06   -.24373E-04
   7  Prefactor     .10000E-03    3.9727       -.18450E-05** at limit **
   8  norm           .0000        1.0327       -.40793E-06** at limit **
   9  Prefactor     95.102        9.4101        .31389E-06    .17379    
  10  Prefactor      .0000        7.5213       -.97040E-06** at limit **
  11  Prefactor     3.7156        .62933        .45404E-06   -.34611E-04
  12  Prefactor     35.645        75.454        .25369E-05   -.20379E-01
  13  Prefactor     10.983        18.143       -.23494E-05    .31700E-03
  14  Prefactor     215.52        136.70       -.89731E-05   -.13070    
  15  Prefactor     .55511E-09    25.206        .20469E-06** at limit **
  16  Prefactor     .55511E-10    87.230        .10050E-04** at limit **
  17  norm          .40523E-08    101.72        .75103E-05** at limit **
  18  Prefactor     62.567        58.544       -.78690E-05    .40872E-01
  19  norm          94.360        48.799        .37674E-05   -.22845    
  20  Normalizat    .44502        .47069        .25471E-03    .48517E-04
  21  Prefactor     .86061        .22982       -.45243E-04    .11561E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12939
  Prefactor  = 10.025
  norm       = 10.1842
  Prefactor  = 45.9837
  Prefactor  = 3.88578e-10
  Prefactor  = 0.677864
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 95.1022
  Prefactor  = 0
  Prefactor  = 3.71556
  Prefactor  = 35.6453
  Prefactor  = 10.9827
  Prefactor  = 215.524
  Prefactor  = 5.55112e-10
  Prefactor  = 5.55112e-11
  norm       = 4.05231e-09
  Prefactor  = 62.5666
  norm       = 94.3604
  Normalizat = 0.445016
  Prefactor  = 0.860608
 **********
 **   18 **HESSE 
 **********

 FCN=   2664.737     FROM HESSE     STATUS=OK           357 CALLS     2030 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1294        1.4971        .11088E-02   -1.5687    
   2  Prefactor     10.025        21.798        .30633E-03   -1.5645    
   3  norm          10.184        10.104        .31451E-03   -1.5644    
   4  Prefactor     45.984        32.784        .14444E-03   -1.5572    
   5  Prefactor     .38858E-09    27.921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .67786        .38803        .49517E-02   -1.5543    
   7  Prefactor     .10000E-03    3.9753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.0341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     95.102        84.506        .10304E-03   -1.5513    
  10  Prefactor      .0000        7.5246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7156        .64404        .36157E-02   -1.5322    
  12  Prefactor     35.645        76.740        .18498E-03   -1.5589    
  13  Prefactor     10.983        18.093        .31377E-03   -1.5642    
  14  Prefactor     215.52        147.82        .71095E-04   -1.5414    
  15  Prefactor     .55511E-09    25.175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    86.949        .12336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40523E-08    98.729        .15543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     62.567        60.096        .12931E-03   -1.5550    
  19  norm          94.360        127.44        .99526E-04   -1.5514    
  20  Normalizat    .44502        .46819        .11685       -1.1504    
  21  Prefactor     .86061        .21917        .44513E-01   -.97531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3335e-05
Minuit parameter uncertainties:
  1  1.4971
  2  21.7984
  3  10.1039
  4  32.7844
  5  0.000201043
  6  0.388027
  7  6.77643e-07
  8  9.6179e-07
  9  84.5075
  10  8.22338e-06
  11  0.644043
  12  76.7417
  13  18.0932
  14  147.821
  15  0.000234864
  16  0.000148918
  17  0.00126137
  18  60.0966
  19  127.446
  20  0.472405
  21  0.219393
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  9.510e+01  8.451e+01  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  8.606e-01  2.194e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  4.450e-01  4.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 9.62e-08 +/- 8.55e-08
Energy Flux (Fixed Index): 7.28e-05 +/- 6.47e-05

TS (Fixed Index): 2.13
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 2.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304500/likelihoodResults_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.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) = 2664.73010852
delta logL = 0.00693068323199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2664.72140131
delta logL = 0.0156378922129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    111.58       1.0000          .0000       .10000E+07
     2 'Index     '    1.8487       1.0000          .0000       10.000    
     3 'Normalizat'    .45242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+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=   2664.721     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      259 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.57        135.18        .37870E-05    .14800E-02
   2  Index         1.8480        .65232        .49002E-02    .12133E-03
   3  Normalizat    .45445        .43028        .51324E-03   -.30601E-04
   4  Prefactor     .85690        .22767        .19815E-03    .36353E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.572
  Index      = 1.84799
  Normalizat = 0.454452
  Prefactor  = 0.8569
 **********
 **   18 **HESSE 
 **********

 FCN=   2664.721     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.57        129.74        .75741E-06   -1.5497    
   2  Index         1.8480        .62614        .19601E-03   -.68207    
   3  Normalizat    .45445        .42986        .20530E-04   -1.1458    
   4  Prefactor     .85690        .22753        .39630E-04   -.97664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16084e-10
Minuit parameter uncertainties:
  1  129.747
  2  0.628893
  3  0.433044
  4  0.22778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304500': 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) = 2664.72138811
delta logL = 0.0156510875358

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.116e+02  1.297e+02  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  1.848e+00  6.289e-01  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  8.569e-01  2.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  4.545e-01  4.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 341.491 15.748
Photon Index (Free Index): 1.85 +/- 0.63
Photon Flux (Free Index): 8.53e-08 +/- 9.50e-08
Energy Flux (Free Index): 8.86e-05 +/- 1.25e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/304500/cmap_HighResolution_687225601_687484801_4FGL_J2245.9+1544_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-02', comment='SUCCESS', photon_flux='9.62e-08', energy_flux2='8.86e-05', photon_flux_error='8.55e-08', dlogl='1.57e-02', energy_flux='7.28e-05', photon_flux2='8.53e-08', job_status='DONE', time_completed='2022-10-15 00:45:49.857542', photon_index_error2='0.63', photon_index2='1.85', ts='2.13', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='2.96e-07', energy_flux_error2='1.25e-04', EG='0.45', time_epoch_completed='1665819949.86', return_code='0', job_id='304500', GAL2='0.86', EG2='0.45', return_code2='0', energy_flux_error='6.47e-05', photon_flux_error2='9.50e-08', ts2='2.24', photon_index='1.96' WHERE bin_id='1728' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:45:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 304500: <4FGL_J2245.9+1544_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct 15 00:36:01 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:36:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:36:02 2022
Terminated at Sat Oct 15 00:45:50 2022
Results reported at Sat Oct 15 00:45:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1728 341.491 15.7479 687225601 687484801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2245.9+1544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   407.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             218.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            589 sec.

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

