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


Performing analysis on: 4FGL_J1411.8+5249_daily_bin1130
RA = 212.969, Dec = 52.8278
tmin = 532224001, tmax = 532483201
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='247342', job_status='RUN', time_executed='2021-09-09 04:29:14.394749', time_epoch_executed='1631186954.39' WHERE source_name='4FGL J1411.8+5249' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247342/ft1_4FGL_J1411.8+5249_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247342/ft2_4FGL_J1411.8+5249_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247342/ft1_4FGL_J1411.8+5249_daily_bin1130.fits outfile=/scratch/kocevski/247342/ft1_filteredMKT_4FGL_J1411.8+5249_daily_bin1130.fits ra=212.969 dec=52.8278 rad=12.0 tmin=532224001.0 tmax=532483201.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.13
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247342/ft1_filtered_4FGL_J1411.8+5249_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/247342/ft2_4FGL_J1411.8+5249_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/247342/ltcube_532224001_532483201_4FGL_J1411.8+5249_daily_bin1130.fits outfile=/scratch/kocevski/247342/expmap_532224001_532483201_4FGL_J1411.8+5249_daily_bin1130.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/247342/ltcube_532224001_532483201_4FGL_J1411.8+5249_daily_bin1130.fits
.....................!
real 194.70
user 187.51
sys 5.26

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/247342/ft1_filtered_4FGL_J1411.8+5249_daily_bin1130.fits scfile=/scratch/kocevski/247342/ft2_4FGL_J1411.8+5249_daily_bin1130.fits outfile=/scratch/kocevski/247342/cmap_532224001_532483201_4FGL_J1411.8+5249_daily_bin1130.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.90
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247342/ft1_filtered_4FGL_J1411.8+5249_daily_bin1130.fits scfile=/scratch/kocevski/247342/ft2_4FGL_J1411.8+5249_daily_bin1130.fits outfile=/scratch/kocevski/247342/cmap_HighResolution_532224001_532483201_4FGL_J1411.8+5249_daily_bin1130.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.60
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56570       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .52200       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29310E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16208E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42728E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.2211       1.0000         .10000E-03   10000.    
    11 'norm      '    .40883E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11612       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18669E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6134       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15585E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45145       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1487       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40263E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75788E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10804E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15561E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.8724       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3756       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91558       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0867       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6374.950     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2939 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56456        2.9266        .29937E-06    .40877E-05
   2  Prefactor     .10000E-03    2.9791        .81813E-07** at limit **
   3  norm          .52214        4.1816       -.79879E-06   -.63926E-04
   4  Prefactor     .14583E-03    174.01       -.53170E-05** at limit **
   5  Prefactor     6.0175        12.206       -.24016E-05   -.40556E-03
   6  Prefactor     .10002E-03    13.605        .69587E-05** at limit **
   7  norm          .10000E-03    1.3005        .49940E-07** at limit **
   8  Prefactor     .10001E-03    1.3827        .51827E-05** at limit **
   9  Prefactor     .10000E-03    11.206        .91676E-06** at limit **
  10  norm          6.2210        1.8919       -.20050E-07   -.13740E-03
  11  norm          .10002E-03    3.0746        .10782E-04** at limit **
  12  norm          .10000E-03    1.1003        .74827E-07** at limit **
  13  Prefactor     .17175E-03    6159.5       -.87763E-04** at limit **
  14  Prefactor     .10003E-03    12.948        .11654E-04** at limit **
  15  Prefactor     .10009E-03    13.013       -.18395E-04** at limit **
  16  Prefactor     5.6138        4.5159        .16797E-06    .11382E-03
  17  Prefactor     .34406E-03    12.443       -.78779E-05** at limit **
  18  Prefactor     .45162        2.0327        .55914E-06   -.64623E-05
  19  Prefactor     9.1008        16.910       -.16742E-05   -.93697E-03
  20  Prefactor     .10040E-03    55.369        .10603E-04** at limit **
  21  Prefactor     .10000E-03    9.6060       -.64783E-05** at limit **
  22  Prefactor     10.285        21.522       -.82132E-05    .63574E-02
  23  Prefactor     .10000E-03    10.550       -.33623E-06** at limit **
  24  Prefactor     .10000E-03    5.6641        .59427E-07** at limit **
  25  Prefactor     .10000E-03    4.4899       -.14920E-06** at limit **
  26  norm          1.8715        1.4173        .62894E-08   -.62140E-04
  27  Prefactor     2.3914        6.2899        .15846E-04    .21958E-02
  28  Prefactor     .10000E-03    2.8747        .36238E-06** at limit **
  29  Prefactor     .10000E-03    2.9562       -.89500E-07** at limit **
  30  Normalizat    .91574        .18405       -.15810E-05    .10556E-03
  31  Prefactor     1.0868        .21940        .23375E-06    .18137E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.564559
  Prefactor  = 0.0001
  norm       = 0.52214
  Prefactor  = 0.000145831
  Prefactor  = 6.01753
  Prefactor  = 0.000100018
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 6.22101
  norm       = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.000171747
  Prefactor  = 0.000100025
  Prefactor  = 0.00010009
  Prefactor  = 5.61382
  Prefactor  = 0.000344064
  Prefactor  = 0.451625
  Prefactor  = 9.10082
  Prefactor  = 0.000100404
  Prefactor  = 0.0001
  Prefactor  = 10.2853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87149
  Prefactor  = 2.39145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.91574
  Prefactor  = 1.08676
 **********
 **   18 **HESSE 
 **********

 FCN=   6374.950     FROM HESSE     STATUS=OK           694 CALLS     3633 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56456        2.8852        .11536E-01   -1.5558    
   2  Prefactor     .10000E-03    2.9702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .52214        4.4015        .11360E-01   -1.5563    
   4  Prefactor     .14583E-03    30.585        .13315       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.0175        12.257        .40653E-02   -1.5217    
   6  Prefactor     .10002E-03    15.740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2972        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    21.807        .10617E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.2210        1.8973        .40236E-02   -1.5209    
  11  norm          .10002E-03    22.176        .10627E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17175E-03    6197.7        .95878E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    14.263        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    15.100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6138        4.5710        .42389E-02   -1.5234    
  17  Prefactor     .34406E-03    20.333        .11266       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .45162        2.4046        .11071E-01   -1.5574    
  19  Prefactor     9.1008        17.069        .33126E-02   -1.5105    
  20  Prefactor     .10040E-03    13.769        .10630       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.726        .10467E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.285        38.523        .31334E-02   -1.5066    
  23  Prefactor     .10000E-03    10.546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.6407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.4821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.8715        1.4289        .76088E-02   -1.5434    
  27  Prefactor     2.3914        7.9431        .66451E-02   -1.5399    
  28  Prefactor     .10000E-03    2.8472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.9379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91574        .15906        .45100E-01   -.95909    
  31  Prefactor     1.0868        .18189        .57163E-01   -.89891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04583e-07
