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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1300
RA = 172.755, Dec = 38.2565
tmin = 576288001, tmax = 576547201
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='905018', job_status='RUN', time_executed='2021-09-04 02:52:30.994632', time_epoch_executed='1630749150.99' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905018

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905018/ft1_4FGL_J1131.0+3815_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905018/ft1_4FGL_J1131.0+3815_daily_bin1300.fits outfile=/scratch/kocevski/905018/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1300.fits ra=172.755 dec=38.2565 rad=12.0 tmin=576288001.0 tmax=576547201.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 3.33
user 3.09
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.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/905018/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1300.fits evtable="EVENTS" outfile="/scratch/kocevski/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.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.56
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/905018/ltcube_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.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/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits
.....................!
real 13.56
user 13.17
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/905018/ltcube_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.fits outfile=/scratch/kocevski/905018/expmap_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.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/905018/ltcube_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.fits
.....................!
real 190.57
user 184.90
sys 4.45

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

Setting source of interest to:
4FGL J1131.0+3815 @ 172.755 38.2565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.fits scfile=/scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits outfile=/scratch/kocevski/905018/cmap_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.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=172.755 yref=38.2565 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.65
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.fits scfile=/scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits outfile=/scratch/kocevski/905018/cmap_HighResolution_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.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=172.755 yref=38.2565 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905018/Model_4FGL_J1131.0+3815_daily_bin1300.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/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.fits.....................!
real 51.17
user 43.78
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.fits', '/scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits', expMap='/scratch/kocevski/905018/expmap_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.fits', expCube='/scratch/kocevski/905018/ltcube_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905018/Model_4FGL_J1131.0+3815_daily_bin1300.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1131.0+3815'

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.699e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/905018/ft1_filtered_4FGL_J1131.0+3815_daily_bin1300.fits
Spacecraft file(s): /scratch/kocevski/905018/ft2_4FGL_J1131.0+3815_daily_bin1300.fits
Exposure map: /scratch/kocevski/905018/expmap_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.fits
Exposure cube: /scratch/kocevski/905018/ltcube_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905018/Model_4FGL_J1131.0+3815_daily_bin1300.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) = 5150.3644255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0995       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.941       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7686       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3940       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15879E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .59926E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.440       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.588       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.317       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5068       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .38503       1.0000         .10000E-03   10000.    
    28 'Prefactor '    42.453       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .34728       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.7138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5150.346     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4177 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.944        .18259E-06** at limit **
   2  Prefactor     .10000E-03    1.5081        .10727E-06** at limit **
   3  Prefactor     3.0992        5.3919        .62819E-06    .13906E-03
   4  Prefactor     .10000E-03    16.039        .55762E-07** at limit **
   5  Prefactor     7.7457        25.554        .31184E-06   -.13267E-04
   6  Prefactor     11.071        126.85       -.29037E-05   -.75995E-05
   7  norm          1.7687        .38383        .17657E-07   -.30572E-03
   8  Prefactor     1.3960        3.2728        .59255E-06    .14040E-03
   9  Prefactor     .10000E-03    7.4762       -.82601E-07** at limit **
  10  Prefactor     .10000E-03    5.3411       -.15399E-07** at limit **
  11  Prefactor     .10009E-03    728.97       -.26837E-04** at limit **
  12  norm          .10086E-03    14.596        .12131E-05** at limit **
  13  norm          .10000E-03    57.307       -.15694E-06** at limit **
  14  Prefactor     .49443        3.8375        .13558E-05   -.35717E-03
  15  Prefactor     .10000E-03    30.742       -.30563E-06** at limit **
  16  Prefactor     .10000E-03    12.611       -.36213E-06** at limit **
  17  norm          .10000E-03    1.5641       -.61250E-06** at limit **
  18  Prefactor     .10000E-03    4.1429       -.12696E-06** at limit **
  19  Prefactor     9.4347        6.7772       -.56894E-07   -.27720E-03
  20  Prefactor     25.429        25.056       -.54855E-07    .65313E-05
  21  norm          .10000E-03    .21198       -.97161E-08** at limit **
  22  norm          20.589        12.208       -.14981E-06   -.72154E-04
  23  Prefactor     14.317        22.866       -.31062E-08   -.22221E-04
  24  Prefactor     2.5067        5.2538        .29542E-06    .60619E-04
  25  Prefactor     .10000E-03    43.983       -.76425E-06** at limit **
  26  Prefactor     .10000E-03    12.968       -.43335E-06** at limit **
  27  norm          .38520        1.0129        .79204E-07    .12160E-04
  28  Prefactor     42.445        31.517       -.57629E-07   -.20633E-04
  29  Prefactor     .10000E-03    5.8376       -.31621E-06** at limit **
  30  Normalizat    .34724        .20348        .22063E-05   -.80927E-04
  31  Prefactor     1.7138        .24455       -.17498E-05   -.10078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09925
  Prefactor  = 0.0001
  Prefactor  = 7.74566
  Prefactor  = 11.0706
  norm       = 1.7687
  Prefactor  = 1.39601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100092
  norm       = 0.000100864
  norm       = 0.0001
  Prefactor  = 0.494434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.4347
  Prefactor  = 25.429
  norm       = 0.0001
  norm       = 20.5891
  Prefactor  = 14.317
  Prefactor  = 2.50668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.385196
  Prefactor  = 42.4452
  Prefactor  = 0.0001
  Normalizat = 0.347236
  Prefactor  = 1.71381
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.346     FROM HESSE     STATUS=OK           628 CALLS     4805 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5159        .86054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0992        5.3627        .21012E-03   -1.5356    
   4  Prefactor     .10000E-03    16.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7457        25.547        .14433E-03   -1.5151    
   6  Prefactor     11.071        125.78        .12113E-03   -1.5042    
   7  norm          1.7687        .38313        .19858E-04   -1.5442    
   8  Prefactor     1.3960        3.2468        .18862E-03   -1.5472    
   9  Prefactor     .10000E-03    7.4999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3439        .16197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10009E-03    766.36        .40851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10086E-03    129.00        .46886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    57.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49443        5.1441        .20429E-02   -1.5567    
  15  Prefactor     .10000E-03    30.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7187        .16435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1497        .14268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4347        6.5620        .13047E-03   -1.5094    
  20  Prefactor     25.429        24.924        .79421E-04   -1.4699    
  21  norm          .10000E-03    .21204        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.589        12.228        .88273E-04   -1.4800    
  23  Prefactor     14.317        22.700        .10585E-03   -1.4951    
  24  Prefactor     2.5067        5.2036        .22333E-03   -1.5391    
  25  Prefactor     .10000E-03    44.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .38520        .94017        .11067E-02   -1.5584    
  28  Prefactor     42.445        31.425        .61526E-04   -1.4404    
  29  Prefactor     .10000E-03    5.8962        .16933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .34724        .21059        .35832E-03   -1.2012    
  31  Prefactor     1.7138        .26240        .22435E-03   -.71715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47734e-09
