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


Performing analysis on: 4FGL_J1824.1+5651_daily_bin1749
RA = 276.039, Dec = 56.8585
tmin = 692668801, tmax = 692928001
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='959430', job_status='RUN', time_executed='2022-12-17 01:10:36.266602', time_epoch_executed='1671268236.27' WHERE source_name='4FGL J1824.1+5651' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959430

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959430/ft1_4FGL_J1824.1+5651_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959430/ft1_4FGL_J1824.1+5651_daily_bin1749.fits outfile=/scratch/kocevski/959430/ft1_filteredMKT_4FGL_J1824.1+5651_daily_bin1749.fits ra=276.039 dec=56.8585 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.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/959430/ft1_filteredMKT_4FGL_J1824.1+5651_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/959430/ft1_filtered_4FGL_J1824.1+5651_daily_bin1749.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 857

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959430/ft1_filtered_4FGL_J1824.1+5651_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/959430/ltcube_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.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/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.fits
.....................!
real 11.86
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959430/ft1_filtered_4FGL_J1824.1+5651_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/959430/ltcube_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.fits outfile=/scratch/kocevski/959430/expmap_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.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/959430/ltcube_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.fits
.....................!
real 191.77
user 185.99
sys 5.41

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/959430/ft1_filtered_4FGL_J1824.1+5651_daily_bin1749.fits scfile=/scratch/kocevski/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.fits outfile=/scratch/kocevski/959430/cmap_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959430/ft1_filtered_4FGL_J1824.1+5651_daily_bin1749.fits scfile=/scratch/kocevski/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.fits outfile=/scratch/kocevski/959430/cmap_HighResolution_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/959430/ft1_filtered_4FGL_J1824.1+5651_daily_bin1749.fits', '/scratch/kocevski/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.fits', expMap='/scratch/kocevski/959430/expmap_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.fits', expCube='/scratch/kocevski/959430/ltcube_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/959430/Model_4FGL_J1824.1+5651_daily_bin1749.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  0.000e+00  1.000e+06 ( 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 -5.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/959430/ft1_filtered_4FGL_J1824.1+5651_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/959430/ft2_4FGL_J1824.1+5651_daily_bin1749.fits
Exposure map: /scratch/kocevski/959430/expmap_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.fits
Exposure cube: /scratch/kocevski/959430/ltcube_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/959430/Model_4FGL_J1824.1+5651_daily_bin1749.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) = 8871.3624075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66601E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14430E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.4296       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.5823       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10805E-03   1.0000          .0000       .10000E+07
     6 'norm      '    7.4643       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.278       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22996E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    35.946       1.0000          .0000       .10000E+07
    10 'Prefactor '    .17767E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22620E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .54348E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    66.465       1.0000          .0000       .10000E+07
    14 'Prefactor '    .46401E-04   1.0000          .0000       .10000E+07
    15 'norm      '    9.1695       1.0000          .0000       .10000E+07
    16 'norm      '    .23765E-02   1.0000          .0000       .10000E+07
    17 'norm      '    23.770       1.0000          .0000       .10000E+07
    18 'Prefactor '    32.654       1.0000          .0000       .10000E+07
    19 'Prefactor '    .25395E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16000       1.0000          .0000       .10000E+07
    21 'norm      '    2.3082       1.0000          .0000       .10000E+07
    22 'Prefactor '    .27811E-07   1.0000          .0000       .10000E+07
    23 'norm      '    .85438       1.0000          .0000       .10000E+07
    24 'norm      '    .30819E-04   1.0000          .0000       .10000E+07
    25 'norm      '    9.1953       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1260       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8871.349     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2400 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88818E-09    9.5325        .19308E-05** at limit **
   2  Prefactor     .27756E-09    3.7393        .30109E-07** at limit **
   3  Prefactor     2.4316        7.2019       -.12206E-06   -.70523E-03
   4  Prefactor     3.5858        3.3885       -.20606E-07    .46858E-02
   5  Prefactor     .10492E-07    22.311        .16396E-05** at limit **
   6  norm          7.4343        5.8671       -.49380E-07   -.16511E-02
   7  Prefactor     21.064        16.830       -.24407E-05   -.51970E-01
   8  Prefactor     .11102E-09    2.4292        .24646E-07** at limit **
   9  Prefactor     35.932        1.1270       -.77989E-07    .30489E-02
  10  Prefactor     .14488E-07    48.851        .37223E-05** at limit **
  11  Prefactor     .61062E-09    7.0495        .11633E-05** at limit **
  12  Prefactor     .17764E-08    13.004       -.58028E-06** at limit **
  13  Prefactor     65.556        73.582       -.73588E-05    .21740E-01
  14  Prefactor     .22204E-09    1.9380       -.62674E-08** at limit **
  15  norm          9.1714        8.8860       -.33049E-06   -.17681E-02
  16  norm          .13267E-07    39.674       -.51824E-05** at limit **
  17  norm          23.758        3.2396        .88981E-06   -.37485E-01
  18  Prefactor     32.660        1.3869       -.90575E-07    .15354E-01
  19  Prefactor     .11102E-08    8.4944       -.19563E-05** at limit **
  20  Prefactor     .51070E-08    55.216       -.19414E-04** at limit **
  21  norm          2.3097        2.2925       -.56890E-08    .12091E-01
  22  Prefactor      .0000        .75493        .46639E-08** at limit **
  23  norm          .85594        2.0325       -.67037E-07   -.75859E-02
  24  norm          .16653E-09    2.0044        .87077E-07** at limit **
  25  norm          9.2249        11.477       -.49008E-05   -.69338E-02
  26  Normalizat    1.1262        .22654        .25107E-05   -.29527E-03
  27  Prefactor     .92181        .12945        .50262E-05   -.82263E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.88178e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 2.43161
  Prefactor  = 3.58579
  Prefactor  = 1.04916e-08
  norm       = 7.43433
  Prefactor  = 21.0638
  Prefactor  = 1.11022e-10
  Prefactor  = 35.9316
  Prefactor  = 1.44884e-08
  Prefactor  = 6.10623e-10
  Prefactor  = 1.77636e-09
  Prefactor  = 65.5558
  Prefactor  = 2.22045e-10
  norm       = 9.1714
  norm       = 1.32672e-08
  norm       = 23.758
  Prefactor  = 32.6601
  Prefactor  = 1.11022e-09
  Prefactor  = 5.10703e-09
  norm       = 2.30971
  Prefactor  = 0
  norm       = 0.855942
  norm       = 1.66533e-10
  norm       = 9.22492
  Normalizat = 1.12616
  Prefactor  = 0.921808
 **********
 **   18 **HESSE 
 **********

 FCN=   8871.349     FROM HESSE     STATUS=OK           538 CALLS     2938 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88818E-09    9.5663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27756E-09    3.7267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4316        7.2335        .65627E-03   -1.5677    
   4  Prefactor     3.5858        3.3959        .53368E-03   -1.5670    
   5  Prefactor     .10492E-07    22.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.4343        5.9660        .36685E-03   -1.5653    
   7  Prefactor     21.064        58.249        .21685E-03   -1.5616    
   8  Prefactor     .11102E-09    2.4243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.932        50.034        .16681E-03   -1.5588    
  10  Prefactor     .14488E-07    48.877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61062E-09    7.0759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17764E-08    13.001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.556        76.694        .12267E-03   -1.5546    
  14  Prefactor     .22204E-09    1.9360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.1714        8.8967        .33073E-03   -1.5647    
  16  norm          .13267E-07    39.112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.758        13.246        .20516E-03   -1.5610    
  18  Prefactor     32.660        19.848        .17502E-03   -1.5594    
  19  Prefactor     .11102E-08    8.5034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .51070E-08    56.024        .12536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3097        2.2988        .67509E-03   -1.5678    
  22  Prefactor      .0000        .75118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .85594        2.0436        .48966E-03   -1.5689    
  24  norm          .16653E-09    2.0040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.2249        11.649        .33027E-03   -1.5647    
  26  Normalizat    1.1262        .19615        .73547E-01   -.88916    
  27  Prefactor     .92181        .10999        .45282E-01   -.95383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31828e-06
