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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin740
RA = 172.755, Dec = 38.2565
tmin = 431136001, tmax = 431395201
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='898994', job_status='RUN', time_executed='2021-09-04 02:39:19.922028', time_epoch_executed='1630748359.92' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898994/ft1_4FGL_J1131.0+3815_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898994/ft2_4FGL_J1131.0+3815_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898994/ft1_4FGL_J1131.0+3815_daily_bin740.fits outfile=/scratch/kocevski/898994/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin740.fits ra=172.755 dec=38.2565 rad=12.0 tmin=431136001.0 tmax=431395201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.87
user 5.57
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898994/ft1_filtered_4FGL_J1131.0+3815_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/898994/ft2_4FGL_J1131.0+3815_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/898994/ltcube_431136001_431395201_4FGL_J1131.0+3815_daily_bin740.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/898994/ft2_4FGL_J1131.0+3815_daily_bin740.fits
.....................!
real 17.94
user 17.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898994/ft1_filtered_4FGL_J1131.0+3815_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/898994/ft2_4FGL_J1131.0+3815_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/898994/ltcube_431136001_431395201_4FGL_J1131.0+3815_daily_bin740.fits outfile=/scratch/kocevski/898994/expmap_431136001_431395201_4FGL_J1131.0+3815_daily_bin740.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/898994/ltcube_431136001_431395201_4FGL_J1131.0+3815_daily_bin740.fits
.....................!
real 191.56
user 186.69
sys 4.47

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/898994/ft1_filtered_4FGL_J1131.0+3815_daily_bin740.fits scfile=/scratch/kocevski/898994/ft2_4FGL_J1131.0+3815_daily_bin740.fits outfile=/scratch/kocevski/898994/cmap_431136001_431395201_4FGL_J1131.0+3815_daily_bin740.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898994/ft1_filtered_4FGL_J1131.0+3815_daily_bin740.fits scfile=/scratch/kocevski/898994/ft2_4FGL_J1131.0+3815_daily_bin740.fits outfile=/scratch/kocevski/898994/cmap_HighResolution_431136001_431395201_4FGL_J1131.0+3815_daily_bin740.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.192       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    126.06       1.0000         .10000E-03   10000.    
     7 'norm      '    .84290       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11348E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    32.511       1.0000         .10000E-03   10000.    
    13 'norm      '    32.312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.377       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7852       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.209       1.0000         .10000E-03   10000.    
    21 'norm      '    8.7940       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .25939       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.3530       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2119       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72806       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=   4754.238     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4114 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.939       -.10359E-05** at limit **
   2  Prefactor     .10000E-03    3.3495        .35465E-08** at limit **
   3  Prefactor     10.191        6.9409       -.15043E-06    .20454E-04
   4  Prefactor     .10000E-03    32.642       -.85347E-05** at limit **
   5  Prefactor     .10000E-03    24.960        .73731E-06** at limit **
   6  Prefactor     126.04        109.64       -.13851E-04    .46661E-06
   7  norm          .84284        .31867       -.10327E-07   -.91809E-03
   8  Prefactor     .10000E-03    .91787       -.59681E-08** at limit **
   9  Prefactor     .10000E-03    50.269        .13670E-04** at limit **
  10  Prefactor     .10000E-03    12.569       -.52573E-06** at limit **
  11  Prefactor     .10000E-03    51.872        .13583E-04** at limit **
  12  norm          32.505        18.210       -.41173E-06   -.19201E-03
  13  norm          32.312        38.600       -.26137E-06    .31734E-06
  14  Prefactor     .10000E-03    1.2611       -.13286E-07** at limit **
  15  Prefactor     .10000E-03    26.980       -.59813E-05** at limit **
  16  Prefactor     16.378        15.940       -.24521E-06    .20746E-04
  17  norm          3.7856        3.8838        .42474E-06   -.19434E-03
  18  Prefactor     .10000E-03    8.0964       -.12728E-06** at limit **
  19  Prefactor     6.8103        5.2139        .10396E-05    .44416E-04
  20  Prefactor     31.197        83.452       -.19518E-04    .11587E-04
  21  norm          8.7938        2.4683        .44747E-06    .25042E-03
  22  norm          .10000E-03    6.9313       -.29182E-07** at limit **
  23  Prefactor     .10000E-03    37.577        .45530E-06** at limit **
  24  Prefactor     .10000E-03    2.3472       -.71288E-08** at limit **
  25  Prefactor     .10000E-03    65.819       -.22038E-04** at limit **
  26  Prefactor     .10000E-03    8.9872        .24069E-06** at limit **
  27  norm          .25578        1.3388       -.89247E-06   -.53466E-03
  28  Prefactor     .10000E-03    23.848        .65267E-05** at limit **
  29  Prefactor     7.3525        10.188       -.43305E-06   -.62519E-04
  30  Normalizat    1.2120        .21109        .21899E-05   -.25126E-04
  31  Prefactor     .72789        .23589       -.12841E-06    .94060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.043
  norm       = 0.842843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.5053
  norm       = 32.312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3778
  norm       = 3.78561
  Prefactor  = 0.0001
  Prefactor  = 6.81031
  Prefactor  = 31.1966
  norm       = 8.79382
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.255779
  Prefactor  = 0.0001
  Prefactor  = 7.35254
  Normalizat = 1.21195
  Prefactor  = 0.727895
 **********
 **   18 **HESSE 
 **********

 FCN=   4754.238     FROM HESSE     STATUS=OK           612 CALLS     4726 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3869        .12321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.191        6.9369        .12551E-03   -1.5069    
   4  Prefactor     .10000E-03    32.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     126.04        109.94        .17927E-03   -1.3458    
   7  norm          .84284        .31866        .23072E-04   -1.5524    
   8  Prefactor     .10000E-03    .91953        .64510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          32.505        18.193        .70275E-04   -1.4567    
  13  norm          32.312        38.600        .70491E-04   -1.4570    
  14  Prefactor     .10000E-03    1.2742        .75465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.378        15.947        .98969E-04   -1.4898    
  17  norm          3.7856        3.8459        .12356E-03   -1.5319    
  18  Prefactor     .10000E-03    8.1144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.8103        5.2145        .13296E-03   -1.5186    
  20  Prefactor     31.197        83.503        .71723E-04   -1.4590    
  21  norm          8.7938        2.4763        .48449E-04   -1.5115    
  22  norm          .10000E-03    6.9467        .17729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3544        .10316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    65.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.9917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .25578        2.5228        .14972E-02   -1.5607    
  28  Prefactor     .10000E-03    23.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.3525        10.194        .14791E-03   -1.5166    
  30  Normalizat    1.2120        .25042        .23653E-03   -.86234    
  31  Prefactor     .72789        .27748        .33944E-03   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93822e-10
