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


Performing analysis on: 4FGL_J1724.9+7654_monthly_bin167
RA = 261.233, Dec = 76.9152
tmin = 669859201, tmax = 672451201
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='901097', job_status='RUN', time_executed='2022-04-24 02:33:45.999619', time_epoch_executed='1650792826.0' WHERE source_name='4FGL J1724.9+7654' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901097

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901097/ft1_4FGL_J1724.9+7654_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901097/ft1_4FGL_J1724.9+7654_monthly_bin167.fits outfile=/scratch/kocevski/901097/ft1_filteredMKT_4FGL_J1724.9+7654_monthly_bin167.fits ra=261.233 dec=76.9152 rad=12.0 tmin=669859201.0 tmax=672451201.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 39.14
user 37.43
sys 0.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.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/901097/ft1_filteredMKT_4FGL_J1724.9+7654_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.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.85
user 0.68
sys 0.16

Number of photons that the gtmktime cut: 10606

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/901097/ltcube_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.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/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits
.....................!
real 110.49
user 109.90
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/901097/ltcube_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.fits outfile=/scratch/kocevski/901097/expmap_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.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/901097/ltcube_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.fits
.....................!
real 191.76
user 185.77
sys 5.60

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

Setting source of interest to:
4FGL J1724.9+7654 @ 261.233 76.9152

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.fits scfile=/scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits outfile=/scratch/kocevski/901097/cmap_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.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.233 yref=76.9152 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.80
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.fits scfile=/scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits outfile=/scratch/kocevski/901097/cmap_HighResolution_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.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.233 yref=76.9152 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.80
user 0.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901097/Model_4FGL_J1724.9+7654_monthly_bin167.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/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.fits.....................!
real 1164.68
user 1160.10
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.fits', '/scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits', expMap='/scratch/kocevski/901097/expmap_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.fits', expCube='/scratch/kocevski/901097/ltcube_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/901097/Model_4FGL_J1724.9+7654_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1724.9+7654'

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  4.559e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
380        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/901097/ft1_filtered_4FGL_J1724.9+7654_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/901097/ft2_4FGL_J1724.9+7654_monthly_bin167.fits
Exposure map: /scratch/kocevski/901097/expmap_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.fits
Exposure cube: /scratch/kocevski/901097/ltcube_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/901097/Model_4FGL_J1724.9+7654_monthly_bin167.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) = 110387.67805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9285       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.499       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.597       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51866E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    16.207       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .42205E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2670       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5563       1.0000         .10000E-03   10000.    
    17 'norm      '    7.0550       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9183       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.066       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8910       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.181       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6009       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0172       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0317       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8218       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.5846       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95411       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   110387.6     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3282 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9561        3.5900         .0000        .56591E-02
   2  Prefactor     2.9286        2.8715         .0000        .28353E-01
   3  Prefactor     13.499        9.9675         .0000        .17679E-03
   4  Prefactor     1.2147        7.0551         .0000        .31033E-01
   5  Prefactor     21.595        9.4572         .0000       -.71273E-02
   6  Prefactor     .10001E-03    3.7772         .0000    ** at limit **
   7  norm          16.207        4.6429         .0000        .19676E-02
   8  Prefactor     .10000E-03    5.5474         .0000    ** at limit **
   9  Prefactor     .10000E-03    3.2911         .0000    ** at limit **
  10  norm          .42189E-01    .80286E-01     .0000        .40726E-01
  11  Prefactor     3.2674        2.5589         .0000        .83848E-01
  12  Prefactor     .10000E-03    .11606         .0000    ** at limit **
  13  Prefactor     5.4600        3.7938         .0000        .28148E-02
  14  Prefactor     .10000E-03    5.8397         .0000    ** at limit **
  15  Prefactor     .10000E-03    4.2228         .0000    ** at limit **
  16  norm          3.5564        .72005         .0000        .12928E-02
  17  norm          7.0550        .34148         .0000       -.70283E-03
  18  norm          3.9184        1.2424         .0000        .54294E-02
  19  Prefactor     10.066        18.134         .0000        .21264E-03
  20  Prefactor     10.063        2.2406         .0000        .43978E-01
  21  Prefactor     5.8910        5.0904         .0000        .15232E-01
  22  Prefactor     14.181        12.702         .0000       -.73197E-05
  23  norm          1.6010        .77127         .0000        .62324E-02
  24  Prefactor     4.0188        1.4156         .0000        .15963    
  25  norm          1.0318        .65032         .0000        .82861E-02
  26  norm          1.8217        .79576         .0000        .56188E-02
  27  Prefactor     5.5847        3.0075         .0000        .47347E-02
  28  Normalizat    .95411        .51493E-01     .0000        .32518E-03
  29  Prefactor     1.0239        .28546E-01     .0000        .16372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.9561
  Prefactor  = 2.92861
  Prefactor  = 13.499
  Prefactor  = 1.21474
  Prefactor  = 21.5946
  Prefactor  = 0.00010001
  norm       = 16.2069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0421888
  Prefactor  = 3.26736
  Prefactor  = 0.0001
  Prefactor  = 5.45999
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.55643
  norm       = 7.055
  norm       = 3.91836
  Prefactor  = 10.0663
  Prefactor  = 10.0632
  Prefactor  = 5.89097
  Prefactor  = 14.1813
  norm       = 1.60097
  Prefactor  = 4.01883
  norm       = 1.03183
  norm       = 1.82169
  Prefactor  = 5.58469
  Normalizat = 0.95411
  Prefactor  = 1.02389
 **********
 **   18 **HESSE 
 **********

 FCN=   110387.6     FROM HESSE     STATUS=OK           579 CALLS     3861 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9561        3.5895        .14215E-03   -1.5144    
   2  Prefactor     2.9286        2.8650        .11869E-02   -1.5366    
   3  Prefactor     13.499        9.9675        .10902E-03   -1.4973    
   4  Prefactor     1.2147        7.2320        .20504E-02   -1.5488    
   5  Prefactor     21.595        9.4681        .86190E-04   -1.4778    
   6  Prefactor     .10001E-03    3.4716        .19532       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.207        4.6284        .49744E-03   -1.4903    
   8  Prefactor     .10000E-03    5.5510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .42189E-01    .10734        .11319E-02   -1.5667    
  11  Prefactor     3.2674        2.4923        .11202E-02   -1.5346    
  12  Prefactor     .10000E-03    .26790        .21673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4600        3.6818        .17197E-03   -1.5241    
  14  Prefactor     .10000E-03    6.0255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5564        .71820        .11976E-03   -1.5331    
  17  norm          7.0550        .34090        .40529E-04   -1.5177    
  18  norm          3.9184        1.2346        .18985E-03   -1.5312    
  19  Prefactor     10.066        18.127        .12630E-03   -1.5073    
  20  Prefactor     10.063        2.2261        .63157E-03   -1.5073    
  21  Prefactor     5.8910        5.0252        .82727E-03   -1.5222    
  22  Prefactor     14.181        12.704        .10636E-03   -1.4955    
  23  norm          1.6010        .75978        .18675E-03   -1.5455    
  24  Prefactor     4.0188        1.4108        .10060E-02   -1.5307    
  25  norm          1.0318        .63504        .20354E-03   -1.5505    
  26  norm          1.8217        .79463        .18698E-03   -1.5438    
  27  Prefactor     5.5847        3.0032        .17000E-03   -1.5235    
  28  Normalizat    .95411        .57472E-01    .32977E-03   -.94584    
  29  Prefactor     1.0239        .32213E-01    .18647E-03   -.91937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6136e-07
