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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1456
RA = 172.755, Dec = 38.2565
tmin = 616723201, tmax = 616982401
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='906701', job_status='RUN', time_executed='2021-09-04 02:56:48.993563', time_epoch_executed='1630749408.99' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906701

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906701/ft1_4FGL_J1131.0+3815_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906701/ft2_4FGL_J1131.0+3815_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906701/ft1_4FGL_J1131.0+3815_daily_bin1456.fits outfile=/scratch/kocevski/906701/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1456.fits ra=172.755 dec=38.2565 rad=12.0 tmin=616723201.0 tmax=616982401.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.63
user 2.87
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906701/ft1_filtered_4FGL_J1131.0+3815_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/906701/ft2_4FGL_J1131.0+3815_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/906701/ltcube_616723201_616982401_4FGL_J1131.0+3815_daily_bin1456.fits outfile=/scratch/kocevski/906701/expmap_616723201_616982401_4FGL_J1131.0+3815_daily_bin1456.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/906701/ltcube_616723201_616982401_4FGL_J1131.0+3815_daily_bin1456.fits
.....................!
real 192.66
user 185.33
sys 4.53

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/906701/ft1_filtered_4FGL_J1131.0+3815_daily_bin1456.fits scfile=/scratch/kocevski/906701/ft2_4FGL_J1131.0+3815_daily_bin1456.fits outfile=/scratch/kocevski/906701/cmap_616723201_616982401_4FGL_J1131.0+3815_daily_bin1456.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906701/ft1_filtered_4FGL_J1131.0+3815_daily_bin1456.fits scfile=/scratch/kocevski/906701/ft2_4FGL_J1131.0+3815_daily_bin1456.fits outfile=/scratch/kocevski/906701/cmap_HighResolution_616723201_616982401_4FGL_J1131.0+3815_daily_bin1456.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12417E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4824       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.096       1.0000         .10000E-03   10000.    
    13 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.242       1.0000         .10000E-03   10000.    
    17 'norm      '    .76890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    106.00       1.0000         .10000E-03   10000.    
    21 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.4382       1.0000         .10000E-03   10000.    
    23 'Prefactor '    65.013       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.510       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.222       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.2509       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .84692       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94511       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=   5163.424     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4186 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.073        .11160E-05** at limit **
   2  Prefactor     .10000E-03    6.9439       -.26610E-07** at limit **
   3  Prefactor     .10000E-03    4.2771       -.90028E-09** at limit **
   4  Prefactor     .10000E-03    28.497       -.28604E-05** at limit **
   5  Prefactor     .10000E-03    11.716        .20443E-07** at limit **
   6  Prefactor     .10000E-03    75.467        .14775E-05** at limit **
   7  norm          2.4823        .52936        .40409E-08   -.53797E-03
   8  Prefactor     .10000E-03    2.3020        .17546E-07** at limit **
   9  Prefactor     23.748        20.093       -.57587E-07   -.65593E-04
  10  Prefactor     .10000E-03    32.895        .75023E-06** at limit **
  11  Prefactor     .10000E-03    254.61        .16818E-05** at limit **
  12  norm          17.093        18.308        .13688E-06   -.28988E-04
  13  norm          .10000E-03    44.353       -.38623E-05** at limit **
  14  Prefactor     .10000E-03    2.0016       -.34968E-06** at limit **
  15  Prefactor     .10000E-03    38.270        .12346E-05** at limit **
  16  Prefactor     14.249        16.345        .36026E-06   -.90589E-05
  17  norm          .76959        2.7443        .12913E-05   -.19551E-03
  18  Prefactor     .10000E-03    4.2407        .35082E-07** at limit **
  19  Prefactor     2.1914        4.1722        .15914E-06   -.10243E-03
  20  Prefactor     106.06        46.921        .22674E-06   -.20728E-03
  21  norm          .10000E-03    .53021        .84788E-06** at limit **
  22  norm          5.4383        5.5888        .19492E-07   -.21063E-04
  23  Prefactor     64.992        31.431        .39330E-06   -.30274E-04
  24  Prefactor     .10000E-03    2.7937       -.53406E-07** at limit **
  25  Prefactor     .10000E-03    36.480        .23530E-05** at limit **
  26  Prefactor     15.508        15.420        .65277E-06   -.15769E-06
  27  norm          .10000E-03    .33007        .11901E-07** at limit **
  28  Prefactor     12.226        26.259        .53585E-06   -.87246E-05
  29  Prefactor     5.2505        5.7957        .21277E-06   -.24170E-04
  30  Normalizat    .84690        .18321       -.22845E-05   -.35382E-03
  31  Prefactor     .94530        .20892        .60699E-06   -.34108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.48233
  Prefactor  = 0.0001
  Prefactor  = 23.7476
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 17.0932
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.249
  norm       = 0.76959
  Prefactor  = 0.0001
  Prefactor  = 2.19136
  Prefactor  = 106.061
  norm       = 0.0001
  norm       = 5.43826
  Prefactor  = 64.9915
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.5076
  norm       = 0.0001
  Prefactor  = 12.2264
  Prefactor  = 5.25045
  Normalizat = 0.846898
  Prefactor  = 0.945297
 **********
 **   18 **HESSE 
 **********

 FCN=   5163.424     FROM HESSE     STATUS=OK           620 CALLS     4806 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2914        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    75.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4823        .53067        .22770E-04   -1.5393    
   8  Prefactor     .10000E-03    2.3573        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.748        20.127        .82202E-04   -1.4733    
  10  Prefactor     .10000E-03    33.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    255.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.093        18.288        .96865E-04   -1.4881    
  13  norm          .10000E-03    45.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0603        .19788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.249        16.349        .10613E-03   -1.4953    
  17  norm          .76959        2.7744        .20524E-03   -1.5533    
  18  Prefactor     .10000E-03    4.2481        .14448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1914        4.1293        .19207E-03   -1.5412    
  20  Prefactor     106.06        47.459        .19530E-03   -1.3645    
  21  norm          .10000E-03    .58874        .91203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.4383        5.5930        .16800E-03   -1.5242    
  23  Prefactor     64.992        31.451        .49772E-04   -1.4094    
  24  Prefactor     .10000E-03    4.8510        .22462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    36.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.508        14.938        .50849E-03   -1.4920    
  27  norm          .10000E-03    .50081        .80350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.226        26.223        .11459E-03   -1.5008    
  29  Prefactor     5.2505        5.7919        .17523E-03   -1.5250    
  30  Normalizat    .84690        .20990        .24174E-03   -.98352    
  31  Prefactor     .94530        .24005        .27491E-03   -.94576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16071e-10
