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


Performing analysis on: 4FGL_J1724.2+4005_daily_bin1766
RA = 261.051, Dec = 40.0891
tmin = 697075201, tmax = 697334401
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='853900', job_status='RUN', time_executed='2023-02-06 01:06:32.667050', time_epoch_executed='1675674392.67' WHERE source_name='4FGL J1724.2+4005' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853900/ft1_4FGL_J1724.2+4005_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853900/ft1_4FGL_J1724.2+4005_daily_bin1766.fits outfile=/scratch/kocevski/853900/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1766.fits ra=261.051 dec=40.0891 rad=12.0 tmin=697075201.0 tmax=697334401.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.73
user 3.49
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.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/853900/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.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: 716

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/853900/ltcube_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.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/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits
.....................!
real 14.06
user 13.55
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/853900/ltcube_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.fits outfile=/scratch/kocevski/853900/expmap_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.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/853900/ltcube_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.fits
.....................!
real 194.00
user 186.88
sys 5.87

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

Setting source of interest to:
4FGL J1724.2+4005 @ 261.051 40.0891

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.fits scfile=/scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits outfile=/scratch/kocevski/853900/cmap_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.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=261.051 yref=40.0891 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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.fits scfile=/scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits outfile=/scratch/kocevski/853900/cmap_HighResolution_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.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=261.051 yref=40.0891 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853900/Model_4FGL_J1724.2+4005_daily_bin1766.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/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.fits.....................!
real 63.57
user 61.94
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.fits', '/scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits', expMap='/scratch/kocevski/853900/expmap_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.fits', expCube='/scratch/kocevski/853900/ltcube_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/853900/Model_4FGL_J1724.2+4005_daily_bin1766.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1724.2+4005'

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  4.785e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  2.332e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  1.393e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/853900/ft1_filtered_4FGL_J1724.2+4005_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/853900/ft2_4FGL_J1724.2+4005_daily_bin1766.fits
Exposure map: /scratch/kocevski/853900/expmap_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.fits
Exposure cube: /scratch/kocevski/853900/ltcube_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/853900/Model_4FGL_J1724.2+4005_daily_bin1766.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) = 7641.06721921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81172E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .30273       1.0000          .0000       .10000E+07
     3 'norm      '    .14849E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .67018E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .55742E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .99881E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16670E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19033       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.9261       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.4666       1.0000          .0000       .10000E+07
    11 'norm      '    3.0880       1.0000          .0000       .10000E+07
    12 'norm      '    .95905       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.6302       1.0000          .0000       .10000E+07
    14 'norm      '    .87708E-07   1.0000          .0000       .10000E+07
    15 'norm      '    7.2385       1.0000          .0000       .10000E+07
    16 'norm      '    2.5459       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.7136       1.0000          .0000       .10000E+07
    18 'norm      '    14.744       1.0000          .0000       .10000E+07
    19 'Prefactor '    .56957       1.0000          .0000       .10000E+07
    20 'Prefactor '    9.2387       1.0000          .0000       .10000E+07
    21 'norm      '    2.2784       1.0000          .0000       .10000E+07
    22 'Prefactor '    .54312E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .79611E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    5.5782       1.0000          .0000       .10000E+07
    25 'norm      '    .75835       1.0000          .0000       .10000E+07
    26 'norm      '    55.174       1.0000          .0000       .10000E+07
    27 'norm      '    4.6885       1.0000          .0000       .10000E+07
    28 'Prefactor '    .43838E-03   1.0000          .0000       .10000E+07
    29 'Normalizat'    1.0162       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7641.018     FROM MIGRAD    STATUS=CONVERGED    246 CALLS     2329 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        27.214       -.70176E-06** at limit **
   2  norm          .30239        .12559        .70396E-08    .44389E-02
   3  norm           .0000        7.8122       -.12769E-06** at limit **
   4  Prefactor      .0000        10.474        .14931E-06** at limit **
   5  Prefactor      .0000        1.4006       -.39744E-07** at limit **
   6  norm           .0000        14.841       -.38820E-06** at limit **
   7  Prefactor      .0000        2.1278        .95554E-07** at limit **
   8  Prefactor     .18969        .66186       -.22392E-07** at limit **
   9  Prefactor     4.9504        3.5188        .61866E-07   -.16974E-03
  10  Prefactor     2.4594        2.9227       -.63255E-07    .23609E-03
  11  norm          3.0859        1.4642        .41896E-07   -.23963E-03
  12  norm          .95686        .65091       -.44003E-08    .69852E-03
  13  Prefactor     9.6259        6.2815        .96072E-07    .19568E-03
  14  norm           .0000        .49096        .91023E-08** at limit **
  15  norm          7.2264        7.5409        .14979E-07    .79344E-05
  16  norm          2.5412        1.8048        .29279E-07    .56994E-03
  17  Prefactor     2.7147        2.5318       -.46880E-07    .16792E-03
  18  norm          14.775        6.5682        .16124E-07    .94285E-03
  19  Prefactor     .11102E-09    139.78        .28460E-05** at limit **
  20  Prefactor     7.0999        272.71       -.32834E-05    .25366E-03
  21  norm          2.2701        3.0554        .51011E-07   -.14143E-03
  22  Prefactor      .0000        19.932       -.34814E-06** at limit **
  23  Prefactor      .0000        4.6404       -.10205E-06** at limit **
  24  Prefactor     5.5732        6.4498       -.58665E-09    .21488E-03
  25  norm          .75808        .84926        .13954E-07   -.36211E-04
  26  norm          50.742        50.232       -.25531E-06    .27676E-03
  27  norm          4.6780        5.6387        .20564E-07    .40804E-04
  28  Prefactor      .0000        3.4837       -.15026E-07** at limit **
  29  Normalizat    1.0168        .23148       -.47339E-05    .66325E-04
  30  Prefactor     .88746        .15043        .13870E-05    .70805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.302391
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0.189686
  Prefactor  = 4.95036
  Prefactor  = 2.45939
  norm       = 3.08591
  norm       = 0.956861
  Prefactor  = 9.62593
  norm       = 0
  norm       = 7.22644
  norm       = 2.54118
  Prefactor  = 2.71472
  norm       = 14.7747
  Prefactor  = 1.11022e-10
  Prefactor  = 7.09985
  norm       = 2.27008
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.57323
  norm       = 0.758077
  norm       = 50.7423
  norm       = 4.67802
  Prefactor  = 0
  Normalizat = 1.01678
  Prefactor  = 0.887465
 **********
 **   18 **HESSE 
 **********

 FCN=   7641.018     FROM HESSE     STATUS=OK           666 CALLS     2995 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.2611        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .30239        .12825        .42477E-03   -1.5697    
   3  norm           .0000        7.8125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        10.452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.3977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        14.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .44250        .29701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18969        .64730        .11950E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9504        3.5237        .45292E-03   -1.5663    
  10  Prefactor     2.4594        2.9351        .65084E-03   -1.5677    
  11  norm          3.0859        1.4633        .57689E-03   -1.5673    
  12  norm          .95686        .65305        .42310E-03   -1.5688    
  13  Prefactor     9.6259        6.2843        .32268E-03   -1.5646    
  14  norm           .0000        .47452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2264        7.5493        .37258E-03   -1.5654    
  16  norm          2.5412        1.8142        .63972E-03   -1.5676    
  17  Prefactor     2.7147        2.5282        .61803E-03   -1.5675    
  18  norm          14.775        6.5715        .26059E-03   -1.5631    
  19  Prefactor     .11102E-09    139.59        .71999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0999        285.57        .32949E-03   -1.5655    
  21  norm          2.2701        3.0699        .67998E-03   -1.5678    
  22  Prefactor      .0000        19.932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        4.6731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.5732        6.4572        .42513E-03   -1.5661    
  25  norm          .75808        .84814        .56092E-03   -1.5691    
  26  norm          50.742        50.308        .13464E-03   -1.5565    
  27  norm          4.6780        5.6498        .46451E-03   -1.5665    
  28  Prefactor      .0000        3.5072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0168        .19340        .64304E-01   -.92470    
  30  Prefactor     .88746        .12497        .44831E-01   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53684e-09
