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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1720
RA = 341.491, Dec = 15.7479
tmin = 685152001, tmax = 685411201
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='849917', job_status='RUN', time_executed='2022-09-21 00:59:03.849742', time_epoch_executed='1663747143.85' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849917

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849917/ft1_4FGL_J2245.9+1544_daily_bin1720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849917/ft2_4FGL_J2245.9+1544_daily_bin1720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849917/ft1_4FGL_J2245.9+1544_daily_bin1720.fits outfile=/scratch/kocevski/849917/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1720.fits ra=341.491 dec=15.7479 rad=12.0 tmin=685152001.0 tmax=685411201.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.80
user 3.49
sys 0.25

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

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

Number of photons that the gtmktime cut: 606

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849917/ft1_filtered_4FGL_J2245.9+1544_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/849917/ft2_4FGL_J2245.9+1544_daily_bin1720.fits sctable="SC_DATA" expcube=/scratch/kocevski/849917/ltcube_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.fits outfile=/scratch/kocevski/849917/expmap_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.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/849917/ltcube_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.fits
.....................!
real 191.89
user 185.73
sys 5.38

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/849917/ft1_filtered_4FGL_J2245.9+1544_daily_bin1720.fits scfile=/scratch/kocevski/849917/ft2_4FGL_J2245.9+1544_daily_bin1720.fits outfile=/scratch/kocevski/849917/cmap_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849917/ft1_filtered_4FGL_J2245.9+1544_daily_bin1720.fits scfile=/scratch/kocevski/849917/ft2_4FGL_J2245.9+1544_daily_bin1720.fits outfile=/scratch/kocevski/849917/cmap_HighResolution_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.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.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/849917/ft1_filtered_4FGL_J2245.9+1544_daily_bin1720.fits', '/scratch/kocevski/849917/ft2_4FGL_J2245.9+1544_daily_bin1720.fits', expMap='/scratch/kocevski/849917/expmap_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.fits', expCube='/scratch/kocevski/849917/ltcube_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/849917/Model_4FGL_J2245.9+1544_daily_bin1720.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/849917/ft1_filtered_4FGL_J2245.9+1544_daily_bin1720.fits
Spacecraft file(s): /scratch/kocevski/849917/ft2_4FGL_J2245.9+1544_daily_bin1720.fits
Exposure map: /scratch/kocevski/849917/expmap_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.fits
Exposure cube: /scratch/kocevski/849917/ltcube_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/849917/Model_4FGL_J2245.9+1544_daily_bin1720.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6767.23448688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24741E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.7225       1.0000          .0000       .10000E+07
     3 'norm      '    .90483E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .53073E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .62635E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .38665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.8826       1.0000          .0000       .10000E+07
     9 'Prefactor '    .18857E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    56.262       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.5962       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1563       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14455E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    42.709       1.0000          .0000       .10000E+07
    15 'Prefactor '    .30264E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.2266       1.0000          .0000       .10000E+07
    17 'norm      '    .74182E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.4906       1.0000          .0000       .10000E+07
    19 'norm      '    .17709E-05   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1877       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94628       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=   6765.719     FROM MIGRAD    STATUS=CONVERGED    176 CALLS      998 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .41652       -.31349E-07** at limit **
   2  Prefactor     2.8030        11.180        .19922E-05   -.25060E-02
   3  norm           .0000        1.7172        .19213E-07** at limit **
   4  Prefactor     .59397E-07    34.162       -.15007E-05** at limit **
   5  Prefactor     .66613E-09    8.6803        .36520E-06** at limit **
   6  Prefactor     .38752        .24638       -.14677E-07    .34661E-04
   7  Prefactor     .10000E-03    3.3040       -.69432E-06** at limit **
   8  norm          5.8855        2.5722       -.11566E-07    .32643E-03
   9  Prefactor     .11102E-09    30.339        .26826E-06** at limit **
  10  Prefactor     56.399        3.7542        .64832E-07    .42176E-01
  11  Prefactor     2.5980        .35490        .10465E-06   -.14688E-02
  12  Prefactor     17.733        73.552        .29388E-05   -.23943E-02
  13  Prefactor      .0000        2.1984       -.28465E-07** at limit **
  14  Prefactor     42.592        31.083        .24275E-05   -.10386    
  15  Prefactor     .55511E-10    8.1501       -.16502E-06** at limit **
  16  Prefactor     .66421        181.06        .14717E-04    .17395E-01
  17  norm          .27756E-09    9.1434       -.46084E-07** at limit **
  18  Prefactor     3.3055        21.208        .74010E-06    .40778E-02
  19  norm          .26190E-06    33.743        .14395E-05** at limit **
  20  Normalizat    1.1809        .34639       -.64082E-05   -.19140E-03
  21  Prefactor     .94750        .17087        .94148E-06   -.33086E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 2.80296
  norm       = 0
  Prefactor  = 5.93969e-08
  Prefactor  = 6.66134e-10
  Prefactor  = 0.387524
  Prefactor  = 0.0001
  norm       = 5.88554
  Prefactor  = 1.11022e-10
  Prefactor  = 56.399
  Prefactor  = 2.59798
  Prefactor  = 17.7331
  Prefactor  = 0
  Prefactor  = 42.5917
  Prefactor  = 5.55112e-11
  Prefactor  = 0.664208
  norm       = 2.77556e-10
  Prefactor  = 3.30549
  norm       = 2.61902e-07
  Normalizat = 1.18094
  Prefactor  = 0.947496
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.719     FROM HESSE     STATUS=OK           363 CALLS     1361 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .41776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8030        11.179        .61694E-03   -1.5674    
   3  norm           .0000        1.7197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .59397E-07    34.088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .66613E-09    8.7067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .38752        .25311        .70287E-02   -1.5583    
   7  Prefactor     .10000E-03    3.3064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.8855        2.6223        .41381E-03   -1.5659    
   9  Prefactor     .11102E-09    30.265        .17113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     56.399        21.764        .13333E-03   -1.5558    
  11  Prefactor     2.5980        .35392        .38402E-02   -1.5386    
  12  Prefactor     17.733        73.020        .37474E-03   -1.5624    
  13  Prefactor      .0000        2.2034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.592        45.884        .15303E-03   -1.5577    
  15  Prefactor     .55511E-10    8.1851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .66421        25.466        .12524E-01   -1.5692    
  17  norm          .27756E-09    9.1508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3055        21.308        .54094E-03   -1.5672    
  19  norm          .26190E-06    33.969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1809        .29456        .87562E-01   -.87194    
  21  Prefactor     .94750        .14256        .45592E-01   -.94501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38232e-07
