/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is 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 = 7381
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1824.1+5651_daily_bin1224
RA = 276.039, Dec = 56.8585
tmin = 556588801, tmax = 556848001
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='868411', job_status='RUN', time_executed='2021-09-20 08:40:30.497512', time_epoch_executed='1632152430.5' WHERE source_name='4FGL J1824.1+5651' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868411/ft1_4FGL_J1824.1+5651_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868411/ft2_4FGL_J1824.1+5651_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868411/ft1_4FGL_J1824.1+5651_daily_bin1224.fits outfile=/scratch/kocevski/868411/ft1_filteredMKT_4FGL_J1824.1+5651_daily_bin1224.fits ra=276.039 dec=56.8585 rad=12.0 tmin=556588801.0 tmax=556848001.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.59
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/868411/ft1_filtered_4FGL_J1824.1+5651_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/868411/ft2_4FGL_J1824.1+5651_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/868411/ltcube_556588801_556848001_4FGL_J1824.1+5651_daily_bin1224.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/868411/ft2_4FGL_J1824.1+5651_daily_bin1224.fits
.....................!
real 12.03
user 11.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868411/ft1_filtered_4FGL_J1824.1+5651_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/868411/ft2_4FGL_J1824.1+5651_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/868411/ltcube_556588801_556848001_4FGL_J1824.1+5651_daily_bin1224.fits outfile=/scratch/kocevski/868411/expmap_556588801_556848001_4FGL_J1824.1+5651_daily_bin1224.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/868411/ltcube_556588801_556848001_4FGL_J1824.1+5651_daily_bin1224.fits
.....................!
real 189.81
user 184.81
sys 4.64

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/868411/ft1_filtered_4FGL_J1824.1+5651_daily_bin1224.fits scfile=/scratch/kocevski/868411/ft2_4FGL_J1824.1+5651_daily_bin1224.fits outfile=/scratch/kocevski/868411/cmap_556588801_556848001_4FGL_J1824.1+5651_daily_bin1224.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/868411/ft1_filtered_4FGL_J1824.1+5651_daily_bin1224.fits scfile=/scratch/kocevski/868411/ft2_4FGL_J1824.1+5651_daily_bin1224.fits outfile=/scratch/kocevski/868411/cmap_HighResolution_556588801_556848001_4FGL_J1824.1+5651_daily_bin1224.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.52
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .97154E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20308E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1459       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    140.91       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9597       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.490       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.881       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.831       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.349       1.0000         .10000E-03   10000.    
    21 'norm      '    13.752       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.452       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.1318       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9221       1.0000         .10000E-03   10000.    
    27 'norm      '    .32517       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .69742       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0615       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=   5826.227     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4139 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4851        122.62        .26046E-05   -.27946E-05
   2  Prefactor     .10003E-03    7.5481        .25909E-05** at limit **
   3  Prefactor     .10000E-03    10.761       -.10449E-05** at limit **
   4  Prefactor     2.3219        3.7501       -.42886E-06    .44369E-04
   5  Prefactor     .10000E-03    213.42        .42956E-07** at limit **
   6  norm          2.1497        5.9850        .54929E-05   -.26252E-03
   7  Prefactor     10.165        47.451        .42170E-05    .25552E-03
   8  Prefactor     .10000E-03    1.6554        .17967E-07** at limit **
   9  Prefactor     .10000E-03    25.276        .18879E-07** at limit **
  10  Prefactor     140.90        130.31        .62250E-06    .54020E-04
  11  Prefactor     .10000E-03    71.452       -.27636E-05** at limit **
  12  Prefactor     4.9611        23.751        .22421E-06    .12784E-04
  13  Prefactor     .96993        11.135       -.28275E-05    .50449E-04
  14  Prefactor     10.499        12.971       -.24923E-06    .10509E-03
  15  Prefactor     29.789        32.565        .10404E-05    .16474E-03
  16  Prefactor     .10000E-03    65.383        .76235E-07** at limit **
  17  Prefactor     13.833        9.0092        .71991E-08    .15183E-03
  18  norm          7.1647        7.3459        .11837E-06    .13714E-03
  19  Prefactor     .10000E-03    11.179       -.50323E-07** at limit **
  20  norm          12.361        12.295       -.19139E-06    .10658E-03
  21  norm          13.751        16.690        .66398E-07    .36275E-04
  22  Prefactor     .10000E-03    7.7017        .55593E-08** at limit **
  23  Prefactor     17.458        25.183        .13083E-06    .16158E-04
  24  Prefactor     .10000E-03    57.265        .81843E-06** at limit **
  25  norm          3.1319        3.4687       -.68367E-07   -.14011E-03
  26  Prefactor     1.9229        2.0927        .66506E-07    .22267E-03
  27  norm          .32515        3.5902        .66443E-06   -.72072E-04
  28  norm          .10000E-03    3.4093        .39188E-08** at limit **
  29  norm          .10000E-03    9.1714       -.17574E-07** at limit **
  30  Normalizat    .69581        .26040        .23555E-05    .44403E-03
  31  Prefactor     1.0621        .14288       -.11536E-05    .53603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48507
  Prefactor  = 0.000100026
  Prefactor  = 0.000100002
  Prefactor  = 2.32189
  Prefactor  = 0.000100002
  norm       = 2.14967
  Prefactor  = 10.1645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.903
  Prefactor  = 0.000100002
  Prefactor  = 4.96114
  Prefactor  = 0.969927
  Prefactor  = 10.4985
  Prefactor  = 29.7894
  Prefactor  = 0.0001
  Prefactor  = 13.8333
  norm       = 7.16472
  Prefactor  = 0.0001
  norm       = 12.3607
  norm       = 13.7513
  Prefactor  = 0.0001
  Prefactor  = 17.4575
  Prefactor  = 0.000100001
  norm       = 3.13185
  Prefactor  = 1.92293
  norm       = 0.325151
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.695811
  Prefactor  = 1.06208
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.227     FROM HESSE     STATUS=OK           626 CALLS     4765 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4851        122.99        .35576E-03   -1.5464    
   2  Prefactor     .10003E-03    52.374        .36378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3219        3.7311        .18080E-03   -1.5403    
   5  Prefactor     .10000E-03    214.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1497        6.1925        .14066E-02   -1.5415    
   7  Prefactor     10.165        50.938        .12563E-03   -1.5070    
   8  Prefactor     .10000E-03    1.6602        .95891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     140.90        130.51        .33937E-04   -1.3328    
  11  Prefactor     .10000E-03    72.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9611        23.713        .18059E-03   -1.5262    
  13  Prefactor     .96993        77.900        .43700E-02   -1.5511    
  14  Prefactor     10.499        12.975        .12371E-03   -1.5060    
  15  Prefactor     29.789        32.844        .73294E-04   -1.4616    
  16  Prefactor     .10000E-03    65.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.833        9.0063        .10770E-03   -1.4964    
  18  norm          7.1647        7.3387        .14986E-03   -1.5173    
  19  Prefactor     .10000E-03    11.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.361        12.297        .11399E-03   -1.5005    
  21  norm          13.751        16.685        .10801E-03   -1.4966    
  22  Prefactor     .10000E-03    7.7175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.458        25.085        .95873E-04   -1.4872    
  24  Prefactor     .10000E-03    57.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.1319        3.4532        .13595E-03   -1.5354    
  26  Prefactor     1.9229        2.0860        .11069E-03   -1.5431    
  27  norm          .32515        3.7169        .27706E-03   -1.5594    
  28  norm          .10000E-03    3.4305        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    9.2306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .69581        .30259        .38102E-03   -1.0406    
  31  Prefactor     1.0621        .16562        .18662E-03   -.90688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12975e-09
