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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin1751
RA = 191.288, Dec = 57.158
tmin = 693187201, tmax = 693446401
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='77712', job_status='RUN', time_executed='2022-12-23 00:42:08.138414', time_epoch_executed='1671784928.14' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77712

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77712/ft1_4FGL_J1245.1+5709_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77712/ft1_4FGL_J1245.1+5709_daily_bin1751.fits outfile=/scratch/kocevski/77712/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1751.fits ra=191.288 dec=57.158 rad=12.0 tmin=693187201.0 tmax=693446401.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.62
user 3.40
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.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/77712/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.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.33
sys 0.15

Number of photons that the gtmktime cut: 535

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/77712/ltcube_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.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/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits
.....................!
real 12.01
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/77712/ltcube_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.fits outfile=/scratch/kocevski/77712/expmap_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.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/77712/ltcube_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.fits
.....................!
real 192.01
user 186.47
sys 5.18

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

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.fits scfile=/scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits outfile=/scratch/kocevski/77712/cmap_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.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=191.288 yref=57.158 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.fits scfile=/scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits outfile=/scratch/kocevski/77712/cmap_HighResolution_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.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=191.288 yref=57.158 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77712/Model_4FGL_J1245.1+5709_daily_bin1751.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/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.fits.....................!
real 52.67
user 51.35
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.fits', '/scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits', expMap='/scratch/kocevski/77712/expmap_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.fits', expCube='/scratch/kocevski/77712/ltcube_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77712/Model_4FGL_J1245.1+5709_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77712/ft1_filtered_4FGL_J1245.1+5709_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/77712/ft2_4FGL_J1245.1+5709_daily_bin1751.fits
Exposure map: /scratch/kocevski/77712/expmap_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.fits
Exposure cube: /scratch/kocevski/77712/ltcube_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77712/Model_4FGL_J1245.1+5709_daily_bin1751.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) = 5885.08692324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15040E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.022       1.0000          .0000       .10000E+07
     3 'norm      '    .25549E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13315E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .87256       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5219       1.0000          .0000       .10000E+07
     7 'Prefactor '    .21069E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.673       1.0000          .0000       .10000E+07
     9 'norm      '    .15732E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.1764       1.0000          .0000       .10000E+07
    11 'norm      '    4.7968       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.6665       1.0000          .0000       .10000E+07
    13 'Prefactor '    .98612E-04   1.0000          .0000       .10000E+07
    14 'norm      '    2.9683       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.7459       1.0000          .0000       .10000E+07
    16 'norm      '    .19817E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .68580E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .32691E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.1796       1.0000          .0000       .10000E+07
    20 'Prefactor '    .10581E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    13.224       1.0000          .0000       .10000E+07
    22 'norm      '    .11494E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .13962E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .15846E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .46299E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    .91676       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95608       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5885.039     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1833 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8489        .23560E-07** at limit **
   2  Prefactor     18.276        2.9022        .42743E-08    .20257E-02
   3  norm          .88818E-09    6.9676       -.12516E-06** at limit **
   4  Prefactor      .0000        2.0799        .22658E-07** at limit **
   5  norm          .88420        2.1434       -.42202E-07   -.18319E-02
   6  Prefactor     2.5188        4.0008       -.25213E-07    .28705E-01
   7  Prefactor      .0000        2.6542       -.15318E-08** at limit **
   8  Prefactor     13.499        1.1847       -.29980E-08   -.11579E-01
   9  norm          .22760E-08    4.1267        .91266E-07** at limit **
  10  Prefactor     5.1756        1.3159        .44234E-08   -.37365E-01
  11  norm          4.7983        5.5139       -.64236E-07   -.33337E-02
  12  Prefactor     9.5789        2.4122        .70928E-08   -.95607E-02
  13  Prefactor      .0000        3.2055       -.18245E-08** at limit **
  14  norm          2.9671        1.6765       -.40490E-07   -.11043E-01
  15  Prefactor     3.7251        1.2608        .15214E-08    .54598E-02
  16  norm           .0000        .76380       -.29641E-07** at limit **
  17  Prefactor     .12729E-06    14.043       -.10717E-06** at limit **
  18  Prefactor     .55511E-09    7.5131       -.19236E-06** at limit **
  19  norm          5.1755        3.7028        .13344E-07    .23919E-02
  20  Prefactor     .14821E-06    55.723        .46633E-06** at limit **
  21  Prefactor     12.890        6.2619        .42411E-07   -.10138    
  22  norm           .0000        1.0161       -.36759E-10** at limit **
  23  Prefactor     .20389E-06    15.702        .59077E-07** at limit **
  24  Prefactor      .0000        2.3102        .81259E-07** at limit **
  25  norm           .0000        .89464        .22749E-07** at limit **
  26  Normalizat    .91738        .16809        .83850E-07   -.22122E-03
  27  Prefactor     .95625        .21253       -.78828E-06   -.20026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 18.2762
  norm       = 8.88178e-10
  Prefactor  = 0
  norm       = 0.884198
  Prefactor  = 2.51883
  Prefactor  = 0
  Prefactor  = 13.4987
  norm       = 2.27596e-09
  Prefactor  = 5.17558
  norm       = 4.7983
  Prefactor  = 9.57895
  Prefactor  = 0
  norm       = 2.96709
  Prefactor  = 3.72514
  norm       = 0
  Prefactor  = 1.27287e-07
  Prefactor  = 5.55112e-10
  norm       = 5.17554
  Prefactor  = 1.48215e-07
  Prefactor  = 12.8897
  norm       = 0
  Prefactor  = 2.03892e-07
  Prefactor  = 0
  norm       = 0
  Normalizat = 0.917376
  Prefactor  = 0.95625
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.039     FROM HESSE     STATUS=OK           542 CALLS     2375 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.276        18.671        .22937E-03   -1.5622    
   3  norm          .88818E-09    7.3576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.0710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .88420        2.1721        .47676E-03   -1.5689    
   6  Prefactor     2.5188        13.923        .64302E-03   -1.5676    
   7  Prefactor      .0000        2.6536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.499        14.493        .27062E-03   -1.5634    
   9  norm          .22760E-08    1.2487        .31497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1756        7.9259        .44161E-03   -1.5662    
  11  norm          4.7983        6.0859        .45912E-03   -1.5664    
  12  Prefactor     9.5789        20.896        .32207E-03   -1.5646    
  13  Prefactor      .0000        3.2145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9671        1.6752        .58909E-03   -1.5674    
  15  Prefactor     3.7251        22.527        .52143E-03   -1.5669    
  16  norm           .0000        .76135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12729E-06    14.460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-09    7.9010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1755        3.7683        .44148E-03   -1.5662    
  20  Prefactor     .14821E-06    55.921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.890        26.226        .27519E-03   -1.5636    
  22  norm           .0000        1.0150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .20389E-06    16.686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        2.2946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        .89402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91738        .14683        .45115E-01   -.95852    
  27  Prefactor     .95625        .18095        .45716E-01   -.94202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82917e-07
