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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1405
RA = 172.755, Dec = 38.2565
tmin = 603504001, tmax = 603763201
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='905162', job_status='RUN', time_executed='2021-09-04 02:53:20.735826', time_epoch_executed='1630749200.74' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905162

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905162/ft1_4FGL_J1131.0+3815_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905162/ft1_4FGL_J1131.0+3815_daily_bin1405.fits outfile=/scratch/kocevski/905162/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1405.fits ra=172.755 dec=38.2565 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.87
user 2.53
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.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/905162/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1405.fits evtable="EVENTS" outfile="/scratch/kocevski/905162/ft1_filtered_4FGL_J1131.0+3815_daily_bin1405.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.57
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905162/ft1_filtered_4FGL_J1131.0+3815_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/905162/ltcube_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.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/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.fits
.....................!
real 16.04
user 15.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905162/ft1_filtered_4FGL_J1131.0+3815_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/905162/ltcube_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.fits outfile=/scratch/kocevski/905162/expmap_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.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/905162/ltcube_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.fits
.....................!
real 190.72
user 185.37
sys 4.89

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/905162/ft1_filtered_4FGL_J1131.0+3815_daily_bin1405.fits scfile=/scratch/kocevski/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.fits outfile=/scratch/kocevski/905162/cmap_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905162/ft1_filtered_4FGL_J1131.0+3815_daily_bin1405.fits scfile=/scratch/kocevski/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.fits outfile=/scratch/kocevski/905162/cmap_HighResolution_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.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.63
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905162/ft1_filtered_4FGL_J1131.0+3815_daily_bin1405.fits', '/scratch/kocevski/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.fits', expMap='/scratch/kocevski/905162/expmap_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.fits', expCube='/scratch/kocevski/905162/ltcube_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905162/Model_4FGL_J1131.0+3815_daily_bin1405.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/905162/ft1_filtered_4FGL_J1131.0+3815_daily_bin1405.fits
Spacecraft file(s): /scratch/kocevski/905162/ft2_4FGL_J1131.0+3815_daily_bin1405.fits
Exposure map: /scratch/kocevski/905162/expmap_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.fits
Exposure cube: /scratch/kocevski/905162/ltcube_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905162/Model_4FGL_J1131.0+3815_daily_bin1405.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) = 1382.93534265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    86.801       1.0000         .10000E-03   10000.    
    13 'norm      '    251.22       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.478       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.162       1.0000         .10000E-03   10000.    
    23 'Prefactor '    125.97       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11478E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    76.659       1.0000         .10000E-03   10000.    
    27 'norm      '    2.5462       1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.653       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.7722       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.6134       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .15611       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=   1382.877     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4677 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    322.86        .15925E-04** at limit **
   2  Prefactor     .10000E-03    27.309        .32789E-04** at limit **
   3  Prefactor     .10000E-03    52.131        .40696E-04** at limit **
   4  Prefactor     .10000E-03    128.21       -.36764E-04** at limit **
   5  Prefactor     .10000E-03    151.73        .40354E-04** at limit **
   6  Prefactor     .10000E-03    213.42        .13084E-03** at limit **
   7  norm          .10000E-03    .58884       -.67772E-07** at limit **
   8  Prefactor     .10000E-03    19.336        .30708E-06** at limit **
   9  Prefactor     .10000E-03    30.962       -.10043E-05** at limit **
  10  Prefactor     .10000E-03    32.716       -.31983E-04** at limit **
  11  Prefactor     .10000E-03    137.64       -.40848E-05** at limit **
  12  norm          86.814        89.199        .93791E-05    .15494E-04
  13  norm          251.21        185.84       -.55446E-05   -.46837E-05
  14  Prefactor     .10000E-03    4.1320       -.77906E-07** at limit **
  15  Prefactor     .10000E-03    69.538       -.47664E-04** at limit **
  16  Prefactor     .10000E-03    62.031        .16860E-05** at limit **
  17  norm          10.480        8.1907        .62178E-07    .33979E-03
  18  Prefactor     .10000E-03    30.336        .10909E-04** at limit **
  19  Prefactor     6.1611        16.276       -.23904E-05   -.10951E-04
  20  Prefactor     .10000E-03    25.857       -.21455E-04** at limit **
  21  norm          .10000E-03    .76849        .12054E-06** at limit **
  22  norm          15.162        15.156        .65389E-06    .41517E-03
  23  Prefactor     125.98        106.92        .96355E-05    .39389E-04
  24  Prefactor     .10000E-03    4.1901       -.31644E-07** at limit **
  25  Prefactor     .10013E-03    630.19       -.51717E-03** at limit **
  26  Prefactor     76.673        55.077        .38682E-05    .24304E-04
  27  norm          2.5466        3.1227       -.32905E-06   -.16099E-03
  28  Prefactor     29.663        77.006        .69176E-05    .10941E-04
  29  Prefactor     8.7729        13.752       -.15926E-05   -.61384E-03
  30  Normalizat    1.6133        .81578       -.26189E-05    .62499E-03
  31  Prefactor     .15605        1.2528        .42748E-05    .17010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 86.8141
  norm       = 251.212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4795
  Prefactor  = 0.0001
  Prefactor  = 6.16113
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.1619
  Prefactor  = 125.983
  Prefactor  = 0.0001
  Prefactor  = 0.000100131
  Prefactor  = 76.6727
  norm       = 2.54659
  Prefactor  = 29.6631
  Prefactor  = 8.77293
  Normalizat = 1.61332
  Prefactor  = 0.156052
 **********
 **   18 **HESSE 
 **********

 FCN=   1382.877     FROM HESSE     STATUS=OK           604 CALLS     5281 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    322.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    128.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    151.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    213.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .69353        .55489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.346        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    137.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          86.814        87.525        .43122E-04   -1.3842    
  13  norm          251.21        181.97        .12780E-03   -1.2525    
  14  Prefactor     .10000E-03    4.1356        .73787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    69.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    62.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.480        7.9594        .86744E-04   -1.5060    
  18  Prefactor     .10000E-03    30.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1611        16.204        .16176E-03   -1.5211    
  20  Prefactor     .10000E-03    25.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .77197        .31812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.162        15.105        .10286E-03   -1.4929    
  23  Prefactor     125.98        106.64        .35866E-04   -1.3458    
  24  Prefactor     .10000E-03    4.1948        .74299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10013E-03    630.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     76.673        54.005        .45863E-04   -1.3954    
  27  norm          2.5466        3.0509        .68164E-04   -1.5389    
  28  Prefactor     29.663        76.193        .73576E-04   -1.4618    
  29  Prefactor     8.7729        13.436        .67667E-03   -1.5115    
  30  Normalizat    1.6133        .47974        .21781E-03   -.74642    
  31  Prefactor     .15605        .48126        .66972E-03   -1.3203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42818e-09
