/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 123 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 = 610
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1824.1+5651_daily_bin1171
RA = 276.039, Dec = 56.8585
tmin = 542851201, tmax = 543110401
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='867183', job_status='RUN', time_executed='2021-09-20 08:37:42.234643', time_epoch_executed='1632152262.23' WHERE source_name='4FGL J1824.1+5651' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867183

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867183/ft1_4FGL_J1824.1+5651_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867183/ft2_4FGL_J1824.1+5651_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867183/ft1_4FGL_J1824.1+5651_daily_bin1171.fits outfile=/scratch/kocevski/867183/ft1_filteredMKT_4FGL_J1824.1+5651_daily_bin1171.fits ra=276.039 dec=56.8585 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.75
user 0.58
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867183/ft1_filtered_4FGL_J1824.1+5651_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/867183/ft2_4FGL_J1824.1+5651_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/867183/ltcube_542851201_543110401_4FGL_J1824.1+5651_daily_bin1171.fits outfile=/scratch/kocevski/867183/expmap_542851201_543110401_4FGL_J1824.1+5651_daily_bin1171.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/867183/ltcube_542851201_543110401_4FGL_J1824.1+5651_daily_bin1171.fits
.....................!
real 192.32
user 186.86
sys 5.08

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/867183/ft1_filtered_4FGL_J1824.1+5651_daily_bin1171.fits scfile=/scratch/kocevski/867183/ft2_4FGL_J1824.1+5651_daily_bin1171.fits outfile=/scratch/kocevski/867183/cmap_542851201_543110401_4FGL_J1824.1+5651_daily_bin1171.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.51
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867183/ft1_filtered_4FGL_J1824.1+5651_daily_bin1171.fits scfile=/scratch/kocevski/867183/ft2_4FGL_J1824.1+5651_daily_bin1171.fits outfile=/scratch/kocevski/867183/cmap_HighResolution_542851201_543110401_4FGL_J1824.1+5651_daily_bin1171.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.51
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    146.53       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    512.49       1.0000         .10000E-03   10000.    
     6 'norm      '    6.9116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.027       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    399.91       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.554       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    24.070       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.705       1.0000         .10000E-03   10000.    
    20 'norm      '    41.082       1.0000         .10000E-03   10000.    
    21 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.9737       1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1483       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .60740       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=   893.3274     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     4027 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     146.88        151.41        .76278E-05    .13176E-03
   2  Prefactor     .10001E-03    24.111        .54240E-05** at limit **
   3  Prefactor     .10001E-03    34.472        .45441E-05** at limit **
   4  Prefactor     .10000E-03    14.451       -.56817E-06** at limit **
   5  Prefactor     512.63        422.93        .30818E-05    .11437E-04
   6  norm          6.9229        20.650        .29858E-05    .26792E-04
   7  Prefactor     .10000E-03    126.84        .57160E-06** at limit **
   8  Prefactor     27.032        23.319        .31626E-06    .28277E-04
   9  Prefactor     .10000E-03    98.229        .21490E-06** at limit **
  10  Prefactor     400.19        453.05        .72917E-05    .25343E-04
  11  Prefactor     .10000E-03    82.883       -.53134E-06** at limit **
  12  Prefactor     55.159        106.72        .57646E-05    .44495E-04
  13  Prefactor     32.574        40.355        .25850E-05    .53995E-05
  14  Prefactor     .10000E-03    24.240       -.40142E-07** at limit **
  15  Prefactor     .10000E-03    48.439       -.17493E-06** at limit **
  16  Prefactor     .10001E-03    266.93       -.16367E-05** at limit **
  17  Prefactor     .10000E-03    10.014       -.15299E-07** at limit **
  18  norm          24.113        37.771        .31471E-05    .23467E-04
  19  Prefactor     47.810        112.94        .10912E-05    .46071E-04
  20  norm          41.120        44.246        .32164E-05    .51621E-04
  21  norm          .10000E-03    23.379        .23505E-06** at limit **
  22  Prefactor     .10000E-03    22.992       -.10055E-06** at limit **
  23  Prefactor     .10000E-03    30.035       -.18257E-06** at limit **
  24  Prefactor     .10000E-03    169.36        .41746E-06** at limit **
  25  norm          .10000E-03    4.5650       -.86681E-07** at limit **
  26  Prefactor     .10000E-03    6.3124       -.12380E-05** at limit **
  27  norm          5.9733        7.1578       -.87787E-07    .91581E-04
  28  norm          .10000E-03    15.176       -.62249E-06** at limit **
  29  norm          .10000E-03    166.06       -.86570E-05** at limit **
  30  Normalizat    1.1458        .83328       -.58415E-04    .11310E-03
  31  Prefactor     .60829        .41248        .40026E-04    .75968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 146.88
  Prefactor  = 0.000100005
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 512.633
  norm       = 6.92288
  Prefactor  = 0.000100001
  Prefactor  = 27.0323
  Prefactor  = 0.0001
  Prefactor  = 400.195
  Prefactor  = 0.000100001
  Prefactor  = 55.1589
  Prefactor  = 32.5745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 24.1134
  Prefactor  = 47.8103
  norm       = 41.1199
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.97332
  norm       = 0.0001
  norm       = 0.000100004
  Normalizat = 1.14584
  Prefactor  = 0.608293
 **********
 **   18 **HESSE 
 **********

 FCN=   893.3274     FROM HESSE     STATUS=OK           604 CALLS     4631 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     146.88        152.06        .16645E-03   -1.3278    
   2  Prefactor     .10001E-03    24.447        .14436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    34.716        .17208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.504        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     512.63        422.49        .90701E-04   -1.1140    
   6  norm          6.9229        20.610        .15261E-03   -1.5182    
   7  Prefactor     .10000E-03    126.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.032        23.295        .77059E-04   -1.4668    
   9  Prefactor     .10000E-03    98.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     400.19        452.80        .10207E-03   -1.1680    
  11  Prefactor     .10000E-03    82.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     55.159        106.70        .27027E-03   -1.4221    
  13  Prefactor     32.574        40.341        .70229E-04   -1.4566    
  14  Prefactor     .10000E-03    24.242        .14380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    267.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.014        .92405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.113        37.740        .81647E-04   -1.4725    
  19  Prefactor     47.810        112.98        .29028E-03   -1.4324    
  20  norm          41.120        44.250        .62541E-04   -1.4425    
  21  norm          .10000E-03    23.379        .14122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.999        .14006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.037        .16009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    169.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.5653        .62385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.4237        .73439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.9733        7.1586        .85315E-04   -1.5219    
  28  norm          .10000E-03    15.187        .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    168.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1458        .83177        .34252E-03   -.88293    
  31  Prefactor     .60829        .41307        .24738E-03   -1.0724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01164e-09
