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 20 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).
nnumber of points = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1824.1+5651_daily_bin1692
RA = 276.039, Dec = 56.8585
tmin = 677894401, tmax = 678153601
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='406335', job_status='RUN', time_executed='2022-06-29 04:52:58.480743', time_epoch_executed='1656503578.48' WHERE source_name='4FGL J1824.1+5651' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406335

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406335/ft1_4FGL_J1824.1+5651_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406335/ft1_4FGL_J1824.1+5651_daily_bin1692.fits outfile=/scratch/kocevski/406335/ft1_filteredMKT_4FGL_J1824.1+5651_daily_bin1692.fits ra=276.039 dec=56.8585 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.52
user 4.22
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.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/406335/ft1_filteredMKT_4FGL_J1824.1+5651_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.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: 1268

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/406335/ltcube_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.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/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits
.....................!
real 14.20
user 13.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/406335/ltcube_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.fits outfile=/scratch/kocevski/406335/expmap_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.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/406335/ltcube_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.fits
.....................!
real 192.19
user 186.17
sys 5.63

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/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.fits scfile=/scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits outfile=/scratch/kocevski/406335/cmap_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.fits scfile=/scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits outfile=/scratch/kocevski/406335/cmap_HighResolution_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.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.57
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406335/Model_4FGL_J1824.1+5651_daily_bin1692.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/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.fits.....................!
real 121.12
user 119.60
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.fits', '/scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits', expMap='/scratch/kocevski/406335/expmap_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.fits', expCube='/scratch/kocevski/406335/ltcube_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406335/Model_4FGL_J1824.1+5651_daily_bin1692.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/406335/ft1_filtered_4FGL_J1824.1+5651_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/406335/ft2_4FGL_J1824.1+5651_daily_bin1692.fits
Exposure map: /scratch/kocevski/406335/expmap_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.fits
Exposure cube: /scratch/kocevski/406335/ltcube_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406335/Model_4FGL_J1824.1+5651_daily_bin1692.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) = 13039.858834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.983       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1391       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.056       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9406       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12326E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16258E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11978E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4367       1.0000         .10000E-03   10000.    
    18 'norm      '    13.917       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.888       1.0000         .10000E-03   10000.    
    20 'norm      '    14.862       1.0000         .10000E-03   10000.    
    21 'norm      '    6.5821       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1401       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.253       1.0000         .10000E-03   10000.    
    25 'norm      '    .22708       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.7133       1.0000         .10000E-03   10000.    
    28 'norm      '    3.1344       1.0000         .10000E-03   10000.    
    29 'norm      '    .65276E-01   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92680       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0127       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=   13039.73     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4249 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.993        18.596       -.93498E-07    .88955E-05
   2  Prefactor     .10000E-03    4.8099       -.31420E-06** at limit **
   3  Prefactor     3.1336        7.4555        .15959E-06    .56671E-04
   4  Prefactor     .10000E-03    1.7223       -.18481E-06** at limit **
   5  Prefactor     41.058        57.325       -.17427E-06    .16803E-04
   6  norm          4.9442        7.1205        .20433E-05    .80724E-04
   7  Prefactor     .10000E-03    21.508       -.15886E-06** at limit **
   8  Prefactor     3.2947        5.1991       -.40077E-06   -.61360E-04
   9  Prefactor     .10000E-03    33.845        .10654E-05** at limit **
  10  Prefactor     .10000E-03    38.721        .11930E-06** at limit **
  11  Prefactor     .10000E-03    274.94        .17686E-04** at limit **
  12  Prefactor     32.244        19.657        .82412E-08    .51989E-05
  13  Prefactor     .10000E-03    3.1190       -.68668E-07** at limit **
  14  Prefactor     .10000E-03    10.624       -.48294E-07** at limit **
  15  Prefactor     .10000E-03    9.8725       -.11106E-06** at limit **
  16  Prefactor     .10000E-03    47.169       -.67914E-06** at limit **
  17  Prefactor     5.4348        5.8475       -.15289E-06    .51616E-04
  18  norm          13.913        7.7144       -.52912E-07    .11504E-04
  19  Prefactor     15.901        24.584       -.41730E-06   -.14618E-04
  20  norm          14.864        8.6778       -.18737E-07    .92481E-05
  21  norm          6.5816        6.1777       -.30130E-07   -.42070E-06
  22  Prefactor     .10000E-03    3.7166       -.36586E-07** at limit **
  23  Prefactor     1.1364        30.648        .30687E-05    .49822E-04
  24  Prefactor     22.236        56.373        .94307E-06    .17237E-04
  25  norm          .22512        1.6417        .79522E-07    .90350E-05
  26  Prefactor     .10000E-03    .65819       -.70998E-07** at limit **
  27  norm          5.7134        2.2371       -.28110E-07    .24425E-04
  28  norm          3.1188        2.9615        .40232E-07    .17061E-03
  29  norm          .13292        3.8754       -.10665E-05    .53054E-03
  30  Normalizat    .92681        .16988        .48442E-06    .11523E-03
  31  Prefactor     1.0127        .92621E-01    .23686E-06    .24628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9934
  Prefactor  = 0.0001
  Prefactor  = 3.13363
  Prefactor  = 0.0001
  Prefactor  = 41.058
  norm       = 4.94417
  Prefactor  = 0.0001
  Prefactor  = 3.29469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43478
  norm       = 13.9133
  Prefactor  = 15.9014
  norm       = 14.8637
  norm       = 6.58157
  Prefactor  = 0.0001
  Prefactor  = 1.13639
  Prefactor  = 22.2363
  norm       = 0.225118
  Prefactor  = 0.0001
  norm       = 5.71344
  norm       = 3.11875
  norm       = 0.132919
  Normalizat = 0.926813
  Prefactor  = 1.01269  **********
 **   18 **HESSE 
 **********

 FCN=   13039.73     FROM HESSE     STATUS=OK           630 CALLS     4879 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.993        18.621        .85430E-04   -1.4770    
   2  Prefactor     .10000E-03    4.8611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1336        7.4337        .11440E-02   -1.5354    
   4  Prefactor     .10000E-03    1.7741        .29310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.058        56.952        .62560E-04   -1.4426    
   6  norm          4.9442        7.0751        .18094E-03   -1.5263    
   7  Prefactor     .10000E-03    21.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2947        5.1403        .22305E-03   -1.5345    
   9  Prefactor     .10000E-03    33.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    272.18        .40813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.244        19.656        .70563E-04   -1.4572    
  13  Prefactor     .10000E-03    3.1337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4348        5.7880        .86168E-03   -1.5242    
  18  norm          13.913        7.7265        .10737E-03   -1.4962    
  19  Prefactor     15.901        24.585        .10048E-03   -1.4910    
  20  norm          14.864        8.6845        .10390E-03   -1.4937    
  21  norm          6.5816        6.1804        .15642E-03   -1.5195    
  22  Prefactor     .10000E-03    3.7264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1364        30.749        .21776E-02   -1.5495    
  24  Prefactor     22.236        56.232        .84910E-04   -1.4765    
  25  norm          .22512        1.5654        .27395E-03   -1.5613    
  26  Prefactor     .10000E-03    .67635        .18091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.7134        2.2383        .10343E-03   -1.5230    
  28  norm          3.1188        2.9828        .18177E-03   -1.5355    
  29  norm          .13292        4.0670        .76204E-01   -1.5635    
  30  Normalizat    .92681        .19662        .35359E-03   -.95524    
  31  Prefactor     1.0127        .10770        .19909E-03   -.92308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47723e-09
