/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 28 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 = 7461
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1411.8+5249_daily_bin1003
RA = 212.969, Dec = 52.8278
tmin = 499305601, tmax = 499564801
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='246223', job_status='RUN', time_executed='2021-09-09 04:22:51.522291', time_epoch_executed='1631186571.52' WHERE source_name='4FGL J1411.8+5249' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/246223

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/246223/ft1_4FGL_J1411.8+5249_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/246223/ft1_4FGL_J1411.8+5249_daily_bin1003.fits outfile=/scratch/kocevski/246223/ft1_filteredMKT_4FGL_J1411.8+5249_daily_bin1003.fits ra=212.969 dec=52.8278 rad=12.0 tmin=499305601.0 tmax=499564801.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.81
user 5.16
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.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/246223/ft1_filteredMKT_4FGL_J1411.8+5249_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/246223/ltcube_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.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/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits
.....................!
real 12.33
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/246223/ltcube_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.fits outfile=/scratch/kocevski/246223/expmap_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.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/246223/ltcube_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.fits
.....................!
real 191.67
user 186.07
sys 4.84

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
Added 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1411.8+5249 @ 212.969 52.8278

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.fits scfile=/scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits outfile=/scratch/kocevski/246223/cmap_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.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=212.969 yref=52.8278 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.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.fits scfile=/scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits outfile=/scratch/kocevski/246223/cmap_HighResolution_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.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=212.969 yref=52.8278 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/246223/Model_4FGL_J1411.8+5249_daily_bin1003.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
Working on...
/scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.fits.....................!
real 50.44
user 48.84
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.fits', '/scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits', expMap='/scratch/kocevski/246223/expmap_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.fits', expCube='/scratch/kocevski/246223/ltcube_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/246223/Model_4FGL_J1411.8+5249_daily_bin1003.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1411.8+5249'

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  5.211e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.110e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/246223/ft1_filtered_4FGL_J1411.8+5249_daily_bin1003.fits
Spacecraft file(s): /scratch/kocevski/246223/ft2_4FGL_J1411.8+5249_daily_bin1003.fits
Exposure map: /scratch/kocevski/246223/expmap_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.fits
Exposure cube: /scratch/kocevski/246223/ltcube_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/246223/Model_4FGL_J1411.8+5249_daily_bin1003.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) = 5677.92142504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8865       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4109       1.0000         .10000E-03   10000.    
     3 'norm      '    .62443E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.814       1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.687       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12907E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.8652       1.0000         .10000E-03   10000.    
    11 'norm      '    .10724E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17868E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.174       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.535       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.028       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.306       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.431       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .94209       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.567       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10280E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    4.0966       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.200       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.4523       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93478       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81843       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5677.891     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4197 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8866        3.1460        .75753E-08   -.19738E-04
   2  Prefactor     7.4108        11.379        .19281E-07   -.11726E-04
   3  norm          .48028E-01    6.1617        .14373E-05   -.11613E-03
   4  Prefactor     .10000E-03    40.046        .85816E-06** at limit **
   5  Prefactor     21.526        23.921       -.53520E-06   -.41581E-04
   6  Prefactor     67.823        52.875        .43271E-06   -.34747E-04
   7  norm          .10000E-03    4.0063        .33576E-06** at limit **
   8  Prefactor     34.697        62.789       -.32966E-06   -.18739E-04
   9  Prefactor     .10000E-03    141.13        .10054E-04** at limit **
  10  norm          9.8653        2.6970        .13055E-07   -.51374E-04
  11  norm          .10000E-03    121.77        .12224E-04** at limit **
  12  norm          2.8094        3.2820       -.24970E-06   -.15301E-03
  13  Prefactor     .10000E-03    181.97       -.26245E-05** at limit **
  14  Prefactor     87.189        50.434        .72751E-06    .31447E-05
  15  Prefactor     .10000E-03    71.796       -.48211E-05** at limit **
  16  Prefactor     15.536        6.9406       -.45422E-06   -.20870E-04
  17  Prefactor     19.028        27.028       -.10348E-05    .34948E-05
  18  Prefactor     .10000E-03    .50853        .35429E-07** at limit **
  19  Prefactor     .10000E-03    7.1751        .21298E-06** at limit **
  20  Prefactor     13.308        18.226       -.56433E-06   -.20459E-04
  21  Prefactor     11.525        95.086        .14246E-04    .81502E-05
  22  Prefactor     .93542        19.055        .16113E-06    .16238E-03
  23  Prefactor     27.561        26.388        .17081E-06   -.13845E-04
  24  Prefactor     .10000E-03    26.174       -.15646E-05** at limit **
  25  Prefactor     .10000E-03    229.35       -.11631E-04** at limit **
  26  norm          4.0965        1.8320       -.37266E-07   -.15496E-03
  27  Prefactor     13.200        10.391        .17641E-06   -.89042E-04
  28  Prefactor     5.4513        5.3727       -.65681E-06   -.14294E-03
  29  Prefactor     .10000E-03    10.594        .18207E-05** at limit **
  30  Normalizat    .93468        .19224        .15389E-05   -.35357E-03
  31  Prefactor     .81864        .20533       -.41792E-05   -.69467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88656
  Prefactor  = 7.41079
  norm       = 0.0480281
  Prefactor  = 0.0001
  Prefactor  = 21.5263
  Prefactor  = 67.8226
  norm       = 0.0001
  Prefactor  = 34.697
  Prefactor  = 0.0001
  norm       = 9.86529
  norm       = 0.0001
  norm       = 2.80941
  Prefactor  = 0.0001
  Prefactor  = 87.1894
  Prefactor  = 0.0001
  Prefactor  = 15.5355
  Prefactor  = 19.028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.308
  Prefactor  = 11.5245
  Prefactor  = 0.935423
  Prefactor  = 27.561
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 4.09651
  Prefactor  = 13.1996
  Prefactor  = 5.45129
  Prefactor  = 0.0001
  Normalizat = 0.934676
  Prefactor  = 0.818639
 **********
 **   18 **HESSE 
 **********

 FCN=   5677.891     FROM HESSE     STATUS=OK           644 CALLS     4841 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8866        3.1472        .10461E-03   -1.5266    
   2  Prefactor     7.4108        11.379        .14733E-03   -1.5163    
   3  norm          .48028E-01    4.8629        .48805E-01   -1.5664    
   4  Prefactor     .10000E-03    40.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.526        23.924        .86340E-04   -1.4780    
   6  Prefactor     67.823        52.852        .48740E-04   -1.4059    
   7  norm          .10000E-03    4.0421        .14699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.697        62.835        .68042E-04   -1.4529    
   9  Prefactor     .10000E-03    144.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.8653        2.6991        .61283E-04   -1.5080    
  11  norm          .10000E-03    122.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8094        3.2734        .14197E-03   -1.5373    
  13  Prefactor     .10000E-03    181.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     87.189        50.455        .21515E-03   -1.3838    
  15  Prefactor     .10000E-03    72.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.536        6.9319        .10162E-03   -1.4919    
  17  Prefactor     19.028        27.141        .91817E-04   -1.4835    
  18  Prefactor     .10000E-03    .50899        .52470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.308        18.211        .10981E-03   -1.4978    
  21  Prefactor     11.525        95.869        .11849E-03   -1.5029    
  22  Prefactor     .93542        125.85        .61091E-02   -1.5515    
  23  Prefactor     27.561        26.395        .76303E-04   -1.4658    
  24  Prefactor     .10000E-03    26.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.805        .77845E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.0965        1.8298        .63766E-04   -1.5303    
  27  Prefactor     13.200        10.393        .11025E-03   -1.4981    
  28  Prefactor     5.4513        5.3642        .81286E-03   -1.5241    
  29  Prefactor     .10000E-03    10.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93468        .22562        .24013E-03   -.95252    
  31  Prefactor     .81864        .23665        .28802E-03   -.99045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61927e-09