Minuit parameter uncertainties:
  1  2.42883e-05
  2  2.33987e-06
  3  5.36357
  4  3.41709e-06
  5  25.5833
  6  74.8298
  7  0.383135
  8  3.2472
  9  2.01187e-05
  10  5.66728e-06
  11  0.016978
  12  0.0211559
  13  3.13092e-05
  14  3.18966
  15  0.000120615
  16  3.953e-05
  17  3.24639e-05
  18  8.21899e-06
  19  6.56248
  20  24.9342
  21  1.08539e-07
  22  12.2293
  23  22.7139
  24  5.20449
  25  0.000145112
  26  4.81254e-05
  27  0.940203
  28  31.4375
  29  1.5801e-05
  30  0.211074
  31  0.262608
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  3.246e-05  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.714e+00  2.626e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  3.472e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 6.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905018/likelihoodResults_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.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) = 5150.34796398
delta logL = -0.00175148407652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5150.34621333
delta logL = -8.39921085571e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10491E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5678       1.0000          .0000       5.0000    
     3 'Normalizat'    .34730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5150.346     FROM MIGRAD    STATUS=FAILED        97 CALLS      264 TOTAL
                     EDM=   .29E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10743E-03    121.55        .16373E-02** at limit **
   2  alpha         3.0480        2.7927        .50000       -.99302E-05
   3  Normalizat    .34723        .24229E-01    .35834E-03   -.88801E-04
   4  Prefactor     1.7138        .31761E-01    .22435E-03    .11663E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5150.346     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      389 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10500E-03    121.55        .26847E-03** at limit **
   2  alpha         3.0474        2.7927        .30817E-03   -.99302E-05
   3  Normalizat    .34722        .24229E-01    .10819E-04   -.88801E-04
   4  Prefactor     1.7138        .31761E-01    .50060E-05    .11663E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5150.346     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      439 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    430.18        .32745E-03** at limit **
   2  alpha         3.1248        3.3113        .50000        .14597E-06
   3  Normalizat    .34723        .51171E-01    .14334E-04   -.48223E-04
   4  Prefactor     1.7138        .67075E-01    .44870E-04    .14462E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.12477
  Normalizat = 0.347232
  Prefactor  = 1.71382
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.346     FROM HESSE     STATUS=OK            29 CALLS      468 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4209        .65491E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1248        3.1821        .50000        .25259    
   3  Normalizat    .34723        .19752        .28667E-05   -1.2012    
   4  Prefactor     1.7138        .25925        .89741E-05   -.71715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81319e-10
Minuit parameter uncertainties:
  1  8.13869e-06
  2  138.224
  3  0.197922
  4  0.259455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905018': 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) = 5150.34620701
delta logL = 5.4812298913e-06

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  8.139e-06  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  3.125e+00  1.382e+02  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.714e+00  2.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  3.472e-01  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.755 38.257

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/905018/cmap_HighResolution_576288001_576547201_4FGL_J1131.0+3815_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-04 03:07:25.996782', job_id='905018', GAL2='1.71', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1630750046.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.71', dlogl='5.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1300' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:07:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 905018: <4FGL_J1131.0+3815_daily_bin1300> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1300> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 02:51:00 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:51:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 02:51:06 2021
Terminated at Sat Sep  4 03:07:26 2021
Results reported at Sat Sep  4 03:07:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1300 172.755 38.2565 576288001 576547201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.0+3815 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   873.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            986 sec.

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

