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


Performing analysis on: 4FGL_J1411.8+5249_daily_bin1170
RA = 212.969, Dec = 52.8278
tmin = 542592001, tmax = 542851201
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='247382', job_status='RUN', time_executed='2021-09-09 04:30:18.957906', time_epoch_executed='1631187018.96' WHERE source_name='4FGL J1411.8+5249' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247382

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247382/ft1_4FGL_J1411.8+5249_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247382/ft1_4FGL_J1411.8+5249_daily_bin1170.fits outfile=/scratch/kocevski/247382/ft1_filteredMKT_4FGL_J1411.8+5249_daily_bin1170.fits ra=212.969 dec=52.8278 rad=12.0 tmin=542592001.0 tmax=542851201.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 7.91
user 6.47
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.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/247382/ft1_filteredMKT_4FGL_J1411.8+5249_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.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.89
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/247382/ltcube_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.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/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits
.....................!
real 12.44
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/247382/ltcube_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.fits outfile=/scratch/kocevski/247382/expmap_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.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/247382/ltcube_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.fits
.....................!
real 198.93
user 185.26
sys 4.62

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/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.fits scfile=/scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits outfile=/scratch/kocevski/247382/cmap_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.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.61
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.fits scfile=/scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits outfile=/scratch/kocevski/247382/cmap_HighResolution_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.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.89
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/247382/Model_4FGL_J1411.8+5249_daily_bin1170.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/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.fits.....................!
real 28.76
user 27.13
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.fits', '/scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits', expMap='/scratch/kocevski/247382/expmap_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.fits', expCube='/scratch/kocevski/247382/ltcube_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/247382/Model_4FGL_J1411.8+5249_daily_bin1170.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/247382/ft1_filtered_4FGL_J1411.8+5249_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/247382/ft2_4FGL_J1411.8+5249_daily_bin1170.fits
Exposure map: /scratch/kocevski/247382/expmap_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.fits
Exposure cube: /scratch/kocevski/247382/ltcube_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/247382/Model_4FGL_J1411.8+5249_daily_bin1170.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) = 2338.01826942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5087       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6800       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.370       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .87077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3795       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .33312       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25280E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67971       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.364       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.672       1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.770       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .51473       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.6400       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .54573       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=   2338.010     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4143 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    14.577       -.93228E-06** at limit **
   2  Prefactor     4.5231        50.434        .84853E-06   -.16441E-04
   3  norm          2.6800        6.8124       -.80903E-06   -.17025E-03
   4  Prefactor     34.321        84.448       -.33878E-05   -.30590E-04
   5  Prefactor     .10000E-03    15.439        .15160E-07** at limit **
   6  Prefactor     .10000E-03    49.844        .16345E-06** at limit **
   7  norm          .10002E-03    25.673       -.41965E-05** at limit **
   8  Prefactor     .10000E-03    49.957        .11804E-06** at limit **
   9  Prefactor     .10000E-03    53.911        .47763E-06** at limit **
  10  norm          8.3799        3.6467        .44112E-07   -.24845E-04
  11  norm          .10000E-03    74.704       -.44806E-06** at limit **
  12  norm          .34500        10.458        .23686E-05   -.13152E-03
  13  Prefactor     .10000E-03    407.01       -.41699E-05** at limit **
  14  Prefactor     .10000E-03    68.184       -.60771E-07** at limit **
  15  Prefactor     54.986        88.329       -.64930E-06   -.86935E-05
  16  Prefactor     .10000E-03    3.7096       -.75536E-07** at limit **
  17  Prefactor     25.568        32.011        .68296E-07   -.30055E-05
  18  Prefactor     .67923        5.6918       -.65650E-06   -.10753E-03
  19  Prefactor     .10000E-03    15.287       -.19181E-06** at limit **
  20  Prefactor     .10000E-03    21.042       -.37754E-06** at limit **
  21  Prefactor     28.548        104.03        .76740E-05    .28575E-05
  22  Prefactor     37.677        43.252        .28273E-06    .14389E-05
  23  Prefactor     32.775        41.673        .66615E-07   -.25213E-05
  24  Prefactor     .10000E-03    20.264       -.84902E-06** at limit **
  25  Prefactor     .10000E-03    20.043       -.32306E-06** at limit **
  26  norm          .51320        1.6734        .78271E-06    .27514E-03
  27  Prefactor     .10000E-03    4.2871       -.16775E-07** at limit **
  28  Prefactor     .10000E-03    8.8216       -.24843E-06** at limit **
  29  Prefactor     .10000E-03    5.7321        .35174E-07** at limit **
  30  Normalizat    1.6396        .32930        .32986E-06   -.25603E-03
  31  Prefactor     .54598        .34957       -.32038E-05   -.98811E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100019
  Prefactor  = 4.52306
  norm       = 2.68
  Prefactor  = 34.321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.37994
  norm       = 0.0001
  norm       = 0.345004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.9861
  Prefactor  = 0.0001
  Prefactor  = 25.5683
  Prefactor  = 0.679234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5481
  Prefactor  = 37.6767
  Prefactor  = 32.7747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.513203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.63961
  Prefactor  = 0.545977
 **********
 **   18 **HESSE 
 **********

 FCN=   2338.010     FROM HESSE     STATUS=OK           622 CALLS     4765 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    22.610        .28512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5231        51.058        .18961E-03   -1.5283    
   3  norm          2.6800        6.7853        .95154E-03   -1.5381    
   4  Prefactor     34.321        82.892        .68354E-04   -1.4536    
   5  Prefactor     .10000E-03    15.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10002E-03    36.419        .26324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    49.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3799        3.6532        .58295E-04   -1.5129    
  11  norm          .10000E-03    74.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .34500        39.126        .24104E-02   -1.5591    
  13  Prefactor     .10000E-03    406.55        .21461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    68.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.986        88.108        .54092E-04   -1.4224    
  16  Prefactor     .10000E-03    3.7107        .90931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.568        32.110        .79236E-04   -1.4696    
  18  Prefactor     .67923        5.5539        .21396E-03   -1.5543    
  19  Prefactor     .10000E-03    15.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.548        102.76        .37612E-03   -1.4639    
  22  Prefactor     37.677        43.231        .65300E-04   -1.4480    
  23  Prefactor     32.775        41.686        .34999E-03   -1.4562    
  24  Prefactor     .10000E-03    20.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .51320        1.6268        .11412E-02   -1.5565    
  27  Prefactor     .10000E-03    4.2884        .97783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.0132        .14012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.7485        .11305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.6396        .37889        .20829E-03   -.73928    
  31  Prefactor     .54598        .39264        .38357E-03   -1.0991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77623e-09
