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


Performing analysis on: 4FGL_J1824.1+5651_daily_bin762
RA = 276.039, Dec = 56.8585
tmin = 436838401, tmax = 437097601
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='863365', job_status='RUN', time_executed='2021-09-20 08:20:51.352228', time_epoch_executed='1632151251.35' WHERE source_name='4FGL J1824.1+5651' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/863365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/863365/ft1_4FGL_J1824.1+5651_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/863365/ft2_4FGL_J1824.1+5651_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/863365/ft1_4FGL_J1824.1+5651_daily_bin762.fits outfile=/scratch/kocevski/863365/ft1_filteredMKT_4FGL_J1824.1+5651_daily_bin762.fits ra=276.039 dec=56.8585 rad=12.0 tmin=436838401.0 tmax=437097601.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 5.03
user 4.77
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/863365/ft1_filtered_4FGL_J1824.1+5651_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/863365/ft2_4FGL_J1824.1+5651_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/863365/ltcube_436838401_437097601_4FGL_J1824.1+5651_daily_bin762.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/863365/ft2_4FGL_J1824.1+5651_daily_bin762.fits
.....................!
real 12.76
user 12.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/863365/ft1_filtered_4FGL_J1824.1+5651_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/863365/ft2_4FGL_J1824.1+5651_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/863365/ltcube_436838401_437097601_4FGL_J1824.1+5651_daily_bin762.fits outfile=/scratch/kocevski/863365/expmap_436838401_437097601_4FGL_J1824.1+5651_daily_bin762.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/863365/ltcube_436838401_437097601_4FGL_J1824.1+5651_daily_bin762.fits
.....................!
real 191.23
user 185.45
sys 5.35

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/863365/ft1_filtered_4FGL_J1824.1+5651_daily_bin762.fits scfile=/scratch/kocevski/863365/ft2_4FGL_J1824.1+5651_daily_bin762.fits outfile=/scratch/kocevski/863365/cmap_436838401_437097601_4FGL_J1824.1+5651_daily_bin762.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/863365/ft1_filtered_4FGL_J1824.1+5651_daily_bin762.fits scfile=/scratch/kocevski/863365/ft2_4FGL_J1824.1+5651_daily_bin762.fits outfile=/scratch/kocevski/863365/cmap_HighResolution_436838401_437097601_4FGL_J1824.1+5651_daily_bin762.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/863365/ft1_filtered_4FGL_J1824.1+5651_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/863365/ft2_4FGL_J1824.1+5651_daily_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/863365/Model_4FGL_J1824.1+5651_daily_bin762.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/863365/ft1_filtered_4FGL_J1824.1+5651_daily_bin762.fits.....................!
real 43.28
user 41.97
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.166       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .86814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.706       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7202       1.0000         .10000E-03   10000.    
     9 'Prefactor '    87.009       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.699       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7691       1.0000         .10000E-03   10000.    
    18 'norm      '    14.375       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.997       1.0000         .10000E-03   10000.    
    21 'norm      '    18.889       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1918       1.0000         .10000E-03   10000.    
    24 'Prefactor '    63.621       1.0000         .10000E-03   10000.    
    25 'norm      '    7.4678       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.2876       1.0000         .10000E-03   10000.    
    27 'norm      '    1.1239       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1810       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .52079       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=   3383.499     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4923 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.155        34.281       -.16047E-06   -.42709E-04
   2  Prefactor     .83311        12.566       -.51272E-05    .50216E-03
   3  Prefactor     .10003E-03    14.420        .44834E-05** at limit **
   4  Prefactor     .10000E-03    4.2106        .19128E-06** at limit **
   5  Prefactor     .10000E-03    39.041       -.78535E-06** at limit **
   6  norm          .10000E-03    2.7634       -.22210E-07** at limit **
   7  Prefactor     49.695        59.142       -.45362E-07   -.56685E-04
   8  Prefactor     4.7122        11.970       -.39935E-07   -.12753E-03
   9  Prefactor     86.981        145.59       -.16152E-05   -.89772E-04
  10  Prefactor     .10000E-03    66.588        .71489E-06** at limit **
  11  Prefactor     .10000E-03    72.735        .48285E-06** at limit **
  12  Prefactor     .10000E-03    32.231       -.21479E-06** at limit **
  13  Prefactor     .10000E-03    24.266        .11961E-06** at limit **
  14  Prefactor     .10002E-03    97.547       -.49102E-05** at limit **
  15  Prefactor     25.697        20.719       -.15006E-07    .14231E-04
  16  Prefactor     .10000E-03    59.402        .58486E-06** at limit **
  17  Prefactor     2.7688        5.0394        .17031E-06    .86047E-04
  18  norm          14.343        38.136       -.37433E-05   -.21249E-03
  19  Prefactor     .10000E-03    45.942       -.99760E-06** at limit **
  20  norm          14.994        17.838        .38881E-07   -.11602E-04
  21  norm          18.889        18.863        .55159E-07   -.93901E-05
  22  Prefactor     .10000E-03    24.310       -.44982E-07** at limit **
  23  Prefactor     8.1906        16.323        .39638E-05    .30030E-03
  24  Prefactor     63.632        98.076        .15563E-05    .35607E-04
  25  norm          7.4672        3.9734       -.44103E-06   -.31975E-04
  26  Prefactor     8.2871        5.7855       -.89352E-07   -.23242E-03
  27  norm          1.1268        13.204        .44649E-05    .87860E-04
  28  norm          .10000E-03    2.6064        .10638E-06** at limit **
  29  norm          .10000E-03    10.011        .39485E-06** at limit **
  30  Normalizat    1.1815        .31014        .40168E-05   -.25132E-03
  31  Prefactor     .52052        .15977       -.43702E-05   -.26090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.1547
  Prefactor  = 0.833113
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 49.6953
  Prefactor  = 4.71225
  Prefactor  = 86.9813
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 25.6975
  Prefactor  = 0.000100001
  Prefactor  = 2.76884
  norm       = 14.3431
  Prefactor  = 0.000100001
  norm       = 14.9942
  norm       = 18.889
  Prefactor  = 0.0001
  Prefactor  = 8.19063
  Prefactor  = 63.632
  norm       = 7.46724
  Prefactor  = 8.28713
  norm       = 1.1268
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.18152
  Prefactor  = 0.520525
 **********
 **   18 **HESSE 
 **********

 FCN=   3383.499     FROM HESSE     STATUS=OK           614 CALLS     5537 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.155        34.178        .61018E-04   -1.4393    
   2  Prefactor     .83311        22.915        .26441E-02   -1.5525    
   3  Prefactor     .10003E-03    60.286        .35550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0278        .23136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.7656        .94417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.695        59.167        .56880E-04   -1.4297    
   8  Prefactor     4.7122        11.826        .18521E-03   -1.5274    
   9  Prefactor     86.981        144.27        .43071E-04   -1.3840    
  10  Prefactor     .10000E-03    66.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    73.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    98.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.697        20.728        .79020E-04   -1.4694    
  16  Prefactor     .10000E-03    59.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7688        5.0230        .16619E-03   -1.5375    
  18  norm          14.343        38.397        .10564E-03   -1.4950    
  19  Prefactor     .10000E-03    46.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.994        17.835        .10343E-03   -1.4933    
  21  norm          18.889        18.863        .92156E-04   -1.4838    
  22  Prefactor     .10000E-03    24.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.1906        16.789        .70038E-03   -1.5136    
  24  Prefactor     63.632        98.236        .50311E-04   -1.4111    
  25  norm          7.4672        3.9761        .71309E-04   -1.5161    
  26  Prefactor     8.2871        5.7847        .11235E-03   -1.5132    
  27  norm          1.1268        14.138        .40324E-03   -1.5496    
  28  norm          .10000E-03    2.6103        .91725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    10.050        .17983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1815        .34791        .26831E-03   -.87176    
  31  Prefactor     .52052        .17920        .21660E-03   -1.1104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03067e-09