Minuit parameter uncertainties:
  1  1.95426e-06
  2  18.6709
  3  0.000162171
  4  4.7129e-07
  5  2.17215
  6  11.8438
  7  3.00967e-06
  8  14.4935
  9  0.000106567
  10  7.92587
  11  6.08594
  12  20.896
  13  1.36753e-05
  14  1.67522
  15  18.3211
  16  8.03313e-06
  17  0.00271329
  18  0.000130279
  19  3.76829
  20  0.00575761
  21  26.226
  22  3.42094e-06
  23  0.00368924
  24  1.70469e-06
  25  2.23109e-06
  26  0.146896
  27  0.181069
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  0.000e+00  1.368e-05  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  9.563e-01  1.811e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  9.174e-01  1.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 191.288 57.158
Photon Flux Upper Limit: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77712/likelihoodResults_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.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) = 5885.03951072
delta logL = -0.0005968478863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5885.03891411
delta logL = -2.4048040359e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     2 'Index     '    .38524       1.0000          .0000       10.000    
     3 'Normalizat'    .91742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+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=   5885.019     FROM MIGRAD    STATUS=FAILED       134 CALLS      330 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13374E-01    12.788        .26397E-04** at limit **
   2  Index         4.1942        7.8988        .20000E-01    .78303E-03
   3  Normalizat    .90586        .72742E-01    .20845E-03   -.11884E-03
   4  Prefactor     .96490        .91506E-01    .25615E-03   -.16022E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5885.019     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      428 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13374E-01    12.788        .50725E-05** at limit **
   2  Index         4.1942        7.8988        .26370E-02    .78303E-03
   3  Normalizat    .90586        .72742E-01    .68641E-04   -.11884E-03
   4  Prefactor     .96490        .91506E-01    .57567E-04   -.16022E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5885.019     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      460 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13374E-01    15.333        .52793E-05** at limit **
   2  Index         4.1941        7.6854        .40000E-02   -.61135E-05
   3  Normalizat    .90586        .14873        .83380E-05   -.10799E-03
   4  Prefactor     .96490        .18170        .10246E-04   -.15246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0133741
  Index      = 4.19415
  Normalizat = 0.905859
  Prefactor  = 0.964902
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.019     FROM HESSE     STATUS=OK            27 CALLS      487 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13374E-01    .54405        .21117E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1941        3.9683        .16000E-03   -.16188    
   3  Normalizat    .90586        .17724        .16676E-05   -.96255    
   4  Prefactor     .96490        .21745        .20492E-05   -.93909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87676e-11
Minuit parameter uncertainties:
  1  0.170602
  2  4.61029
  3  0.177353
  4  0.21765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77712': 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) = 5885.01912395
delta logL = 0.0197899207024

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.337e-02  1.706e-01  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  4.194e+00  4.610e+00  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  9.649e-01  2.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  9.059e-01  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 191.288 57.158

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/77712/cmap_HighResolution_693187201_693446401_4FGL_J1245.1+5709_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2022-12-23 00:53:25.621053', job_id='77712', GAL2='0.96', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1671785605.62', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.98e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1751' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:53:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 77712: <4FGL_J1245.1+5709_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:40:17 2022
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:40:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:40:18 2022
Terminated at Fri Dec 23 00:53:26 2022
Results reported at Fri Dec 23 00:53:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin1751 191.288 57.158 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1245.1+5709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   679.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            789 sec.

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

