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 67 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1697
RA = 341.491, Dec = 15.7479
tmin = 679190401, tmax = 679449601
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='857709', job_status='RUN', time_executed='2022-07-14 00:37:10.355519', time_epoch_executed='1657784230.36' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857709/ft1_4FGL_J2245.9+1544_daily_bin1697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857709/ft2_4FGL_J2245.9+1544_daily_bin1697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857709/ft1_4FGL_J2245.9+1544_daily_bin1697.fits outfile=/scratch/kocevski/857709/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1697.fits ra=341.491 dec=15.7479 rad=12.0 tmin=679190401.0 tmax=679449601.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.46
user 3.22
sys 0.21

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

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

Number of photons that the gtmktime cut: 841

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857709/ft1_filtered_4FGL_J2245.9+1544_daily_bin1697.fits" evtable="EVENTS" scfile=/scratch/kocevski/857709/ft2_4FGL_J2245.9+1544_daily_bin1697.fits sctable="SC_DATA" outfile=/scratch/kocevski/857709/ltcube_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.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/857709/ft2_4FGL_J2245.9+1544_daily_bin1697.fits
.....................!
real 11.97
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857709/ft1_filtered_4FGL_J2245.9+1544_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857709/ft2_4FGL_J2245.9+1544_daily_bin1697.fits sctable="SC_DATA" expcube=/scratch/kocevski/857709/ltcube_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.fits outfile=/scratch/kocevski/857709/expmap_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.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/857709/ltcube_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.fits
.....................!
real 191.40
user 185.45
sys 5.63

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/857709/ft1_filtered_4FGL_J2245.9+1544_daily_bin1697.fits scfile=/scratch/kocevski/857709/ft2_4FGL_J2245.9+1544_daily_bin1697.fits outfile=/scratch/kocevski/857709/cmap_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857709/ft1_filtered_4FGL_J2245.9+1544_daily_bin1697.fits scfile=/scratch/kocevski/857709/ft2_4FGL_J2245.9+1544_daily_bin1697.fits outfile=/scratch/kocevski/857709/cmap_HighResolution_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857709/ft1_filtered_4FGL_J2245.9+1544_daily_bin1697.fits', '/scratch/kocevski/857709/ft2_4FGL_J2245.9+1544_daily_bin1697.fits', expMap='/scratch/kocevski/857709/expmap_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.fits', expCube='/scratch/kocevski/857709/ltcube_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857709/Model_4FGL_J2245.9+1544_daily_bin1697.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  1.000e-04  1.000e+04 ( 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/857709/ft1_filtered_4FGL_J2245.9+1544_daily_bin1697.fits
Spacecraft file(s): /scratch/kocevski/857709/ft2_4FGL_J2245.9+1544_daily_bin1697.fits
Exposure map: /scratch/kocevski/857709/expmap_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.fits
Exposure cube: /scratch/kocevski/857709/ltcube_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857709/Model_4FGL_J2245.9+1544_daily_bin1697.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) = 8967.54818684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42015       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6437       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5395       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4690       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1323       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5855       1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.264       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1461       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50095E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.324       1.0000         .10000E-03   10000.    
    20 'norm      '    .62099E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.727       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1115       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90089       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.

 FCN=   8967.543     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2752 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42083        .69235       -.44527E-07   -.82892E-03
   2  Prefactor     3.6440        18.885       -.13726E-05   -.28132E-04
   3  norm          4.0734        2.8814        .83441E-06   -.28215E-02
   4  Prefactor     6.2914        14.777       -.94465E-06   -.34580E-04
   5  Prefactor     .10000E-03    6.0616       -.38614E-07** at limit **
   6  Prefactor     1.5395        .29168       -.12047E-07    .20259E-03
   7  Prefactor     5.4712        8.2930        .22247E-06   -.19273E-04
   8  norm          .10000E-03    .52400       -.21540E-08** at limit **
   9  Prefactor     .10000E-03    10.072       -.83720E-07** at limit **
  10  Prefactor     34.968        12.815       -.14596E-06    .14280E-04
  11  Prefactor     .10000E-03    7.7758        .13743E-05** at limit **
  12  Prefactor     1.1323        .19298       -.10984E-07    .90682E-04
  13  Prefactor     4.5863        7.7717       -.15158E-06   -.47166E-04
  14  Prefactor     52.253        39.580       -.71836E-05   -.22403E-03
  15  Prefactor     4.1449        4.5421       -.95023E-07   -.35938E-04
  16  Prefactor     .10000E-03    8.4847        .24518E-06** at limit **
  17  Prefactor     7.5746        19.028       -.29096E-06   -.47081E-05
  18  Prefactor     .10000E-03    3.5296        .73821E-07** at limit **
  19  Prefactor     17.314        21.218       -.38394E-05   -.13049E-03
  20  norm          .10000E-03    4.3039        .48923E-07** at limit **
  21  Prefactor     .10000E-03    7.5218       -.12943E-05** at limit **
  22  norm          18.727        16.209        .14050E-06    .16000E-04
  23  Normalizat    1.1117        .22122        .20137E-05   -.55797E-04
  24  Prefactor     .90069        .11391       -.13764E-06    .82842E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.420833
  Prefactor  = 3.64396
  norm       = 4.07342
  Prefactor  = 6.2914
  Prefactor  = 0.0001
  Prefactor  = 1.53945
  Prefactor  = 5.47119
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.9677
  Prefactor  = 0.0001
  Prefactor  = 1.1323
  Prefactor  = 4.58628
  Prefactor  = 52.2531
  Prefactor  = 4.14493
  Prefactor  = 0.000100002
  Prefactor  = 7.5746
  Prefactor  = 0.0001
  Prefactor  = 17.3137
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.7269
  Normalizat = 1.11173
  Prefactor  = 0.900692
 **********
 **   18 **HESSE 
 **********

 FCN=   8967.543     FROM HESSE     STATUS=OK           409 CALLS     3161 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42083        .59884        .97628E-03   -1.5578    
   2  Prefactor     3.6440        18.886        .21163E-03   -1.5326    
   3  norm          4.0734        4.9334        .99872E-03   -1.5304    
   4  Prefactor     6.2914        14.795        .16005E-03   -1.5206    
   5  Prefactor     .10000E-03    6.1057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5395        .29325        .20132E-04   -1.5460    
   7  Prefactor     5.4712        8.3141        .17182E-03   -1.5240    
   8  norm          .10000E-03    .52769        .66891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.968        12.807        .67768E-04   -1.4525    
  11  Prefactor     .10000E-03    7.7934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1323        .19322        .16273E-04   -1.5495    
  13  Prefactor     4.5863        7.7671        .18797E-03   -1.5280    
  14  Prefactor     52.253        40.287        .55477E-04   -1.4261    
  15  Prefactor     4.1449        4.5357        .19795E-03   -1.5301    
  16  Prefactor     .10000E-03    59.390        .52353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5746        19.023        .14572E-03   -1.5157    
  18  Prefactor     .10000E-03    3.5671        .17352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.314        21.412        .96227E-04   -1.4876    
  20  norm          .10000E-03    26.998        .37848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.727        16.208        .92553E-04   -1.4842    
  23  Normalizat    1.1117        .25656        .34894E-03   -.89376    
  24  Prefactor     .90069        .13445        .20982E-03   -.96117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14518e-09
