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


Performing analysis on: 4FGL_J1824.1+5651_daily_bin690
RA = 276.039, Dec = 56.8585
tmin = 418176001, tmax = 418435201
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='863252', job_status='RUN', time_executed='2021-09-20 08:20:42.359453', time_epoch_executed='1632151242.36' WHERE source_name='4FGL J1824.1+5651' and cadence='daily' and bin_id='690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/863252

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/863252/ft1_4FGL_J1824.1+5651_daily_bin690.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/863252/ft2_4FGL_J1824.1+5651_daily_bin690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/863252/ft1_4FGL_J1824.1+5651_daily_bin690.fits outfile=/scratch/kocevski/863252/ft1_filteredMKT_4FGL_J1824.1+5651_daily_bin690.fits ra=276.039 dec=56.8585 rad=12.0 tmin=418176001.0 tmax=418435201.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.94
user 4.70
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/863252/ft1_filtered_4FGL_J1824.1+5651_daily_bin690.fits" evtable="EVENTS" scfile=/scratch/kocevski/863252/ft2_4FGL_J1824.1+5651_daily_bin690.fits sctable="SC_DATA" outfile=/scratch/kocevski/863252/ltcube_418176001_418435201_4FGL_J1824.1+5651_daily_bin690.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/863252/ft2_4FGL_J1824.1+5651_daily_bin690.fits
.....................!
real 11.83
user 11.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/863252/ft1_filtered_4FGL_J1824.1+5651_daily_bin690.fits evtable="EVENTS" scfile=/scratch/kocevski/863252/ft2_4FGL_J1824.1+5651_daily_bin690.fits sctable="SC_DATA" expcube=/scratch/kocevski/863252/ltcube_418176001_418435201_4FGL_J1824.1+5651_daily_bin690.fits outfile=/scratch/kocevski/863252/expmap_418176001_418435201_4FGL_J1824.1+5651_daily_bin690.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/863252/ltcube_418176001_418435201_4FGL_J1824.1+5651_daily_bin690.fits
.....................!
real 189.42
user 184.37
sys 4.71

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/863252/ft1_filtered_4FGL_J1824.1+5651_daily_bin690.fits scfile=/scratch/kocevski/863252/ft2_4FGL_J1824.1+5651_daily_bin690.fits outfile=/scratch/kocevski/863252/cmap_418176001_418435201_4FGL_J1824.1+5651_daily_bin690.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/863252/ft1_filtered_4FGL_J1824.1+5651_daily_bin690.fits scfile=/scratch/kocevski/863252/ft2_4FGL_J1824.1+5651_daily_bin690.fits outfile=/scratch/kocevski/863252/cmap_HighResolution_418176001_418435201_4FGL_J1824.1+5651_daily_bin690.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9521       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63676E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10515E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8164       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .63977E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.578       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2254       1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.456       1.0000         .10000E-03   10000.    
    24 'Prefactor '    274.85       1.0000         .10000E-03   10000.    
    25 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.8391       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    65.275       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0101       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72583       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=   2948.168     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4071 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9574        71.229        .12803E-05   -.88873E-05
   2  Prefactor     6.8846        11.513        .57055E-07   -.13618E-03
   3  Prefactor     .10000E-03    27.830       -.13948E-06** at limit **
   4  Prefactor     .10000E-03    3.2700        .43964E-06** at limit **
   5  Prefactor     .10000E-03    618.78        .10886E-04** at limit **
   6  norm          .10000E-03    15.315        .24514E-05** at limit **
   7  Prefactor     26.098        71.615       -.79636E-05    .49587E-06
   8  Prefactor     2.8154        9.7793        .30534E-05   -.23113E-05
   9  Prefactor     .10000E-03    50.648        .17870E-05** at limit **
  10  Prefactor     .10000E-03    65.969       -.67838E-06** at limit **
  11  Prefactor     .10001E-03    147.31        .59823E-05** at limit **
  12  Prefactor     .10000E-03    17.916        .21113E-06** at limit **
  13  Prefactor     .10000E-03    7.6846       -.88609E-07** at limit **
  14  Prefactor     .10000E-03    15.765        .37765E-06** at limit **
  15  Prefactor     .10000E-03    14.046       -.45165E-06** at limit **
  16  Prefactor     .10000E-03    79.035       -.12766E-05** at limit **
  17  Prefactor     .10000E-03    2.9201       -.45665E-07** at limit **
  18  norm          26.127        15.910        .92320E-07   -.31359E-05
  19  Prefactor     19.607        51.070       -.11491E-05    .59545E-05
  20  norm          .10000E-03    22.620       -.86029E-06** at limit **
  21  norm          .10000E-03    9.4327        .11569E-06** at limit **
  22  Prefactor     9.2276        34.474        .50092E-06   -.60308E-06
  23  Prefactor     37.448        32.439        .37238E-06    .68966E-05
  24  Prefactor     274.85        194.19       -.13513E-07    .25042E-05
  25  norm          .10000E-03    5.2957       -.18389E-06** at limit **
  26  Prefactor     6.8396        6.2792        .63300E-07    .33313E-04
  27  norm          .10000E-03    3.2852       -.11033E-06** at limit **
  28  norm          .10000E-03    8.9489       -.13443E-06** at limit **
  29  norm          65.278        42.523        .18362E-07    .49161E-05
  30  Normalizat    1.0101        .33872       -.46699E-05   -.14798E-04
  31  Prefactor     .72580        .17650        .26781E-05   -.11058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9574
  Prefactor  = 6.88456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.098
  Prefactor  = 2.81545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.1275
  Prefactor  = 19.6068
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.22764
  Prefactor  = 37.4479
  Prefactor  = 274.849
  norm       = 0.0001
  Prefactor  = 6.8396
  norm       = 0.0001
  norm       = 0.0001
  norm       = 65.2783
  Normalizat = 1.01011
  Prefactor  = 0.725796
 **********
 **   18 **HESSE 
 **********

 FCN=   2948.168     FROM HESSE     STATUS=OK           610 CALLS     4681 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9574        71.069        .16459E-03   -1.5220    
   2  Prefactor     6.8846        11.473        .76379E-03   -1.5183    
   3  Prefactor     .10000E-03    28.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2893        .95905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    624.57        .21032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.098        72.311        .78615E-04   -1.4686    
   8  Prefactor     2.8154        9.8153        .12118E-02   -1.5372    
   9  Prefactor     .10000E-03    50.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    149.72        .21030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7058        .14700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    79.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9242        .90584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.127        15.914        .78372E-04   -1.4685    
  19  Prefactor     19.607        51.042        .90520E-04   -1.4822    
  20  norm          .10000E-03    22.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.4371        .16287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2276        34.488        .13195E-03   -1.5100    
  23  Prefactor     37.448        32.297        .65486E-04   -1.4483    
  24  Prefactor     274.85        194.02        .12233E-03   -1.2377    
  25  norm          .10000E-03    5.3905        .24224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.8396        6.2834        .12172E-03   -1.5185    
  27  norm          .10000E-03    3.3156        .96110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    8.9495        .15862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          65.278        42.512        .49673E-04   -1.4090    
  30  Normalizat    1.0101        .37759        .30051E-03   -.92693    
  31  Prefactor     .72580        .19804        .20278E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3874e-10
