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


Performing analysis on: 4FGL_J1824.1+5651_monthly_bin170
RA = 276.039, Dec = 56.8585
tmin = 677635201, tmax = 680227201
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='114265', job_status='RUN', time_executed='2022-07-23 02:34:36.986554', time_epoch_executed='1658568876.99' WHERE source_name='4FGL J1824.1+5651' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114265

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114265/ft1_4FGL_J1824.1+5651_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114265/ft1_4FGL_J1824.1+5651_monthly_bin170.fits outfile=/scratch/kocevski/114265/ft1_filteredMKT_4FGL_J1824.1+5651_monthly_bin170.fits ra=276.039 dec=56.8585 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.37
user 31.37
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.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/114265/ft1_filteredMKT_4FGL_J1824.1+5651_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.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.87
user 0.65
sys 0.17

Number of photons that the gtmktime cut: 11219

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/114265/ltcube_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.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/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits
.....................!
real 115.43
user 114.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/114265/ltcube_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.fits outfile=/scratch/kocevski/114265/expmap_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.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/114265/ltcube_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.fits
.....................!
real 194.33
user 189.83
sys 4.12

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
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 201 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1824.1+5651 @ 276.039 56.8585

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.fits scfile=/scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits outfile=/scratch/kocevski/114265/cmap_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.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=276.039 yref=56.8585 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.79
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.fits scfile=/scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits outfile=/scratch/kocevski/114265/cmap_HighResolution_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.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=276.039 yref=56.8585 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.78
user 0.64
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/114265/Model_4FGL_J1824.1+5651_monthly_bin170.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
adding source HB 21
Working on...
/scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.fits.....................!
real 982.56
user 979.60
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.fits', '/scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits', expMap='/scratch/kocevski/114265/expmap_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.fits', expCube='/scratch/kocevski/114265/ltcube_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114265/Model_4FGL_J1824.1+5651_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1824.1+5651'

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  9.045e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
384        alpha:  2.304e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
385         beta:  6.472e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/114265/ft1_filtered_4FGL_J1824.1+5651_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/114265/ft2_4FGL_J1824.1+5651_monthly_bin170.fits
Exposure map: /scratch/kocevski/114265/expmap_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.fits
Exposure cube: /scratch/kocevski/114265/ltcube_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114265/Model_4FGL_J1824.1+5651_monthly_bin170.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) = 115001.660918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8118       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3385       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65618       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9542       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.661       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6124       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11619E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1721       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3497       1.0000         .10000E-03   10000.    
    18 'norm      '    8.0780       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3119       1.0000         .10000E-03   10000.    
    20 'norm      '    16.997       1.0000         .10000E-03   10000.    
    21 'norm      '    7.5771       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3437       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.3195       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.6582       1.0000         .10000E-03   10000.    
    28 'norm      '    1.6546       1.0000         .10000E-03   10000.    
    29 'norm      '    3.5764       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95232       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   115001.6     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     3598 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0397        4.1350       -.10053E-05   -.10551E-04
   2  Prefactor     1.8132        2.1610        .34481E-07    .20156E-03
   3  Prefactor     3.0447        1.3030       -.12697E-07   -.63309E-03
   4  Prefactor     1.3385        .66241        .61398E-08    .55896E-05
   5  Prefactor     .63266        6.8720       -.21582E-06    .42602E-04
   6  norm          .10000E-03    .38476        .10236E-07** at limit **
   7  Prefactor     9.9566        12.174       -.65098E-06    .18372E-04
   8  Prefactor     3.0154        1.2124        .90169E-08    .20675E-03
   9  Prefactor     .10000E-03    8.4913       -.32253E-05** at limit **
  10  Prefactor     10.668        19.734        .17772E-05    .18253E-04
  11  Prefactor     9.5456        9.9053       -.13574E-05    .96897E-05
  12  Prefactor     9.6119        4.2918       -.18114E-06    .25050E-04
  13  Prefactor     .10000E-03    .50560       -.12685E-07** at limit **
  14  Prefactor     6.1847        3.3346        .62004E-07   -.15798E-03
  15  Prefactor     8.1713        4.0539       -.17706E-06    .11040E-04
  16  Prefactor     .10000E-03    9.9674        .37403E-06** at limit **
  17  Prefactor     4.3496        1.7133       -.14037E-07   -.48832E-04
  18  norm          8.0783        2.1266       -.30640E-07    .16415E-04
  19  Prefactor     7.3122        4.7686       -.62147E-08   -.49638E-04
  20  norm          16.997        2.7957       -.70067E-07    .15814E-04
  21  norm          7.5773        2.4505        .27058E-07    .68926E-05
  22  Prefactor     7.3436        3.1549       -.19099E-06    .27655E-05
  23  Prefactor     .10000E-03    1.6094        .44217E-08** at limit **
  24  Prefactor     .10000E-03    8.3529        .27932E-05** at limit **
  25  norm          5.3195        .89694       -.60254E-08   -.17817E-03
  26  Prefactor     .10000E-03    .84320E-01   -.31531E-08** at limit **
  27  norm          3.6582        .64144       -.41589E-08   -.52420E-05
  28  norm          1.6546        .78859       -.74562E-08    .48157E-05
  29  norm          3.5765        1.6686        .31554E-07   -.57008E-03
  30  Normalizat    .95233        .57287E-01    .15571E-06    .18685E-03
  31  Prefactor     1.0045        .31385E-01   -.76359E-08    .35329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03973
  Prefactor  = 1.81318
  Prefactor  = 3.04472
  Prefactor  = 1.33846
  Prefactor  = 0.632661
  norm       = 0.0001
  Prefactor  = 9.9566
  Prefactor  = 3.01539
  Prefactor  = 0.0001
  Prefactor  = 10.668
  Prefactor  = 9.54565
  Prefactor  = 9.61187
  Prefactor  = 0.0001
  Prefactor  = 6.18468
  Prefactor  = 8.17133
  Prefactor  = 0.0001
  Prefactor  = 4.34965
  norm       = 8.07826
  Prefactor  = 7.31218
  norm       = 16.9969
  norm       = 7.57733
  Prefactor  = 7.34361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.31953
  Prefactor  = 0.0001
  norm       = 3.65819
  norm       = 1.65465
  norm       = 3.57649
  Normalizat = 0.952327
  Prefactor  = 1.00449
 **********
 **   18 **HESSE 
 **********

 FCN=   115001.6     FROM HESSE     STATUS=OK           648 CALLS     4246 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0397        4.1202        .28952E-03   -1.5422    
   2  Prefactor     1.8132        2.0308        .31037E-03   -1.5439    
   3  Prefactor     3.0447        1.8426        .11626E-02   -1.5359    
   4  Prefactor     1.3385        .65942        .18858E-03   -1.5477    
   5  Prefactor     .63266        5.9368        .19166       -1.5549    
   6  norm          .10000E-03    .39521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9566        12.084        .12701E-03   -1.5077    
   8  Prefactor     3.0154        1.2138        .22493E-03   -1.5361    
   9  Prefactor     .10000E-03    8.5561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.668        19.812        .12271E-03   -1.5055    
  11  Prefactor     9.5456        9.8459        .12974E-03   -1.5090    
  12  Prefactor     9.6119        4.2902        .12925E-03   -1.5088    
  13  Prefactor     .10000E-03    2.5915        .45679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1847        3.4676        .80712E-03   -1.5211    
  15  Prefactor     8.1713        4.0469        .14025E-03   -1.5136    
  16  Prefactor     .10000E-03    10.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3496        1.7139        .19313E-03   -1.5291    
  18  norm          8.0783        2.1264        .14107E-03   -1.5139    
  19  Prefactor     7.3122        4.7874        .74165E-03   -1.5167    
  20  norm          16.997        2.7947        .97147E-04   -1.4883    
  21  norm          7.5773        2.4495        .14569E-03   -1.5157    
  22  Prefactor     7.3436        3.1530        .14801E-03   -1.5166    
  23  Prefactor     .10000E-03    1.6224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.3639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.3195        .89546        .12646E-03   -1.5247    
  26  Prefactor     .10000E-03    .27683        .19052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6582        .64167        .11023E-03   -1.5325    
  28  norm          1.6546        .79730        .19965E-03   -1.5451    
  29  norm          3.5765        2.1071        .10685E-02   -1.5330    
  30  Normalizat    .95233        .66797E-01    .34668E-03   -.94645    
  31  Prefactor     1.0045        .36778E-01    .19928E-03   -.92580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49353e-09
