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


Performing analysis on: 4FGL_J2245.9+1544_weekly_bin741
RA = 341.491, Dec = 15.7479
tmin = 687139201, tmax = 687744001
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='396657', job_status='RUN', time_executed='2022-10-18 01:42:42.640088', time_epoch_executed='1666082562.64' WHERE source_name='4FGL J2245.9+1544' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396657

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396657/ft1_4FGL_J2245.9+1544_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396657/ft1_4FGL_J2245.9+1544_weekly_bin741.fits outfile=/scratch/kocevski/396657/ft1_filteredMKT_4FGL_J2245.9+1544_weekly_bin741.fits ra=341.491 dec=15.7479 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.58
user 6.32
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.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/396657/ft1_filteredMKT_4FGL_J2245.9+1544_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/396657/ft1_filtered_4FGL_J2245.9+1544_weekly_bin741.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.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 941

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396657/ft1_filtered_4FGL_J2245.9+1544_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/396657/ltcube_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.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/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.fits
.....................!
real 27.44
user 26.91
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396657/ft1_filtered_4FGL_J2245.9+1544_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/396657/ltcube_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.fits outfile=/scratch/kocevski/396657/expmap_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.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/396657/ltcube_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.fits
.....................!
real 190.33
user 185.30
sys 4.70

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/396657/ft1_filtered_4FGL_J2245.9+1544_weekly_bin741.fits scfile=/scratch/kocevski/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.fits outfile=/scratch/kocevski/396657/cmap_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396657/ft1_filtered_4FGL_J2245.9+1544_weekly_bin741.fits scfile=/scratch/kocevski/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.fits outfile=/scratch/kocevski/396657/cmap_HighResolution_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.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.57
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/396657/ft1_filtered_4FGL_J2245.9+1544_weekly_bin741.fits', '/scratch/kocevski/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.fits', expMap='/scratch/kocevski/396657/expmap_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.fits', expCube='/scratch/kocevski/396657/ltcube_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/396657/Model_4FGL_J2245.9+1544_weekly_bin741.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/396657/ft1_filtered_4FGL_J2245.9+1544_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/396657/ft2_4FGL_J2245.9+1544_weekly_bin741.fits
Exposure map: /scratch/kocevski/396657/expmap_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.fits
Exposure cube: /scratch/kocevski/396657/ltcube_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/396657/Model_4FGL_J2245.9+1544_weekly_bin741.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) = 9751.05245833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33795E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    38.351       1.0000          .0000       .10000E+07
     3 'norm      '    6.6010       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.5538       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15082E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .77213       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7191       1.0000          .0000       .10000E+07
     9 'Prefactor '    16.085       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24144E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.6980       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.745       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.1316       1.0000          .0000       .10000E+07
    14 'Prefactor '    53.867       1.0000          .0000       .10000E+07
    15 'Prefactor '    14.391       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12831E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .32752E-08   1.0000          .0000       .10000E+07
    18 'Prefactor '    14.989       1.0000          .0000       .10000E+07
    19 'norm      '    .29964E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .23468       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1610       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=   9750.663     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1682 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .53430       -.55509E-07** at limit **
   2  Prefactor     38.183        10.398        .18070E-05   -.12729    
   3  norm          6.6012        4.8609        .10434E-06   -.28054E-02
   4  Prefactor     4.6231        10.882       -.10992E-05   -.75229E-02
   5  Prefactor     .71054E-08    79.093       -.29363E-05** at limit **
   6  Prefactor     .77205        .21279        .13769E-06   -.14143E-02
   7  Prefactor     .10000E-03    2.3389       -.40962E-05** at limit **
   8  norm          1.7198        1.2457       -.75969E-07    .12013E-01
   9  Prefactor     13.821        28.338        .18109E-05   -.24204E-01
  10  Prefactor     .51015E-07    8.2282       -.88456E-06** at limit **
  11  Prefactor     5.7035        .39477       -.11132E-06    .43683E-02
  12  Prefactor     36.449        12.540        .41831E-07   -.74582E-01
  13  Prefactor     3.0211        9.6540        .75378E-06    .24445E-02
  14  Prefactor     54.865        16.726        .61505E-06   -.29279E-01
  15  Prefactor     14.270        9.3714        .88549E-07   -.55200E-02
  16  Prefactor     .88818E-08    12.030        .70654E-07** at limit **
  17  norm          .28311E-07    6.2161        .25084E-06** at limit **
  18  Prefactor     15.067        10.679       -.30538E-05   -.90639E-01
  19  norm          .83267E-09    16.818       -.42237E-06** at limit **
  20  Normalizat    .23406        .25207       -.43293E-05    .25611E-03
  21  Prefactor     1.1615        .13635       -.88309E-06    .62313E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 38.1826
  norm       = 6.6012
  Prefactor  = 4.6231
  Prefactor  = 7.10543e-09
  Prefactor  = 0.77205
  Prefactor  = 0.000100001
  norm       = 1.71981
  Prefactor  = 13.8213
  Prefactor  = 5.10147e-08
  Prefactor  = 5.7035
  Prefactor  = 36.4485
  Prefactor  = 3.02112
  Prefactor  = 54.8649
  Prefactor  = 14.2703
  Prefactor  = 8.88178e-09
  norm       = 2.83107e-08
  Prefactor  = 15.0668
  norm       = 8.32667e-10
  Normalizat = 0.234057
  Prefactor  = 1.16145
 **********
 **   18 **HESSE 
 **********

 FCN=   9750.663     FROM HESSE     STATUS=OK           367 CALLS     2049 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .52436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.183        20.158        .16149E-03   -1.5584    
   3  norm          6.6012        5.2294        .39035E-03   -1.5657    
   4  Prefactor     4.6231        11.677        .47150E-03   -1.5665    
   5  Prefactor     .71054E-08    90.756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .77205        .22628        .50218E-02   -1.5532    
   7  Prefactor     .10000E-03    2.3346        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7198        1.2444        .80097E-03   -1.5682    
   9  Prefactor     13.821        31.003        .24946E-03   -1.5634    
  10  Prefactor     .51015E-07    8.3524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7035        .42565        .34324E-02   -1.5230    
  12  Prefactor     36.449        32.473        .16728E-03   -1.5587    
  13  Prefactor     3.0211        9.6980        .57263E-03   -1.5673    
  14  Prefactor     54.865        44.581        .13626E-03   -1.5560    
  15  Prefactor     14.270        9.9928        .26377E-03   -1.5632    
  16  Prefactor     .88818E-08    12.088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28311E-07    6.2865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.067        13.049        .25844E-03   -1.5630    
  19  norm          .83267E-09    16.829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .23406        .55773        .17209       -1.2701    
  21  Prefactor     1.1615        .27971        .35627E-01   -.87526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04009e-07
