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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1726
RA = 341.491, Dec = 15.7479
tmin = 686707201, tmax = 686966401
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='88368', job_status='RUN', time_executed='2022-10-09 00:39:13.830386', time_epoch_executed='1665301153.83' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88368/ft1_4FGL_J2245.9+1544_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88368/ft2_4FGL_J2245.9+1544_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88368/ft1_4FGL_J2245.9+1544_daily_bin1726.fits outfile=/scratch/kocevski/88368/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1726.fits ra=341.491 dec=15.7479 rad=12.0 tmin=686707201.0 tmax=686966401.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.07
user 2.84
sys 0.20

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

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

Number of photons that the gtmktime cut: 298

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88368/ft1_filtered_4FGL_J2245.9+1544_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/88368/ft2_4FGL_J2245.9+1544_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/88368/ltcube_686707201_686966401_4FGL_J2245.9+1544_daily_bin1726.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/88368/ft2_4FGL_J2245.9+1544_daily_bin1726.fits
.....................!
real 13.12
user 12.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88368/ft1_filtered_4FGL_J2245.9+1544_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88368/ft2_4FGL_J2245.9+1544_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/88368/ltcube_686707201_686966401_4FGL_J2245.9+1544_daily_bin1726.fits outfile=/scratch/kocevski/88368/expmap_686707201_686966401_4FGL_J2245.9+1544_daily_bin1726.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/88368/ltcube_686707201_686966401_4FGL_J2245.9+1544_daily_bin1726.fits
.....................!
real 191.20
user 185.22
sys 5.55

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/88368/ft1_filtered_4FGL_J2245.9+1544_daily_bin1726.fits scfile=/scratch/kocevski/88368/ft2_4FGL_J2245.9+1544_daily_bin1726.fits outfile=/scratch/kocevski/88368/cmap_686707201_686966401_4FGL_J2245.9+1544_daily_bin1726.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88368/ft1_filtered_4FGL_J2245.9+1544_daily_bin1726.fits scfile=/scratch/kocevski/88368/ft2_4FGL_J2245.9+1544_daily_bin1726.fits outfile=/scratch/kocevski/88368/cmap_HighResolution_686707201_686966401_4FGL_J2245.9+1544_daily_bin1726.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/88368/ft1_filtered_4FGL_J2245.9+1544_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88368/ft2_4FGL_J2245.9+1544_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88368/Model_4FGL_J2245.9+1544_daily_bin1726.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/88368/ft1_filtered_4FGL_J2245.9+1544_daily_bin1726.fits......................!
real 43.12
user 41.74
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14441E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    71.786       1.0000          .0000       .10000E+07
     3 'norm      '    .10214E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8991       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40237E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .59337       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11548E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .37592E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .30047E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    61.148       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.4239       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4955       1.0000          .0000       .10000E+07
    13 'Prefactor '    .64186E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    79.575       1.0000          .0000       .10000E+07
    15 'Prefactor '    .92669E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.8237       1.0000          .0000       .10000E+07
    17 'norm      '    133.69       1.0000          .0000       .10000E+07
    18 'Prefactor '    .19127E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .12750       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77054       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=   3266.901     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     1677 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .75931       -.17450E-07** at limit **
   2  Prefactor     72.145        11.604       -.85802E-08   -.26837E-01
   3  norm           .0000        2.9994        .52932E-08** at limit **
   4  Prefactor     8.0997        28.365       -.18425E-06   -.26265E-02
   5  Prefactor      .0000        88.174       -.19747E-06** at limit **
   6  Prefactor     .59374        .39167        .40343E-07   -.34448E-04
   7  Prefactor     .10000E-03    5.6362        .32953E-07** at limit **
   8  norm           .0000        1.8198       -.62300E-08** at limit **
   9  Prefactor     .55511E-10    196.79       -.20583E-06** at limit **
  10  Prefactor     61.862        37.991       -.13587E-06   -.53133E-02
  11  Prefactor     6.4252        .84839        .83607E-08   -.12179E-04
  12  Prefactor     11.202        252.27        .97759E-06   -.32193E-02
  13  Prefactor      .0000        19.066       -.62036E-07** at limit **
  14  Prefactor     76.976        62.617        .79272E-07    .96625E-01
  15  Prefactor      .0000        17.960        .68793E-07** at limit **
  16  Prefactor     3.0144        372.23       -.37644E-05    .32449E-02
  17  norm          129.47        76.265       -.64262E-07   -.10056    
  18  Prefactor      .0000        26.786       -.78792E-07** at limit **
  19  norm           .0000        61.183        .26140E-07** at limit **
  20  Normalizat    1.1753        .52937       -.10447E-05   -.45111E-05
  21  Prefactor     .77000        .25517        .45076E-06   -.10353E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 72.1453
  norm       = 0
  Prefactor  = 8.09968
  Prefactor  = 0
  Prefactor  = 0.593739
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 61.8619
  Prefactor  = 6.42523
  Prefactor  = 11.2018
  Prefactor  = 0
  Prefactor  = 76.9758
  Prefactor  = 0
  Prefactor  = 3.01441
  norm       = 129.468
  Prefactor  = 0
  norm       = 0
  Normalizat = 1.17531
  Prefactor  = 0.770001
 **********
 **   18 **HESSE 
 **********

 FCN=   3266.901     FROM HESSE     STATUS=OK           361 CALLS     2038 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .75585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     72.145        37.899        .11803E-03   -1.5538    
   3  norm           .0000        3.0006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.0997        28.634        .35652E-03   -1.5651    
   5  Prefactor      .0000        17.674        .12614E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .59374        .39604        .59916E-02   -1.5554    
   7  Prefactor     .10000E-03    5.6445        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.8142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    194.55        .16448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.862        39.594        .12789E-03   -1.5551    
  11  Prefactor     6.4252        .84978        .39589E-02   -1.5201    
  12  Prefactor     11.202        254.12        .54054E-03   -1.5641    
  13  Prefactor      .0000        19.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     76.976        108.68        .11211E-03   -1.5532    
  15  Prefactor      .0000        17.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0144        373.00        .77280E-03   -1.5673    
  17  norm          129.47        91.789        .86493E-04   -1.5480    
  18  Prefactor      .0000        26.806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        61.230        .13243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1753        .45332        .92567E-01   -.87369    
  21  Prefactor     .77000        .21288        .43333E-01   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10384e-06