Minuit parameter uncertainties:
  1  5.81033e-06
  2  2.08598e-06
  3  6.93745
  4  6.0761e-06
  5  3.62814e-05
  6  110.117
  7  0.31866
  8  1.14678e-06
  9  0.000293009
  10  7.8993e-06
  11  8.53711e-06
  12  18.1961
  13  38.6296
  14  2.55071e-06
  15  9.28431e-06
  16  15.9515
  17  3.84613
  18  1.13477e-05
  19  5.21481
  20  83.8182
  21  2.47636
  22  3.22912e-06
  23  6.08607e-05
  24  1.80247e-06
  25  1.37011e-06
  26  2.95046e-06
  27  1.60635
  28  1.88586e-05
  29  10.1962
  30  0.250671
  31  0.27801
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  3.786e+00  3.846e+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:  7.279e-01  2.780e-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.212e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 5.20e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.63e-05

TS (Fixed Index): 1.45
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898994/likelihoodResults_431136001_431395201_4FGL_J1131.0+3815_daily_bin740.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) = 4754.04394364
delta logL = 0.193699170281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4754.03884092
delta logL = 0.198801883632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3350       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1074       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74883       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=   4754.039     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      276 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3349        4.0913        .84494E-04   -.39154E-04
   2  alpha         3.1075        1.0767        .11821E-01    .16678E-03
   3  Normalizat    1.1847        .24659        .23858E-03   -.83791E-04
   4  Prefactor     .74877        .27854        .33497E-03   -.86783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33488
  alpha      = 3.10752
  Normalizat = 1.18474
  Prefactor  = 0.748773
 **********
 **   18 **HESSE 
 **********

 FCN=   4754.039     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3349        3.5290        .33798E-05   -1.5402    
   2  alpha         3.1075        .93642        .23642E-02    .24546    
   3  Normalizat    1.1847        .24601        .47716E-04   -.87076    
   4  Prefactor     .74877        .27777        .13399E-04   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78369e-11
Minuit parameter uncertainties:
  1  3.52931
  2  0.961412
  3  0.246248
  4  0.278289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898994': 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) = 4754.03884089
delta logL = 0.198801918825

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  2.335e+00  3.529e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  3.108e+00  9.614e-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:  7.488e-01  2.783e-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.185e+00  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 172.755 38.257
Photon Index (Free Index): 3.11 +/- 0.96
Photon Flux (Free Index): 7.73e-08 +/- 7.18e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/898994/cmap_HighResolution_431136001_431395201_4FGL_J1131.0+3815_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-05', comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.69e-05', photon_flux_error='5.20e-08', dlogl='1.99e-01', energy_flux='1.60e-05', photon_flux2='7.73e-08', job_status='DONE', time_completed='2021-09-04 02:53:31.334499', photon_index_error2='0.96', photon_index2='3.11', ts='1.45', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.44e-05', EG='1.21', time_epoch_completed='1630749211.33', return_code='0', job_id='898994', GAL2='0.75', EG2='1.18', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.18e-08', ts2='1.88', photon_index='2.55' WHERE bin_id='740' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:53:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 898994: <4FGL_J1131.0+3815_daily_bin740> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin740> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 02:36:54 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:39: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:39:06 2021
Terminated at Sat Sep  4 02:53:32 2021
Results reported at Sat Sep  4 02:53:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin740 172.755 38.2565 431136001 431395201 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 :                                   846.52 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            998 sec.

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