Minuit parameter uncertainties:
  1  152.468
  2  0.000704604
  3  0.000887487
  4  7.30128e-05
  5  425.118
  6  20.631
  7  0.000651095
  8  23.303
  9  8.37722e-05
  10  456.932
  11  0.00040823
  12  107.077
  13  40.375
  14  3.5518e-05
  15  0.000102352
  16  0.00264073
  17  7.65931e-07
  18  37.7771
  19  113.488
  20  44.2849
  21  4.41217e-05
  22  5.68682e-05
  23  5.9099e-05
  24  0.000616994
  25  2.89916e-06
  26  8.96154e-05
  27  7.15962
  28  5.44074e-05
  29  0.00171978
  30  0.841611
  31  0.41515
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  2.411e+01  3.778e+01  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:  6.083e-01  4.151e-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.146e+00  8.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 276.039 56.858
Photon Flux Upper Limit: 5.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/867183/likelihoodResults_542851201_543110401_4FGL_J1824.1+5651_daily_bin1171.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 892.641071271
delta logL = 0.686281583949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 892.636240677
delta logL = 0.691112177652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4041       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2912       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65641       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=   892.6362     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      266 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4120        140.78        .54818E-02   -.75454E-04
   2  alpha         4.2899        2.5103        .22497       -.38579E-05
   3  Normalizat    1.0198        .33487        .80843E-01    .58645E-04
   4  Prefactor     .65643        .18214        .41818E-01    .75651E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.41205
  alpha      = 4.28991
  Normalizat = 1.01977
  Prefactor  = 0.656427
 **********
 **   18 **HESSE 
 **********

 FCN=   892.6362     FROM HESSE     STATUS=OK            29 CALLS      295 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4120        165.94        .51450E-04   -1.5339    
   2  alpha         4.2899        2.6730        .10237E-01    .79800    
   3  Normalizat    1.0198        .75693        .35787E-03   -.92371    
   4  Prefactor     .65643        .40531        .23879E-03   -1.0526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12913e-11
Minuit parameter uncertainties:
  1  47.7306
  2  8.66373
  3  0.765141
  4  0.407139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867183': 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) = 892.636240519
delta logL = 0.691112335735

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  3.412e+00  4.773e+01  1.000e-04  1.000e+04 ( 1.000e-12)
384        alpha:  4.290e+00  8.664e+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:  6.564e-01  4.071e-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.020e+00  7.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 276.039 56.858
Photon Index (Free Index): 4.29 +/- 8.66
Photon Flux (Free Index): 2.29e-07 +/- 2.98e-07
Energy Flux (Free Index): 3.34e-05 +/- 7.71e-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/867183/cmap_HighResolution_542851201_543110401_4FGL_J1824.1+5651_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-04', comment='SUCCESS', energy_flux2='3.34e-05', dlogl='6.91e-01', photon_flux2='2.29e-07', job_status='DONE', time_completed='2021-09-20 08:44:19.714913', photon_index_error2='8.66', photon_index2='4.29', ts='0.59', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='5.63e-07', energy_flux_error2='7.71e-05', EG='1.15', time_epoch_completed='1632152659.71', return_code='0', job_id='867183', GAL2='0.66', EG2='1.02', return_code2='0', photon_flux_error2='2.98e-07', ts2='2.08', photon_index='2.30' WHERE bin_id='1171' AND source_name='4FGL J1824.1+5651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 08:44:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 867183: <4FGL_J1824.1+5651_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1824.1+5651_daily_bin1171> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 20 08:35:27 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 08:35:29 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:35:29 2021
Terminated at Mon Sep 20 08:44:20 2021
Results reported at Mon Sep 20 08:44:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.1+5651_daily_bin1171 276.039 56.8585 542851201 543110401 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 :                                   398.68 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            533 sec.

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