Minuit parameter uncertainties:
  1  3.14731
  2  11.3827
  3  0.965628
  4  2.24555e-05
  5  23.9351
  6  52.8883
  7  1.61692e-05
  8  62.955
  9  0.000254139
  10  2.69916
  11  0.000331761
  12  3.27357
  13  4.76215e-05
  14  50.4796
  15  1.24219e-05
  16  6.93225
  17  27.1588
  18  1.31533e-07
  19  4.84414e-06
  20  18.2191
  21  66.6234
  22  21.7459
  23  26.4059
  24  0.000249242
  25  0.000421069
  26  1.82983
  27  10.3942
  28  5.36466
  29  2.61431e-05
  30  0.225849
  31  0.236943
Done.

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

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  8.719e+01  5.048e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.110e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  8.186e-01  2.369e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  9.347e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.80
Ra Dec: 212.969 52.828
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.38e-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) = 5677.79998928
delta logL = 0.0914225443967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5677.76676393
delta logL = 0.124647896827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.90       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9081       1.0000          .0000       10.000    
     3 'Normalizat'    .94120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81480       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5677.767     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.86        75.316        .19271E-03    .16400E-04
   2  Index         1.9083        .40263        .54437E-02    .30472E-03
   3  Normalizat    .94117        .20408        .23943E-03    .41405E-04
   4  Prefactor     .81480        .23118        .28866E-03   -.15754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.857
  Index      = 1.90827
  Normalizat = 0.941171
  Prefactor  = 0.814797
 **********
 **   18 **HESSE 
 **********

 FCN=   5677.767     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.86        74.098        .38542E-04   -1.3617    
   2  Index         1.9083        .39612        .10887E-02   -.66664    
   3  Normalizat    .94117        .20428        .95772E-05   -.95028    
   4  Prefactor     .81480        .23143        .11546E-04   -.99185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0431e-11
Minuit parameter uncertainties:
  1  74.1614
  2  0.396791
  3  0.204449
  4  0.231705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/246223': 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) = 5677.76676372
delta logL = 0.12464810137

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.089e+02  7.416e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  1.908e+00  3.968e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  2.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  8.148e-01  2.317e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  9.412e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.04
Ra Dec: 212.969 52.828
Photon Index (Free Index): 1.91 +/- 0.40
Photon Flux (Free Index): 3.68e-08 +/- 2.64e-08
Energy Flux (Free Index): 3.23e-05 +/- 2.87e-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/246223/cmap_HighResolution_499305601_499564801_4FGL_J1411.8+5249_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='3.23e-05', photon_flux_error='2.56e-08', dlogl='1.25e-01', energy_flux='2.38e-05', photon_flux2='3.68e-08', job_status='DONE', time_completed='2021-09-09 04:36:38.077014', photon_index_error2='0.40', photon_index2='1.91', ts='8.80', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.87e-05', EG='0.93', time_epoch_completed='1631187398.08', return_code='0', job_id='246223', GAL2='0.81', EG2='0.94', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.64e-08', ts2='9.04', photon_index='2.11' WHERE bin_id='1003' AND source_name='4FGL J1411.8+5249' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 246223: <4FGL_J1411.8+5249_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1411.8+5249_daily_bin1003> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 04:21:45 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:21:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 04:21:48 2021
Terminated at Thu Sep  9 04:36:38 2021
Results reported at Thu Sep  9 04:36:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1411.8+5249_daily_bin1003 212.969 52.8278 499305601 499564801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1411.8+5249 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   811.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