Minuit parameter uncertainties:
  1  4.12073
  2  2.03086
  3  1.84266
  4  0.659427
  5  3.87626
  6  1.03242e-06
  7  12.0874
  8  1.21377
  9  7.96589e-06
  10  19.8239
  11  9.8476
  12  4.29034
  13  2.06979e-06
  14  3.46768
  15  4.04706
  16  5.18431e-07
  17  1.71392
  18  2.12639
  19  4.78766
  20  2.79477
  21  2.4495
  22  3.15303
  23  7.43233e-08
  24  2.59834e-06
  25  0.895464
  26  4.21263e-07
  27  0.641676
  28  0.797302
  29  2.10715
  30  0.0668028
  31  0.0367788
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  8.078e+00  2.126e+00  1.000e-04  1.000e+04 ( 1.000e-12)
384        alpha:  2.304e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
385         beta:  6.472e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  1.004e+00  3.678e-02  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  9.523e-01  6.680e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.37
Ra Dec: 276.039 56.858
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 9.92e-09
Energy Flux (Fixed Index): 1.32e-05 +/- 3.47e-06

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) = 115001.55014
delta logL = 0.00556460238295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 115001.549847
delta logL = 0.00585689063882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0459       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2729       1.0000          .0000       5.0000    
     3 'Normalizat'    .95379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   115001.5     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      246 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0459        2.1405        .14135E-03    .11582E-03
   2  alpha         2.2729        .28697        .26275E-01    .45228E-04
   3  Normalizat    .95379        .62440E-01    .34646E-03    .14438E-03
   4  Prefactor     1.0040        .36229E-01    .19933E-03    .15514E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.04595
  alpha      = 2.27285
  Normalizat = 0.953791
  Prefactor  = 1.00403
 **********
 **   18 **HESSE 
 **********

 FCN=   115001.5     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0459        2.1621        .56539E-05   -1.5141    
   2  alpha         2.2729        .28968        .10510E-02   -.90984E-01
   3  Normalizat    .95379        .62509E-01    .13858E-04   -.94595    
   4  Prefactor     1.0040        .36252E-01    .79730E-05   -.92595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59899e-11