Minuit parameter uncertainties:
  1  18.626
  2  9.73362e-06
  3  7.43587
  4  1.72791e-05
  5  57.0274
  6  7.07631
  7  8.07471e-05
  8  5.14096
  9  7.78407e-05
  10  5.45527e-06
  11  0.000169161
  12  19.6601
  13  4.05015e-06
  14  1.61476e-05
  15  1.17076e-05
  16  0.000110139
  17  5.78862
  18  7.72707
  19  24.6009
  20  8.68521
  21  6.18104
  22  3.10237e-06
  23  11.8287
  24  56.3669
  25  1.18705
  26  1.75862e-06
  27  2.2383
  28  2.98294
  29  1.47004
  30  0.196774
  31  0.107725DDone.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  1.391e+01  7.727e+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.013e+00  1.077e-01  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.268e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.29
Ra Dec: 276.039 56.858
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.49e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.26e-05

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) = 13037.7828733
delta logL = 1.9453040796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13037.7708707
delta logL = 1.95730676128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9697       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6614       1.0000          .0000       5.0000    
     3 'Normalizat'    .81069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0554       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=   13037.77     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      263 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9563        24.550        .41086E-02    .90116E-03
   2  alpha         3.6629        3.9773        .28323        .14711E-03
   3  Normalizat    .81075        .66738E-01    .84480E-01    .20406E-03
   4  Prefactor     1.0554        .37101E-01    .39603E-01    .12962E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.95626
  alpha      = 3.66286
  Normalizat = 0.810752
  Prefactor  = 1.05542
 **********
 **   18 **HESSE 
 **********

 FCN=   13037.77     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9563        35.374        .93016E-04   -1.5220    
   2  alpha         3.6629        4.2167        .12001E-01    .48380    
   3  Normalizat    .81075        .20555        .37410E-03   -.99671    
   4  Prefactor     1.0554        .11709        .19532E-03   -.90904    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.37062e-10