Minuit parameter uncertainties:
  1  1.3809e-05
  2  2.12488e-06
  3  7.45548e-06
  4  5.43291e-06
  5  9.68806e-05
  6  9.73865e-06
  7  4.53262e-06
  8  2.53614e-05
  9  5.37114e-05
  10  2.60006e-05
  11  2.08307e-05
  12  87.6557
  13  182.386
  14  8.42842e-06
  15  1.83738e-05
  16  0.000141403
  17  7.96025
  18  5.27853e-05
  19  16.2151
  20  1.35313e-05
  21  1.0529e-05
  22  15.1085
  23  106.807
  24  1.41437e-05
  25  0.0183581
  26  54.0394
  27  3.05104
  28  76.4446
  29  13.441
  30  0.481117
  31  0.494259
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.048e+01  7.960e+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

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.561e-01  4.943e-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:  1.613e+00  4.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 1.08e-07
Energy Flux (Fixed Index): 4.44e-05 +/- 3.37e-05

TS (Fixed Index): 3.11
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 3.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905162/likelihoodResults_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1379.31038549
delta logL = 3.56644432548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1379.24900028
delta logL = 3.62782952966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.754       1.0000         .10000E-03   10000.    
     2 'alpha     '    .96784       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39714E-01   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.

 FCN=   1379.249     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.753        11.326        .85212E-04    .10202E-02
   2  alpha         .96780        .48218        .69195E-03    .13990E-04
   3  Normalizat    1.7334        .53641        .21074E-03   -.10470E-03
   4  Prefactor     .39621E-01    1.8764        .10695E-01   -.96656E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7535
  alpha      = 0.967804
  Normalizat = 1.73342
  Prefactor  = 0.0396214
 **********
 **   18 **HESSE 
 **********

 FCN=   1379.249     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.753        11.294        .17042E-04   -1.4966    
   2  alpha         .96780        .48216        .27678E-04   -.65970    
   3  Normalizat    1.7334        .46254        .42147E-04   -.71414    
   4  Prefactor     .39621E-01    1.4176        .42778E-03   -1.4448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18799e-09
Minuit parameter uncertainties:
  1  11.2957
  2  0.487084
  3  0.463702
  4  0.487038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905162': 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) = 1379.24900025
delta logL = 3.62782956093

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.375e+01  1.130e+01  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  9.678e-01  4.871e-01  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:  3.962e-02  4.870e-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:  1.733e+00  4.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.53
Ra Dec: 172.755 38.257
Photon Index (Free Index): 0.97 +/- 0.49
Photon Flux (Free Index): 5.39e-08 +/- 3.87e-08
Energy Flux (Free Index): 2.38e-04 +/- 2.31e-04

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/905162/cmap_HighResolution_603504001_603763201_4FGL_J1131.0+3815_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-04', comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='2.38e-04', photon_flux_error='1.08e-07', dlogl='3.63e+00', energy_flux='4.44e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-04 03:01:32.742928', photon_index_error2='0.49', photon_index2='0.97', ts='3.11', fit_tolerance='1e-08', GAL='0.16', photon_index_error='0.00', photon_flux_upper_limit='3.91e-07', energy_flux_error2='2.31e-04', EG='1.61', time_epoch_completed='1630749692.74', return_code='0', job_id='905162', GAL2='0.04', EG2='1.73', return_code2='0', energy_flux_error='3.37e-05', photon_flux_error2='3.87e-08', ts2='10.53', photon_index='2.55' WHERE bin_id='1405' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:01:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 905162: <4FGL_J1131.0+3815_daily_bin1405> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1405> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 02:51:10 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:51:26 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:26 2021
Terminated at Sat Sep  4 03:01:33 2021
Results reported at Sat Sep  4 03:01:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1405 172.755 38.2565 603504001 603763201 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 :                                   481.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            623 sec.

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