Minuit parameter uncertainties:
  1  2.16216
  2  0.290341
  3  0.0625139
  4  0.0362531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114265': 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) = 115001.549847
delta logL = 0.00585689063882

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  8.046e+00  2.162e+00  1.000e-04  1.000e+04 ( 1.000e-12)
384        alpha:  2.273e+00  2.903e-01  0.000e+00  5.000e+00 ( 1.000e+00)
385         beta:  6.472e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  1.004e+00  3.625e-02  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  9.538e-01  6.251e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.34
Ra Dec: 276.039 56.858
Photon Index (Free Index): 2.27 +/- 0.29
Photon Flux (Free Index): 3.64e-08 +/- 1.57e-08
Energy Flux (Free Index): 1.32e-05 +/- 3.51e-06

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/114265/cmap_HighResolution_677635201_680227201_4FGL_J1824.1+5651_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.32e-05', photon_flux_error='9.92e-09', dlogl='5.86e-03', energy_flux='1.32e-05', photon_flux2='3.64e-08', job_status='DONE', time_completed='2022-07-23 05:18:54.371945', photon_index_error2='0.29', photon_index2='2.27', ts='30.37', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.51e-06', EG='0.95', time_epoch_completed='1658578734.37', return_code='0', job_id='114265', GAL2='1.00', EG2='0.95', return_code2='0', energy_flux_error='3.47e-06', photon_flux_error2='1.57e-08', ts2='30.34', photon_index='2.30' WHERE bin_id='170' AND source_name='4FGL J1824.1+5651' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:18:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 114265: <4FGL_J1824.1+5651_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1824.1+5651_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 02:30:31 2022
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 02:30:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 02:30:32 2022
Terminated at Sat Jul 23 05:18:55 2022
Results reported at Sat Jul 23 05:18:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.1+5651_monthly_bin170 276.039 56.8585 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1824.1+5651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9842.00 sec.
    Max Memory :                                 636 MB
    Average Memory :                             470.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10103 sec.
    Turnaround time :                            10104 sec.

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