Minuit parameter uncertainties:
  1  2.55251
  2  1.63077e-06
  3  3.03196
  4  0.0749182
  5  12.2625
  6  0.00106505
  7  2.92579e-07
  8  0.000692202
  9  0.000118293
  10  1.89733
  11  0.00128535
  12  2.15932e-06
  13  0.866556
  14  0.00119806
  15  0.00232636
  16  4.57128
  17  0.140938
  18  2.08411
  19  17.0777
  20  0.0047163
  21  4.21286e-06
  22  38.6165
  23  4.50031e-05
  24  4.63174e-06
  25  5.20569e-06
  26  1.42888
  27  7.94664
  28  5.48316e-06
  29  7.79346e-07
  30  0.159141
  31  0.181995
Done.

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

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.198e-03  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:  1.087e+00  1.820e-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.157e-01  1.591e-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: 3.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247342/likelihoodResults_532224001_532483201_4FGL_J1411.8+5249_daily_bin1130.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) = 6374.95078899
delta logL = -0.000333711097483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6374.95045533
delta logL = -5.66760718357e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0875       1.0000          .0000       10.000    
     3 'Normalizat'    .91580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0867       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=   6374.950     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      240 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10123E-03    113.87        .18142E-02** at limit **
   2  Index         2.0359        8.1628        .50000        .10984E-04
   3  Normalizat    .91574        .10159E-01    .22407E-03   -.47135E-04
   4  Prefactor     1.0868        .12431E-01    .25277E-03   -.32203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101227
  Index      = 2.03589
  Normalizat = 0.915741
  Prefactor  = 1.08676
 **********
 **   18 **HESSE 
 **********

 FCN=   6374.950     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10123E-03    493.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0359        8.9210        .50000       -.63456    
   3  Normalizat    .91574        .21895E-01    .89629E-05   -.95909    
   4  Prefactor     1.0868        .26793E-01    .10111E-04   -.89891    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15227e-08
Minuit parameter uncertainties:
  1  0.0496345
  2  624.519
  3  0.0218956
  4  0.0267933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247342': 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) = 6374.9504551
delta logL = 1.81062205229e-07

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.012e-04  4.963e-02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.036e+00  6.245e+02  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:  1.087e+00  2.679e-02  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.157e-01  2.190e-02  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/247342/cmap_HighResolution_532224001_532483201_4FGL_J1411.8+5249_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-03', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2021-09-09 04:44:23.807345', job_id='247342', GAL2='1.09', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631187863.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1130' AND source_name='4FGL J1411.8+5249' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:44:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 247342: <4FGL_J1411.8+5249_daily_bin1130> in cluster <slac> Done

Job <4FGL_J1411.8+5249_daily_bin1130> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 04:27:53 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:27:56 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:27:56 2021
Terminated at Thu Sep  9 04:44:24 2021
Results reported at Thu Sep  9 04:44:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1411.8+5249_daily_bin1130 212.969 52.8278 532224001 532483201 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 :                                   894.06 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             336.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