Minuit parameter uncertainties:
  1  0.000171082
  2  1.20634e-05
  3  4.54576e-06
  4  0.000418363
  5  5.80718e-06
  6  0.000404651
  7  0.530676
  8  5.26352e-06
  9  20.1332
  10  0.000125123
  11  0.00100753
  12  18.2939
  13  0.000716956
  14  2.05173e-05
  15  0.000172575
  16  16.3545
  17  2.77487
  18  2.85751e-06
  19  4.12979
  20  47.4759
  21  1.9827e-05
  22  5.59358
  23  31.4587
  24  1.9265e-05
  25  0.000342262
  26  14.9415
  27  2.10133e-06
  28  26.2482
  29  5.7925
  30  0.210103
  31  0.240324
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  7.696e-01  2.775e+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:  9.453e-01  2.403e-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:  8.469e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/906701/likelihoodResults_616723201_616982401_4FGL_J1131.0+3815_daily_bin1456.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) = 5162.60729197
delta logL = 0.816942046232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5162.42066719
delta logL = 1.00356682296

Fit tolerance = 1e-08

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

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

 FCN=   5162.421     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      263 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11184        2.3566        .40196E-02    .19703E-02
   2  alpha         4.7280        2.6103        .50000       -.10889E-04
   3  Normalizat    .77716        .71453E-01    .43313E-01    .12806E-04
   4  Prefactor     .99665        .79721E-01    .46220E-01    .45672E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.111844
  alpha      = 4.728
  Normalizat = 0.777158
  Prefactor  = 0.996653
 **********
 **   18 **HESSE 
 **********

 FCN=   5162.421     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      298 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11184        3.3433        .18202E-03   -1.5641    
   2  alpha         4.7280        2.9671        .33374E-01    1.1000    
   3  Normalizat    .77716        .15730        .25028E-03   -1.0092    
   4  Prefactor     .99665        .18815        .26813E-03   -.92841    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04376e-07
Minuit parameter uncertainties:
  1  1.22252
  2  5.42691
  3  0.157388
  4  0.188278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906701': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5162.4206606
delta logL = 1.00357341135

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.118e-01  1.223e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  4.728e+00  5.427e+00  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:  9.967e-01  1.883e-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:  7.772e-01  1.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 172.755 38.257
Photon Index (Free Index): 4.73 +/- 5.43
Photon Flux (Free Index): 7.54e-08 +/- 5.88e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.30e-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/906701/cmap_HighResolution_616723201_616982401_4FGL_J1131.0+3815_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='1.00e+00', photon_flux2='7.54e-08', job_status='DONE', time_completed='2021-09-04 03:11:47.640500', photon_index_error2='5.43', photon_index2='4.73', ts='0.09', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.58e-08', energy_flux_error2='1.30e-05', EG='0.85', time_epoch_completed='1630750307.64', return_code='0', job_id='906701', GAL2='1.00', EG2='0.78', return_code2='102', photon_flux_error2='5.88e-08', ts2='2.19', photon_index='2.55' WHERE bin_id='1456' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:11:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 906701: <4FGL_J1131.0+3815_daily_bin1456> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1456> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 02:56:26 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:56:27 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:56:27 2021
Terminated at Sat Sep  4 03:11:49 2021
Results reported at Sat Sep  4 03:11:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1456 172.755 38.2565 616723201 616982401 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 :                                   888.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

