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


Performing analysis on: 4FGL_J1724.2+4005_daily_bin1715
RA = 261.051, Dec = 40.0891
tmin = 683856001, tmax = 684115201
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='178612', job_status='RUN', time_executed='2022-09-16 20:05:56.616572', time_epoch_executed='1663383956.62' WHERE source_name='4FGL J1724.2+4005' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178612/ft1_4FGL_J1724.2+4005_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178612/ft2_4FGL_J1724.2+4005_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178612/ft1_4FGL_J1724.2+4005_daily_bin1715.fits outfile=/scratch/kocevski/178612/ft1_filteredMKT_4FGL_J1724.2+4005_daily_bin1715.fits ra=261.051 dec=40.0891 rad=12.0 tmin=683856001.0 tmax=684115201.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.49
user 3.27
sys 0.20

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

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

Number of photons that the gtmktime cut: 647

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178612/ft1_filtered_4FGL_J1724.2+4005_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/178612/ft2_4FGL_J1724.2+4005_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/178612/ltcube_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.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/178612/ft2_4FGL_J1724.2+4005_daily_bin1715.fits
.....................!
real 16.11
user 15.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178612/ft1_filtered_4FGL_J1724.2+4005_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/178612/ft2_4FGL_J1724.2+4005_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/178612/ltcube_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.fits outfile=/scratch/kocevski/178612/expmap_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.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/178612/ltcube_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.fits
.....................!
real 195.33
user 190.29
sys 4.68

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/178612/ft1_filtered_4FGL_J1724.2+4005_daily_bin1715.fits scfile=/scratch/kocevski/178612/ft2_4FGL_J1724.2+4005_daily_bin1715.fits outfile=/scratch/kocevski/178612/cmap_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178612/ft1_filtered_4FGL_J1724.2+4005_daily_bin1715.fits scfile=/scratch/kocevski/178612/ft2_4FGL_J1724.2+4005_daily_bin1715.fits outfile=/scratch/kocevski/178612/cmap_HighResolution_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.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.58
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/178612/ft1_filtered_4FGL_J1724.2+4005_daily_bin1715.fits', '/scratch/kocevski/178612/ft2_4FGL_J1724.2+4005_daily_bin1715.fits', expMap='/scratch/kocevski/178612/expmap_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.fits', expCube='/scratch/kocevski/178612/ltcube_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/178612/Model_4FGL_J1724.2+4005_daily_bin1715.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/178612/ft1_filtered_4FGL_J1724.2+4005_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/178612/ft2_4FGL_J1724.2+4005_daily_bin1715.fits
Exposure map: /scratch/kocevski/178612/expmap_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.fits
Exposure cube: /scratch/kocevski/178612/ltcube_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/178612/Model_4FGL_J1724.2+4005_daily_bin1715.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) = 6868.22002556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83056E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .73314E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .20973E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    8.1728       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.1049       1.0000          .0000       .10000E+07
     6 'norm      '    .45176E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33307E-09   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.6795       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11102E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .13428E-06   1.0000          .0000       .10000E+07
    11 'norm      '    3.5514       1.0000          .0000       .10000E+07
    12 'norm      '    .19634E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .93181E-06   1.0000          .0000       .10000E+07
    14 'norm      '    1.0489       1.0000          .0000       .10000E+07
    15 'norm      '    .23060E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .49075       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22052       1.0000          .0000       .10000E+07
    18 'norm      '    .35194E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .35669E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11500       1.0000          .0000       .10000E+07
    21 'norm      '    .45182E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    25.717       1.0000          .0000       .10000E+07
    23 'Prefactor '    7.1825       1.0000          .0000       .10000E+07
    24 'Prefactor '    9.1712       1.0000          .0000       .10000E+07
    25 'norm      '    .40579E-07   1.0000          .0000       .10000E+07
    26 'norm      '    .14154E-01   1.0000          .0000       .10000E+07
    27 'norm      '    4.6086       1.0000          .0000       .10000E+07
    28 'Prefactor '    .35809E-05   1.0000          .0000       .10000E+07
    29 'Normalizat'    1.1722       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88126       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=   6866.411     FROM MIGRAD    STATUS=CONVERGED    216 CALLS     1790 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8108       -.54401E-06** at limit **
   2  norm          .71827E-01    .97713E-01   -.21179E-07** at limit **
   3  norm          .30531E-08    8.7410       -.61102E-06** at limit **
   4  Prefactor     8.7777        5.5481        .10657E-06   -.19528E-01
   5  Prefactor     4.1060        4.2626        .87127E-07   -.64214E-03
   6  norm          .19262E-06    11.675       -.82348E-06** at limit **
   7  Prefactor      .0000        2.0600        .10583E-06** at limit **
   8  Prefactor     1.6779        1.0947       -.39881E-08   -.12051E-02
   9  Prefactor      .0000        1.5863        .17935E-06** at limit **
  10  Prefactor      .0000        2.5089       -.66594E-07** at limit **
  11  norm          3.5513        1.7208        .16411E-07   -.18298E-02
  12  norm           .0000        1.7220       -.24396E-06** at limit **
  13  Prefactor     .19151E-07    34.112        .28600E-05** at limit **
  14  norm          1.0497        .86404        .41072E-07   -.14071E-02
  15  norm          .18706E-05    5.9619       -.58369E-06** at limit **
  16  norm          .49437        1.4026        .89896E-06    .12954E-02
  17  Prefactor     .22727        14.052       -.42272E-06** at limit **
  18  norm           .0000        1.6757        .24674E-07** at limit **
  19  Prefactor     .14744E-06    48.531       -.20784E-05** at limit **
  20  Prefactor     .24980E-08    55.165       -.30662E-05** at limit **
  21  norm          .44409E-09    8.1825        .10907E-05** at limit **
  22  Prefactor     24.851        47.998       -.10521E-05    .57014E-02
  23  Prefactor     7.0378        7.1000        .11888E-05   -.14897E-01
  24  Prefactor     9.2001        7.7932       -.13202E-05   -.20608E-01
  25  norm           .0000        .71918       -.15635E-07** at limit **
  26  norm          .67002E-07    16.280       -.80851E-06** at limit **
  27  norm          4.7421        8.2141        .16492E-05    .14232E-01
  28  Prefactor     .20355E-05    3.7711       -.90720E-06** at limit **
  29  Normalizat    1.1712        .23084       -.54275E-05    .24372E-04
  30  Prefactor     .88168        .15413        .17712E-05    .35064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.0718268
  norm       = 3.05311e-09
  Prefactor  = 8.77771
  Prefactor  = 4.10598
  norm       = 1.92624e-07
  Prefactor  = 0
  Prefactor  = 1.67795
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.55128
  norm       = 0
  Prefactor  = 1.91513e-08
  norm       = 1.04972
  norm       = 1.87061e-06
  norm       = 0.494372
  Prefactor  = 0.227266
  norm       = 0
  Prefactor  = 1.47438e-07
  Prefactor  = 2.498e-09
  norm       = 4.44089e-10
  Prefactor  = 24.8507
  Prefactor  = 7.03783
  Prefactor  = 9.20011
  norm       = 0
  norm       = 6.7002e-08
  norm       = 4.74209
  Prefactor  = 2.03548e-06
  Normalizat = 1.17117
  Prefactor  = 0.881676
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.411     FROM HESSE     STATUS=OK           670 CALLS     2460 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .71827E-01    .13475        .64513E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .30531E-08    8.8027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7777        21.551        .35046E-03   -1.5649    
   5  Prefactor     4.1060        4.2903        .49733E-03   -1.5667    
   6  norm          .19262E-06    16.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.2292        .22527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6779        1.3266        .81260E-04   -1.5682    
   9  Prefactor      .0000        1.5846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.4957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5513        1.7228        .53609E-03   -1.5670    
  12  norm           .0000        .39870        .27761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19151E-07    33.944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0497        .89308        .12103E-02   -1.5687    
  15  norm          .18706E-05    18.369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .49437        1.4189        .79645E-03   -1.5694    
  17  Prefactor     .22727        2.0279        .69845E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.6736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14744E-06    60.747        .16165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .24980E-08    55.351        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .44409E-09    8.1192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.851        48.584        .19723E-03   -1.5608    
  23  Prefactor     7.0378        9.9136        .37404E-03   -1.5655    
  24  Prefactor     9.2001        8.6662        .33070E-03   -1.5647    
  25  norm           .0000        .71824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .67002E-07    19.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.7421        8.8262        .46862E-03   -1.5664    
  28  Prefactor     .20355E-05    3.3341        .54960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1712        .19642        .60059E-01   -.87498    
  30  Prefactor     .88168        .12901        .44766E-01   -.96784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64253e-07