Minuit parameter uncertainties:
  1  29.0566
  2  3.59135
  3  0.205743
  4  0.117115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406335': 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) = 13037.7708692
delta logL = 1.9573082374

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  5.956e+00  2.906e+01  1.000e-04  1.000e+04 ( 1.000e-12)
384        alpha:  3.663e+00  3.591e+00  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.055e+00  1.171e-01  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:  8.108e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.80
Ra Dec: 276.039 56.858
Photon Index (Free Index): 3.66 +/- 3.59
Photon Flux (Free Index): 1.58e-07 +/- 7.15e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.72e-05

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/406335/cmap_HighResolution_677894401_678153601_4FGL_J1824.1+5651_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.49e-08', energy_flux2='2.59e-05', photon_flux_error='3.60e-08', dlogl='1.96e+00', energy_flux='2.27e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2022-06-29 05:18:27.024491', photon_index_error2='3.59', photon_index2='3.66', ts='7.29', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.93', time_epoch_completed='1656505107.02', return_code='0', job_id='406335', GAL2='1.06', EG2='0.81', return_code2='102', energy_flux_error='1.26e-05', photon_flux_error2='7.15e-08', ts2='11.80', photon_index='2.30' WHERE bin_id='1692' AND source_name='4FGL J1824.1+5651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:18:27 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 406327: <4FGL_J1824.1+5651_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1824.1+5651_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:37 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:52:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:52:24 2022
Terminated at Wed Jun 29 05:18:06 2022
Results reported at Wed Jun 29 05:18:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.1+5651_daily_bin1692 276.039 56.8585 677894401 678153601 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 :                                   1521.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1541 sec.
    Turnaround time :                            18629 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 406335: <4FGL_J1824.1+5651_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1824.1+5651_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:38 2022
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:52:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:52:25 2022
Terminated at Wed Jun 29 05:18:27 2022
Results reported at Wed Jun 29 05:18:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.1+5651_daily_bin1692 276.039 56.8585 677894401 678153601 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 :                                   1529.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1562 sec.
    Turnaround time :                            18649 sec.

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