Minuit parameter uncertainties:
  1  2.81842e-06
  2  20.1577
  3  5.22938
  4  11.6767
  5  0.00160537
  6  0.226279
  7  8.23513e-05
  8  1.24444
  9  31.0029
  10  0.00130534
  11  0.425655
  12  32.4732
  13  9.6981
  14  44.5809
  15  9.99283
  16  0.00065483
  17  0.000843739
  18  13.049
  19  0.000240579
  20  0.571867
  21  0.280068
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.382e+01  3.100e+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:  1.161e+00  2.801e-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:  2.341e-01  5.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 9.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/396657/likelihoodResults_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.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) = 9750.4385853
delta logL = 0.224814126259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9750.43151083
delta logL = 0.231888596431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3702       1.0000          .0000       .10000E+07
     2 'Index     '    2.7847       1.0000          .0000       10.000    
     3 'Normalizat'    .21264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1674       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9750.432     FROM MIGRAD    STATUS=FAILED       107 CALLS      334 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3478        480.86        .86685E-04   -.89733E-03
   2  Index         2.7875        5.9717        .88191E-02    .11853E-02
   3  Normalizat    .21249        .24844        .78724E-03   -.33735E-04
   4  Prefactor     1.1675        .12423        .19517E-03   -.15169E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9750.432     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      424 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3478        480.86        .39746E-04   -.89733E-03
   2  Index         2.7875        5.9717        .11591E-02    .11853E-02
   3  Normalizat    .21249        .24844        .45436E-03   -.33735E-04
   4  Prefactor     1.1675        .12423        .72467E-04   -.15169E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9750.432     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      457 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3478        18.403        .34674E-05   -.99018E-03
   2  Index         2.7875        1.3671        .17638E-02   -.21618E-04
   3  Normalizat    .21249        .24723        .31490E-04   -.34081E-04
   4  Prefactor     1.1675        .13686        .78067E-05   -.15145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3478
  Index      = 2.78749
  Normalizat = 0.21249
  Prefactor  = 1.16751
 **********
 **   18 **HESSE 
 **********

 FCN=   9750.432     FROM HESSE     STATUS=OK            25 CALLS      482 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3478        16.009        .13870E-06   -1.5662    
   2  Index         2.7875        1.1933        .70553E-04   -.45839    
   3  Normalizat    .21249        .24640        .62979E-05   -1.2851    
   4  Prefactor     1.1675        .13654        .15613E-05   -.87337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60735e-11
Minuit parameter uncertainties:
  1  16.0091
  2  1.20785
  3  0.247679
  4  0.136576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396657': 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) = 9750.4315068
delta logL = 0.231892622955

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  5.348e+00  1.601e+01  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.787e+00  1.208e+00  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:  1.168e+00  1.366e-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:  2.125e-01  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
Ra Dec: 341.491 15.748

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/396657/cmap_HighResolution_687139201_687744001_4FGL_J2245.9+1544_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2022-10-18 01:55:05.539685', job_id='396657', GAL2='1.17', fit_tolerance='1e-08', EG2='0.21', EG='0.23', time_epoch_completed='1666083305.54', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.32e-01', ts2='0.73', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='741' AND source_name='4FGL J2245.9+1544' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:55:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 396657: <4FGL_J2245.9+1544_weekly_bin741> in cluster <slac> Done

Job <4FGL_J2245.9+1544_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 01:40:24 2022
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:40:25 2022
Terminated at Tue Oct 18 01:55:06 2022
Results reported at Tue Oct 18 01:55:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_weekly_bin741 341.491 15.7479 687139201 687744001 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