Minuit parameter uncertainties:
  1  1.34058e-05
  2  0.128247
  3  5.07283e-06
  4  4.77175e-06
  5  1.86726e-06
  6  1.04478e-05
  7  5.68566e-07
  8  0.647296
  9  3.52367
  10  2.93513
  11  1.46331
  12  0.65305
  13  6.28433
  14  2.54653e-07
  15  7.54927
  16  1.81424
  17  2.52816
  18  6.57155
  19  0.000226185
  20  90.0601
  21  3.0699
  22  3.43214e-05
  23  6.15064e-06
  24  6.45719
  25  0.848143
  26  50.3087
  27  5.64985
  28  4.85828e-07
  29  0.193532
  30  0.125005
Done.

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

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  7.226e+00  7.549e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  2.332e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  1.393e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  8.875e-01  1.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  1.017e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 261.051 40.089
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 8.91e-06 +/- 9.31e-06

TS (Fixed Index): 1.76
Ra Dec: 261.051 40.089
Photon Flux Upper Limit: 9.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853900/likelihoodResults_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.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) = 7641.01460675
delta logL = 0.00318750039514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7641.01430366
delta logL = 0.00349058789288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0988       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2229       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88625       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+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=   7641.014     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      263 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0992        7.6495        .15051E-04   -.17647E-01
   2  alpha         2.2226        1.2453        .32487E-01   -.12192E-03
   3  Normalizat    1.0203        .21504        .28400E-03    .21893E-03
   4  Prefactor     .88621        .14712        .20896E-03    .20531E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.09922
  alpha      = 2.22262
  Normalizat = 1.02032
  Prefactor  = 0.886205
 **********
 **   18 **HESSE 
 **********

 FCN=   7641.014     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0992        7.8084        .30101E-05   -1.5655    
   2  alpha         2.2226        1.2687        .12995E-02   -.11118    
   3  Normalizat    1.0203        .21527        .11360E-04   -.92353    
   4  Prefactor     .88621        .14722        .41792E-04   -.96625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.3854e-09