Minuit parameter uncertainties:
  1  27.086
  2  0.00232818
  3  0.000326203
  4  3.73149
  5  0.00123174
  6  6.19432
  7  45.5703
  8  1.56517e-06
  9  2.46159e-05
  10  130.783
  11  0.000815096
  12  21.7063
  13  17.4074
  14  12.978
  15  32.8634
  16  4.0225e-05
  17  9.00715
  18  7.33964
  19  4.57634e-05
  20  12.3
  21  16.6906
  22  5.59614e-06
  23  25.1
  24  0.000431016
  25  3.45345
  26  2.08604
  27  2.19851
  28  1.32046e-06
  29  2.0898e-06
  30  0.303322
  31  0.165696
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  7.165e+00  7.340e+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.062e+00  1.657e-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:  6.958e-01  3.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.01
Ra Dec: 276.039 56.858
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.34e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/868411/likelihoodResults_556588801_556848001_4FGL_J1824.1+5651_daily_bin1224.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) = 5825.76967601
delta logL = 0.457056580455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5825.76355937
delta logL = 0.463173216107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4063       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5909       1.0000          .0000       5.0000    
     3 'Normalizat'    .71329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0565       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=   5825.764     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3973        6.5766        .39644E-02    .20671E-03
   2  alpha         1.5888        .48981        .42887       -.57444E-04
   3  Normalizat    .71363        .23218        .85064E-01    .80660E-04
   4  Prefactor     1.0563        .13869        .39543E-01    .28665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39728
  alpha      = 1.58882
  Normalizat = 0.713627
  Prefactor  = 1.05631
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.764     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3973        7.8029        .15857E-03   -1.5202    
   2  alpha         1.5888        .69763        .15677E-01   -.37307    
   3  Normalizat    .71363        .26431        .37674E-03   -1.0336    
   4  Prefactor     1.0563        .15835        .18708E-03   -.90875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32879e-11
Minuit parameter uncertainties:
  1  7.80414
  2  0.708512
  3  0.264779
  4  0.158416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868411': 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) = 5825.76355411
delta logL = 0.463178474273

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  6.397e+00  7.804e+00  1.000e-04  1.000e+04 ( 1.000e-12)
384        alpha:  1.589e+00  7.085e-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.056e+00  1.584e-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:  7.136e-01  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 276.039 56.858
Photon Index (Free Index): 1.59 +/- 0.71
Photon Flux (Free Index): 1.74e-08 +/- 2.39e-08
Energy Flux (Free Index): 2.39e-05 +/- 3.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/868411/cmap_HighResolution_556588801_556848001_4FGL_J1824.1+5651_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-05', comment='SUCCESS', photon_flux='3.34e-08', energy_flux2='2.39e-05', photon_flux_error='3.42e-08', dlogl='4.63e-01', energy_flux='1.17e-05', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-20 08:56:19.102451', photon_index_error2='0.71', photon_index2='1.59', ts='2.01', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='3.30e-05', EG='0.70', time_epoch_completed='1632153379.1', return_code='0', job_id='868411', GAL2='1.06', EG2='0.71', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='2.39e-08', ts2='2.92', photon_index='2.30' WHERE bin_id='1224' AND source_name='4FGL J1824.1+5651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 08:56:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 868411: <4FGL_J1824.1+5651_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1824.1+5651_daily_bin1224> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 20 08:40:14 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 08:40:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 08:40:15 2021
Terminated at Mon Sep 20 08:56:19 2021
Results reported at Mon Sep 20 08:56:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.1+5651_daily_bin1224 276.039 56.8585 556588801 556848001 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 :                                   946.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