Minuit parameter uncertainties:
  1  0.598851
  2  16.5994
  3  4.93386
  4  14.8032
  5  1.22326e-05
  6  0.293252
  7  8.31582
  8  4.04935e-07
  9  6.10229e-06
  10  12.8083
  11  3.61735e-05
  12  0.193218
  13  7.76881
  14  40.3081
  15  4.53606
  16  0.00073659
  17  19.0381
  18  2.27433e-05
  19  21.421
  20  2.48547e-07
  21  3.77488e-05
  22  16.2122
  23  0.256847
  24  0.134503
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  6.102e-06  1.000e-04  1.000e+04 ( 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.007e-01  1.345e-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.112e+00  2.568e-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: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857709/likelihoodResults_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8967.54347463
delta logL = -0.000472203702884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8967.54300237
delta logL = 5.15392457601e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9391       1.0000          .0000       10.000    
     3 'Normalizat'    1.1116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90073       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=   8967.543     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10070E-03    56.528        .18142E-02** at limit **
   2  Index         1.8995        5.5123        .50000        .16443E-04
   3  Normalizat    1.1117        .12167E-01    .34894E-03    .76890E-05
   4  Prefactor     .90069        .67028E-02    .20982E-03    .12679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100696
  Index      = 1.89945
  Normalizat = 1.11173
  Prefactor  = 0.900691
 **********
 **   18 **HESSE 
 **********

 FCN=   8967.543     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10070E-03    257.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8995        8.2049        .50000       -.66888    
   3  Normalizat    1.1117        .26620E-01    .13958E-04   -.89376    
   4  Prefactor     .90069        .14664E-01    .83929E-05   -.96117    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.69104e-09
Minuit parameter uncertainties:
  1  0.0269146
  2  314.941
  3  0.02662
  4  0.0146642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857709': 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) = 8967.54300216
delta logL = 2.61519744527e-07

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.007e-04  2.691e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.899e+00  3.149e+02  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.007e-01  1.466e-02  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.112e+00  2.662e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/857709/cmap_HighResolution_679190401_679449601_4FGL_J2245.9+1544_daily_bin1697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2022-07-14 00:50:26.100859', job_id='857709', GAL2='0.90', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1657785026.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1697' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul 14 00:50:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 857709: <4FGL_J2245.9+1544_daily_bin1697> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1697> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jul 14 00:35:53 2022
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 14 00:35:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 14 00:35:54 2022
Terminated at Thu Jul 14 00:50:26 2022
Results reported at Thu Jul 14 00:50:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1697 341.491 15.7479 679190401 679449601 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