Minuit parameter uncertainties:
  1  3.58957
  2  2.86512
  3  9.96868
  4  5.92872
  5  9.46876
  6  0.000364062
  7  4.62848
  8  3.10164e-05
  9  1.61325e-05
  10  0.107339
  11  2.4924
  12  2.55996e-06
  13  3.68194
  14  0.000167592
  15  6.53157e-05
  16  0.718204
  17  0.340903
  18  1.2346
  19  18.137
  20  2.22607
  21  5.02552
  22  12.706
  23  0.759789
  24  1.41081
  25  0.635043
  26  0.794635
  27  3.00332
  28  0.0574754
  29  0.0322134
Done.

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

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  1.676e-04  1.000e-04  1.000e+04 ( 1.000e-13)
380        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  1.024e+00  3.221e-02  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  9.541e-01  5.748e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 261.233 76.915
Photon Flux Upper Limit: 1.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901097/likelihoodResults_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.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) = 110387.623986
delta logL = -0.000792468868895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 110387.623193
delta logL = -5.41767803952e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7200       1.0000          .0000       10.000    
     3 'Normalizat'    .95412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   110387.6     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5420        .90712E-02** at limit **
   2  Index         2.7224        6.3564        .50000       -.35823E-05
   3  Normalizat    .95411        .16112E-02    .74522E-01    .41410E-03
   4  Prefactor     1.0239        .94511E-03    .41773E-01    .12096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.72241
  Normalizat = 0.95411
  Prefactor  = 1.02389
 **********
 **   18 **HESSE 
 **********

 FCN=   110387.6     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      251 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    595.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7224        6.0645        .50000       -.47295    
   3  Normalizat    .95411        .15215E-01    .32977E-03   -.94584    
   4  Prefactor     1.0239        .89339E-02    .18647E-03   -.91937    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.90064e-07
Minuit parameter uncertainties:
  1  0.000347025
  2  1200.62
  3  0.0152147
  4  0.0089339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901097': 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) = 110387.623193
delta logL = 4.13274392486e-09

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  3.470e-04  1.000e-04  1.000e+04 ( 1.000e-13)
380        Index:  2.722e+00  1.201e+03  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  1.024e+00  8.934e-03  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  9.541e-01  1.521e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 261.233 76.915

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/901097/cmap_HighResolution_669859201_672451201_4FGL_J1724.9+7654_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-03', job_status='DONE', photon_flux_upper_limit='1.71e-08', time_completed='2022-04-24 05:37:23.178414', job_id='901097', GAL2='1.02', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1650803843.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.13e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='167' AND source_name='4FGL J1724.9+7654' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:37:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 901097: <4FGL_J1724.9+7654_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1724.9+7654_monthly_bin167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 02:05:36 2022
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:31:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:31:25 2022
Terminated at Sun Apr 24 05:37:24 2022
Results reported at Sun Apr 24 05:37:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.9+7654_monthly_bin167 261.233 76.9152 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1724.9+7654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10954.00 sec.
    Max Memory :                                 987 MB
    Average Memory :                             472.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11158 sec.
    Turnaround time :                            12708 sec.

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