Minuit parameter uncertainties:
  1  2.23244e-06
  2  11.1792
  3  3.19621e-06
  4  0.00284608
  5  0.000149984
  6  0.253108
  7  9.14347e-06
  8  2.62234
  9  0.000116215
  10  21.7639
  11  0.353919
  12  71.97
  13  4.17939e-06
  14  45.8848
  15  4.04126e-05
  16  8.22556
  17  0.000104912
  18  16.785
  19  0.00596531
  20  0.294969
  21  0.142619
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.110e-10  1.162e-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:  9.475e-01  1.426e-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.181e+00  2.950e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849917/likelihoodResults_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.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) = 6765.73457862
delta logL = -0.0157814112063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6765.04709172
delta logL = 0.671705492662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71081       1.0000          .0000       .10000E+07
     2 'Index     '    3.8313       1.0000          .0000       10.000    
     3 'Normalizat'    1.0602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98399       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.

 FCN=   6765.047     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70736        11.321        .59835E-03    .98516E-02
   2  Index         3.8329        2.0046        .69162E-01    .20657E-03
   3  Normalizat    1.0600        .72369E-01    .91299E-01    .28504E-04
   4  Prefactor     .98411        .37346E-01    .46067E-01    .24952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.707364
  Index      = 3.83288
  Normalizat = 1.05997
  Prefactor  = 0.984109
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.047     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70736        26.784        .58562E-05   -1.5691    
   2  Index         3.8329        3.5211        .36963E-02   -.23560    
   3  Normalizat    1.0600        .27783        .40440E-03   -.91048    
   4  Prefactor     .98411        .14233        .21713E-03   -.93261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.26158e-07
Minuit parameter uncertainties:
  1  8.7055
  2  3.93768
  3  0.278213
  4  0.142384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849917': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6765.0470908
delta logL = 0.6717064107

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  7.074e-01  8.705e+00  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  3.833e+00  3.938e+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:  9.841e-01  1.424e-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.060e+00  2.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 341.491 15.748
Photon Index (Free Index): 3.83 +/- 3.94
Photon Flux (Free Index): 1.71e-07 +/- 1.52e-07
Energy Flux (Free Index): 2.64e-05 +/- 2.84e-05

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/849917/cmap_HighResolution_685152001_685411201_4FGL_J2245.9+1544_daily_bin1720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', comment='SUCCESS', energy_flux2='2.64e-05', dlogl='6.72e-01', photon_flux2='1.71e-07', job_status='DONE', time_completed='2022-09-21 01:07:54.738459', photon_index_error2='3.94', photon_index2='3.83', ts='-0.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='2.84e-05', EG='1.18', time_epoch_completed='1663747674.74', return_code='0', job_id='849917', GAL2='0.98', EG2='1.06', return_code2='102', photon_flux_error2='1.52e-07', ts2='1.45', photon_index='1.96' WHERE bin_id='1720' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 21 01:07:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 849917: <4FGL_J2245.9+1544_daily_bin1720> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1720> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 21 00:55:18 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:56:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:56:45 2022
Terminated at Wed Sep 21 01:07:55 2022
Results reported at Wed Sep 21 01:07:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1720 341.491 15.7479 685152001 685411201 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            757 sec.

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