Minuit parameter uncertainties:
  1  7.80842
  2  1.33153
  3  0.215456
  4  0.147289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853900': 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) = 7641.0143036
delta logL = 0.0034906475139

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  7.099e+00  7.808e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  2.223e+00  1.332e+00  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  1.393e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  8.862e-01  1.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  1.020e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 261.051 40.089
Photon Index (Free Index): 2.22 +/- 1.33
Photon Flux (Free Index): 2.41e-08 +/- 4.48e-08
Energy Flux (Free Index): 8.81e-06 +/- 9.32e-06

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/853900/cmap_HighResolution_697075201_697334401_4FGL_J1724.2+4005_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='8.81e-06', photon_flux_error='2.84e-08', dlogl='3.49e-03', energy_flux='8.91e-06', photon_flux2='2.41e-08', job_status='DONE', time_completed='2023-02-06 01:21:40.801094', photon_index_error2='1.33', photon_index2='2.22', ts='1.76', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.53e-08', energy_flux_error2='9.32e-06', EG='1.02', time_epoch_completed='1675675300.8', return_code='0', job_id='853900', GAL2='0.89', EG2='1.02', return_code2='0', energy_flux_error='9.31e-06', photon_flux_error2='4.48e-08', ts2='1.77', photon_index='2.33' WHERE bin_id='1766' AND source_name='4FGL J1724.2+4005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:21:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 853900: <4FGL_J1724.2+4005_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1724.2+4005_daily_bin1766> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb  6 01:05:26 2023
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:06:10 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:06:10 2023
Terminated at Mon Feb  6 01:21:41 2023
Results reported at Mon Feb  6 01:21:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.2+4005_daily_bin1766 261.051 40.0891 697075201 697334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1724.2+4005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   908.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            975 sec.

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