Minuit parameter uncertainties:
  1  41.2137
  2  11.4765
  3  3.17992e-06
  4  8.46321e-06
  5  0.000619132
  6  0.000102311
  7  72.5554
  8  9.82094
  9  2.57558e-05
  10  2.55906e-05
  11  0.00196496
  12  3.44995e-06
  13  1.72247e-06
  14  4.35149e-07
  15  3.62385e-06
  16  5.12274e-05
  17  1.05557e-06
  18  15.9162
  19  51.1558
  20  1.27558e-06
  21  5.02978e-06
  22  34.5629
  23  32.3125
  24  194.478
  25  9.47953e-06
  26  6.28397
  27  2.71012e-06
  28  1.2878e-06
  29  42.532
  30  0.378595
  31  0.198232
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  2.613e+01  1.592e+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:  7.258e-01  1.982e-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.010e+00  3.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.60
Ra Dec: 276.039 56.858
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.22e-07 +/- 7.42e-08
Energy Flux (Fixed Index): 4.27e-05 +/- 2.60e-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) = 2946.80933491
delta logL = 1.35903340299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2946.78691079
delta logL = 1.38145752683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.975       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4270       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71405       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=   2946.787     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .46E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.963        19.058       -.43789E-05   -.35301E-04
   2  alpha         1.4265        .51169       -.57388E-04    .31981E-05
   3  Normalizat    1.0509        .28143        .12521E-05    .36114E-04
   4  Prefactor     .71411        .16392       -.21423E-06    .67086E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.9634
  alpha      = 1.42649
  Normalizat = 1.05094
  Prefactor  = 0.71411
 **********
 **   18 **HESSE 
 **********

 FCN=   2946.787     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.963        18.714        .85444E-04   -1.4770    
   2  alpha         1.4265        .50300        .88895E-02   -.44383    
   3  Normalizat    1.0509        .32290        .29585E-03   -.91343    
   4  Prefactor     .71411        .18836        .20443E-03   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38913e-10
Minuit parameter uncertainties:
  1  18.7189
  2  0.507261
  3  0.323504
  4  0.188529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/863252': 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) = 2946.7869103
delta logL = 1.38145801039

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  2.196e+01  1.872e+01  1.000e-04  1.000e+04 ( 1.000e-12)
384        alpha:  1.426e+00  5.073e-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:  7.141e-01  1.885e-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.051e+00  3.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.30
Ra Dec: 276.039 56.858
Photon Index (Free Index): 1.43 +/- 0.51
Photon Flux (Free Index): 5.73e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.23e-04 +/- 1.33e-04

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/863252/cmap_HighResolution_418176001_418435201_4FGL_J1824.1+5651_daily_bin690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-07', energy_flux2='1.23e-04', photon_flux_error='7.42e-08', dlogl='1.38e+00', energy_flux='4.27e-05', photon_flux2='5.73e-08', job_status='DONE', time_completed='2021-09-20 08:30:10.638921', photon_index_error2='0.51', photon_index2='1.43', ts='12.60', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.33e-04', EG='1.01', time_epoch_completed='1632151810.64', return_code='0', job_id='863252', GAL2='0.71', EG2='1.05', return_code2='0', energy_flux_error='2.60e-05', photon_flux_error2='5.06e-08', ts2='15.30', photon_index='2.30' WHERE bin_id='690' AND source_name='4FGL J1824.1+5651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 08:30:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 863252: <4FGL_J1824.1+5651_daily_bin690> in cluster <slac> Done

Job <4FGL_J1824.1+5651_daily_bin690> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep 20 08:20:23 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 08:20:25 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:20:25 2021
Terminated at Mon Sep 20 08:30:10 2021
Results reported at Mon Sep 20 08:30:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.1+5651_daily_bin690 276.039 56.8585 418176001 418435201 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 :                                   565.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             358.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            587 sec.

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