Minuit parameter uncertainties:
  1  0.000186918
  2  6.10695e-05
  3  7.23351
  4  3.39589
  5  0.000968443
  6  5.96602
  7  58.2508
  8  3.12274e-05
  9  50.035
  10  0.00168418
  11  0.000130973
  12  0.000304575
  13  76.6947
  14  4.16601e-05
  15  8.89669
  16  0.00144045
  17  13.2459
  18  19.8484
  19  0.000193498
  20  0.00106839
  21  2.2988
  22  1.9049e-06
  23  2.04356
  24  3.51173e-05
  25  11.6489
  26  0.196275
  27  0.110019
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  9.171e+00  8.897e+00  0.000e+00  1.000e+06 ( 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 -5.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:  9.218e-01  1.100e-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:  1.126e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 276.039 56.858
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.45e-05

TS (Fixed Index): 1.71
Ra Dec: 276.039 56.858
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/959430/likelihoodResults_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8871.33428228
delta logL = 0.0147813765798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8871.33354933
delta logL = 0.0155143289703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0024       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1349       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91922       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8871.334     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0024        9.1831        .13352E-04    .42061E-03
   2  alpha         2.1348        .90470        .25396E-01   -.13869E-03
   3  Normalizat    1.1340        .22628        .32455E-03    .10789E-04
   4  Prefactor     .91921        .12851        .20401E-03    .89160E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 9.00238
  alpha      = 2.13482
  Normalizat = 1.13401
  Prefactor  = 0.919212
 **********
 **   18 **HESSE 
 **********

 FCN=   8871.334     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0024        9.2897        .53409E-06   -1.5648    
   2  alpha         2.1348        .91461        .50793E-02   -.14660    
   3  Normalizat    1.1340        .22649        .12982E-04   -.88667    
   4  Prefactor     .91921        .12859        .81606E-05   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39434e-12
Minuit parameter uncertainties:
  1  9.28976
  2  0.936859
  3  0.226684
  4  0.128637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959430': 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) = 8871.33354932
delta logL = 0.0155143325665

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  9.002e+00  9.290e+00  0.000e+00  1.000e+06 ( 1.000e-12)
384        alpha:  2.135e+00  9.369e-01  0.000e+00  5.000e+00 ( 1.000e+00)
385         beta:  6.472e-02  0.000e+00 -5.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:  9.192e-01  1.286e-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:  1.134e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 276.039 56.858
Photon Index (Free Index): 2.13 +/- 0.94
Photon Flux (Free Index): 3.55e-08 +/- 5.36e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.62e-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/959430/cmap_HighResolution_692668801_692928001_4FGL_J1824.1+5651_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-05', comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='1.56e-05', photon_flux_error='4.15e-08', dlogl='1.55e-02', energy_flux='1.50e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2022-12-17 01:25:48.332380', photon_index_error2='0.94', photon_index2='2.13', ts='1.71', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.62e-05', EG='1.13', time_epoch_completed='1671269148.33', return_code='0', job_id='959430', GAL2='0.92', EG2='1.13', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.36e-08', ts2='1.73', photon_index='2.30' WHERE bin_id='1749' AND source_name='4FGL J1824.1+5651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:25:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 959430: <4FGL_J1824.1+5651_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1824.1+5651_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 01:10:14 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:10:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:10:15 2022
Terminated at Sat Dec 17 01:25:48 2022
Results reported at Sat Dec 17 01:25:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.1+5651_daily_bin1749 276.039 56.8585 692668801 692928001 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 :                                   913.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