Minuit parameter uncertainties:
  1  5.82734e-06
  2  0.134754
  3  0.000329363
  4  21.5511
  5  4.29027
  6  0.00352278
  7  1.03834e-06
  8  1.32663
  9  1.12491e-05
  10  4.37802e-06
  11  1.72284
  12  4.64027e-07
  13  0.00161357
  14  0.893078
  15  0.0117237
  16  1.41895
  17  1.35774
  18  5.89257e-06
  19  0.005985
  20  0.000742868
  21  0.000117185
  22  48.5849
  23  9.91365
  24  8.66625
  25  2.16899e-08
  26  0.00231026
  27  8.8262
  28  0.00521015
  29  0.196539
  30  0.129052
Done.

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

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  1.871e-06  1.172e-02  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.817e-01  1.291e-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.171e+00  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/178612/likelihoodResults_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.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) = 6866.44147648
delta logL = -0.0306268978293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6866.37556122
delta logL = 0.0352883618134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36491       1.0000          .0000       .10000E+07
     2 'alpha     '    4.1834       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88745       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6866.376     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      262 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36545        212.88        .13894E-03    .83679E-02
   2  alpha         4.1849        3.5985        .10352        .13082E-04
   3  Normalizat    1.1544        .10526        .26732E-03    .43685E-03
   4  Prefactor     .88756        .72475E-01    .20736E-03    .87723E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.365448
  alpha      = 4.18486
  Normalizat = 1.15444
  Prefactor  = 0.88756
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.376     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36545        5.8298        .55575E-05   -1.5696    
   2  alpha         4.1849        4.5143        .41408E-02    .73953    
   3  Normalizat    1.1544        .22706        .53464E-04   -.88022    
   4  Prefactor     .88756        .15323        .82942E-05   -.96577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41352e-10
Minuit parameter uncertainties:
  1  2.91923
  2  4.92356
  3  0.227253
  4  0.1533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178612': 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) = 6866.37556058
delta logL = 0.0352890024988

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  3.654e-01  2.919e+00  0.000e+00  1.000e+06 ( 1.000e-12)
331        alpha:  4.185e+00  4.924e+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.876e-01  1.533e-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.154e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 261.051 40.089

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/178612/cmap_HighResolution_683856001_684115201_4FGL_J1724.2+4005_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2022-09-16 20:19:13.573176', job_id='178612', GAL2='0.89', fit_tolerance='1e-08', EG2='1.15', EG='1.17', time_epoch_completed='1663384753.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.53e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1715' AND source_name='4FGL J1724.2+4005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:19:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 178612: <4FGL_J1724.2+4005_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1724.2+4005_daily_bin1715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 20:05:20 2022
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 20:05:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 20:05:40 2022
Terminated at Fri Sep 16 20:19:14 2022
Results reported at Fri Sep 16 20:19:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.2+4005_daily_bin1715 261.051 40.0891 683856001 684115201 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 :                                   799.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            834 sec.

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