Minuit parameter uncertainties:
  1  0.00132628
  2  30.4259
  3  6.78727
  4  83.172
  5  1.42752e-05
  6  0.000103058
  7  0.0016829
  8  4.50766e-06
  9  1.18228e-05
  10  3.65331
  11  1.92057e-05
  12  7.35193
  13  0.000419402
  14  1.11423e-06
  15  88.3179
  16  1.91806e-06
  17  32.1317
  18  3.88475
  19  3.75937e-06
  20  1.84742e-05
  21  103.404
  22  43.267
  23  41.7234
  24  0.000152998
  25  7.05798e-05
  26  1.62694
  27  7.616e-07
  28  1.69169e-06
  29  2.25791e-06
  30  0.379563
  31  0.394626
Done.

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

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.114e-06  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:  5.460e-01  3.946e-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:  1.640e+00  3.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 212.969 52.828
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247382/likelihoodResults_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.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) = 2338.00970261
delta logL = -6.92386211085e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2338.00963337
delta logL = -1.56114765559e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0619       1.0000          .0000       10.000    
     3 'Normalizat'    1.6396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54598       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.

 FCN=   2338.010     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6649.8        .90712E-02** at limit **
   2  Index         2.0622        5.9321        .50000       -.55047E-07
   3  Normalizat    1.6396        .58260E-01    .47121E-01   -.13099E-05
   4  Prefactor     .54598        .65874E-01    .86577E-01    .13625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06221
  Normalizat = 1.63961
  Prefactor  = 0.545975
 **********
 **   18 **HESSE 
 **********

 FCN=   2338.010     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8413.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0622        6.4908        .50000       -.62804    
   3  Normalizat    1.6396        .10920        .20829E-03   -.73927    
   4  Prefactor     .54598        .12310        .38356E-03   -1.0991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.6243e-13
Minuit parameter uncertainties:
  1  3.16329e-06
  2  48.2659
  3  0.109219
  4  0.12316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247382': 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): 102
logL (Free Index) = 2338.00963337
delta logL = -7.62611307437e-10

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  3.163e-06  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.062e+00  4.827e+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:  5.460e-01  1.232e-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:  1.640e+00  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 212.969 52.828

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/247382/cmap_HighResolution_542592001_542851201_4FGL_J1411.8+5249_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-09 04:40:48.943845', job_id='247382', GAL2='0.55', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1631187648.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='-7.63e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1170' AND source_name='4FGL J1411.8+5249' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:40:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 247382: <4FGL_J1411.8+5249_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1411.8+5249_daily_bin1170> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 04:27:59 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:28:00 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:28:00 2021
Terminated at Thu Sep  9 04:40:50 2021
Results reported at Thu Sep  9 04:40:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1411.8+5249_daily_bin1170 212.969 52.8278 542592001 542851201 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 :                                   595.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             276.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