Minuit parameter uncertainties:
  1  1.93073e-07
  2  37.8995
  3  7.17114e-07
  4  28.6341
  5  1.11871e-05
  6  0.396043
  7  9.38963e-07
  8  4.05133e-07
  9  0.000172985
  10  39.5945
  11  0.849777
  12  106.712
  13  2.93262e-05
  14  108.685
  15  8.77724e-06
  16  67.0679
  17  91.7901
  18  1.87558e-05
  19  1.58604e-05
  20  0.454848
  21  0.213109
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  5.551e-11  1.730e-04  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:  7.700e-01  2.131e-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:  1.175e+00  4.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/88368/likelihoodResults_686707201_686966401_4FGL_J2245.9+1544_daily_bin1726.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) = 3266.90356253
delta logL = -0.00246372428683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3266.89570457
delta logL = 0.00539423813188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9141       1.0000          .0000       .10000E+07
     2 'Index     '    2.6713       1.0000          .0000       10.000    
     3 'Normalizat'    1.1660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77173       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3266.896     FROM MIGRAD    STATUS=FAILED        81 CALLS      379 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9240        158.21        .23796E-04    .17629E-02
   2  Index         2.6739        3.2009        .88451E-02    .21253E-03
   3  Normalizat    1.1654        .51168        .41126E-03    .95041E-03
   4  Prefactor     .77209        .25380        .24648E-03    .11680E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3266.896     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      465 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9240        158.21        .81624E-04   -1.5674    
   2  Index         2.6739        3.2009        .39961E-02   -.48388    
   3  Normalizat    1.1654        .51168        .32134E-03   -.87679    
   4  Prefactor     .77209        .25380        .22806E-03   -1.0077    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3266.896     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      494 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9270        105.38        .95183E-06    .20426E-02
   2  Index         2.6736        2.7141        .35380E-03    .30125E-04
   3  Normalizat    1.1654        .51252        .82253E-04    .29567E-03
   4  Prefactor     .77210        .25410        .49297E-04    .35972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92698
  Index      = 2.67357
  Normalizat = 1.16537
  Prefactor  = 0.772097
 **********
 **   18 **HESSE 
 **********

 FCN=   3266.896     FROM HESSE     STATUS=OK            23 CALLS      517 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9270        104.35        .37369E-06   -1.5674    
   2  Index         2.6736        2.7019        .14152E-04   -.48396    
   3  Normalizat    1.1654        .51265        .16451E-04   -.87680    
   4  Prefactor     .77210        .25415        .98594E-05   -1.0077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3279e-09
Minuit parameter uncertainties:
  1  34.9531
  2  2.90635
  3  0.514879
  4  0.254537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88368': 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) = 3266.8957028
delta logL = 0.00539600344291

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.927e+00  3.495e+01  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.674e+00  2.906e+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:  7.721e-01  2.545e-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:  1.165e+00  5.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 341.491 15.748

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/88368/cmap_HighResolution_686707201_686966401_4FGL_J2245.9+1544_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-02', job_status='DONE', photon_flux_upper_limit='2.63e-07', time_completed='2022-10-09 00:46:30.766444', job_id='88368', GAL2='0.77', fit_tolerance='1e-08', EG2='1.17', EG='1.18', time_epoch_completed='1665301590.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='5.40e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1726' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:46:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 88368: <4FGL_J2245.9+1544_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1726> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Oct  9 00:35:54 2022
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:36:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:36:05 2022
Terminated at Sun Oct  9 00:46:31 2022
Results reported at Sun Oct  9 00:46:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1726 341.491 15.7479 686707201 686966401 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 :                                   439.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             318.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            637 sec.

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