Minuit parameter uncertainties:
  1  34.1932
  2  8.74183
  3  0.00272702
  4  1.78219e-05
  5  0.000368987
  6  2.12756e-07
  7  59.2367
  8  11.8323
  9  144.853
  10  0.000653958
  11  0.000643665
  12  8.64575e-05
  13  0.000104494
  14  0.00247
  15  20.7339
  16  0.000384383
  17  5.02374
  18  38.463
  19  0.000497086
  20  17.8414
  21  18.8684
  22  1.48058e-05
  23  16.7983
  24  98.4876
  25  3.97624
  26  5.78507
  27  7.98471
  28  6.17451e-06
  29  5.7175e-05
  30  0.348593
  31  0.179393
Done.

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

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  1.434e+01  3.846e+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:  5.205e-01  1.794e-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.182e+00  3.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/863365/likelihoodResults_436838401_437097601_4FGL_J1824.1+5651_daily_bin762.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) = 3382.79638341
delta logL = 0.702316636344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3382.74831183
delta logL = 0.750388223419

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5111       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56717       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=   3382.748     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      273 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5115        54.519        .86984E-02    .98821E-04
   2  alpha         5.0000        2.9220        .46318    ** at limit **
   3  Normalizat    1.0586        .23558        .63488E-01   -.17933E-04
   4  Prefactor     .56719        .11195        .40604E-01   -.93584E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51154
  alpha      = 5
  Normalizat = 1.0586
  Prefactor  = 0.567191
 **********
 **   18 **HESSE 
 **********

 FCN=   3382.748     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5115        1.3861        .58750E-04   -1.5462    
   2  alpha         5.0000        4.0131        .54046E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0586        .32373        .28082E-03   -.91092    
   4  Prefactor     .56719        .17515        .20822E-03   -1.0899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01768e-12
Minuit parameter uncertainties:
  1  1.3861
  2  6.32161e-06
  3  0.324332
  4  0.175322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/863365': 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) = 3382.7483114
delta logL = 0.750388646021

Extracting fit parameters...

4FGL J1824.1+5651
   Spectrum: LogParabola
383         norm:  1.512e+00  1.386e+00  1.000e-04  1.000e+04 ( 1.000e-12)
384        alpha:  5.000e+00  6.322e-06  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:  5.672e-01  1.753e-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.059e+00  3.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 276.039 56.858
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 3.03e-07 +/- 2.77e-07
Energy Flux (Free Index): 4.09e-05 +/- 3.74e-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/863365/cmap_HighResolution_436838401_437097601_4FGL_J1824.1+5651_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-04', comment='SUCCESS', energy_flux2='4.09e-05', dlogl='7.50e-01', photon_flux2='3.03e-07', job_status='DONE', time_completed='2021-09-20 08:33:07.301733', photon_index_error2='0.00', photon_index2='5.00', ts='0.16', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='4.61e-07', energy_flux_error2='3.74e-05', EG='1.18', time_epoch_completed='1632151987.3', return_code='0', job_id='863365', GAL2='0.57', EG2='1.06', return_code2='0', photon_flux_error2='2.77e-07', ts2='1.81', photon_index='2.30' WHERE bin_id='762' AND source_name='4FGL J1824.1+5651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 08:33:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 863365: <4FGL_J1824.1+5651_daily_bin762> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.1+5651_daily_bin762 276.039 56.8585 436838401 437097601 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 :                                   731.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            756 sec.

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

