/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 = 7446
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1131.0+3815_daily_bin3
RA = 172.755, Dec = 38.2565
tmin = 240105601, tmax = 240364801
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='894319', job_status='RUN', time_executed='2021-09-04 02:22:40.022355', time_epoch_executed='1630747360.02' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894319/ft1_4FGL_J1131.0+3815_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894319/ft2_4FGL_J1131.0+3815_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894319/ft1_4FGL_J1131.0+3815_daily_bin3.fits outfile=/scratch/kocevski/894319/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin3.fits ra=172.755 dec=38.2565 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.43
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894319/ft2_4FGL_J1131.0+3815_daily_bin3.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/894319/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin3.fits evtable="EVENTS" outfile="/scratch/kocevski/894319/ft1_filtered_4FGL_J1131.0+3815_daily_bin3.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.49
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894319/ft1_filtered_4FGL_J1131.0+3815_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/894319/ft2_4FGL_J1131.0+3815_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/894319/ltcube_240105601_240364801_4FGL_J1131.0+3815_daily_bin3.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/894319/ft2_4FGL_J1131.0+3815_daily_bin3.fits
.....................!
real 13.78
user 13.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894319/ft1_filtered_4FGL_J1131.0+3815_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/894319/ft2_4FGL_J1131.0+3815_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/894319/ltcube_240105601_240364801_4FGL_J1131.0+3815_daily_bin3.fits outfile=/scratch/kocevski/894319/expmap_240105601_240364801_4FGL_J1131.0+3815_daily_bin3.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/894319/ltcube_240105601_240364801_4FGL_J1131.0+3815_daily_bin3.fits
.....................!
real 190.73
user 185.00
sys 5.26

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/894319/ft1_filtered_4FGL_J1131.0+3815_daily_bin3.fits scfile=/scratch/kocevski/894319/ft2_4FGL_J1131.0+3815_daily_bin3.fits outfile=/scratch/kocevski/894319/cmap_240105601_240364801_4FGL_J1131.0+3815_daily_bin3.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894319/ft1_filtered_4FGL_J1131.0+3815_daily_bin3.fits scfile=/scratch/kocevski/894319/ft2_4FGL_J1131.0+3815_daily_bin3.fits outfile=/scratch/kocevski/894319/cmap_HighResolution_240105601_240364801_4FGL_J1131.0+3815_daily_bin3.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.323       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1653       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23808E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3542       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6603       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .66093E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    80.448       1.0000         .10000E-03   10000.    
    13 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3524       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.767       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5589       1.0000         .10000E-03   10000.    
    22 'norm      '    .15283E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3222       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.306       1.0000         .10000E-03   10000.    
    27 'norm      '    6.1117       1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.238       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85548       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95264       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=   4303.035     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4154 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.228        31.873        .40640E-05   -.11370E-03
   2  Prefactor     6.1626        6.8972       -.55462E-07   -.75628E-04
   3  Prefactor     .10005E-03    7.5696       -.12341E-05** at limit **
   4  Prefactor     .10000E-03    31.187       -.16945E-05** at limit **
   5  Prefactor     13.809        26.131        .11941E-06   -.26836E-05
   6  Prefactor     .10000E-03    34.897       -.69437E-06** at limit **
   7  norm          1.3542        .43079        .72279E-08    .52470E-04
   8  Prefactor     .10000E-03    2.0930       -.23737E-07** at limit **
   9  Prefactor     .10000E-03    13.556        .36595E-07** at limit **
  10  Prefactor     7.6574        15.490       -.21820E-07    .54139E-05
  11  Prefactor     .10002E-03    823.34       -.22979E-04** at limit **
  12  norm          80.463        24.252       -.69250E-07   -.12560E-04
  13  norm          .10000E-03    24.239        .66302E-06** at limit **
  14  Prefactor     .10000E-03    .84312       -.12550E-07** at limit **
  15  Prefactor     .10000E-03    24.736        .43989E-06** at limit **
  16  Prefactor     .10000E-03    11.167       -.24905E-06** at limit **
  17  norm          .10000E-03    1.4601       -.41057E-06** at limit **
  18  Prefactor     2.3562        11.561       -.29777E-05   -.14676E-03
  19  Prefactor     .10003E-03    4.6357       -.93735E-06** at limit **
  20  Prefactor     52.790        48.613        .72886E-06    .93889E-04
  21  norm          1.5603        1.3922       -.78958E-07    .26313E-03
  22  norm          .10019E-03    122.87       -.12757E-04** at limit **
  23  Prefactor     .10000E-03    37.278        .44271E-06** at limit **
  24  Prefactor     2.3227        5.2488       -.17345E-06   -.15611E-04
  25  Prefactor     .10000E-03    107.06        .83844E-05** at limit **
  26  Prefactor     49.326        38.215        .38307E-06    .48865E-04
  27  norm          6.1119        2.0513       -.37700E-07   -.50358E-04
  28  Prefactor     30.255        38.361        .34904E-06    .16336E-04
  29  Prefactor     .10000E-03    5.4886        .41068E-07** at limit **
  30  Normalizat    .85540        .21446        .69836E-06    .87925E-04
  31  Prefactor     .95255        .24397        .54988E-06    .74883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2282
  Prefactor  = 6.16264
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 13.8092
  Prefactor  = 0.0001
  norm       = 1.35422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65742
  Prefactor  = 0.000100019
  norm       = 80.4635
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.35621
  Prefactor  = 0.000100025
  Prefactor  = 52.7899
  norm       = 1.56035
  norm       = 0.000100195
  Prefactor  = 0.0001
  Prefactor  = 2.32273
  Prefactor  = 0.000100004
  Prefactor  = 49.3264
  norm       = 6.11193
  Prefactor  = 30.2552
  Prefactor  = 0.0001
  Normalizat = 0.855395
  Prefactor  = 0.952553
 **********
 **   18 **HESSE 
 **********

 FCN=   4303.035     FROM HESSE     STATUS=OK           622 CALLS     4776 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.228        32.104        .88847E-04   -1.4808    
   2  Prefactor     6.1626        6.9184        .16168E-03   -1.5211    
   3  Prefactor     .10005E-03    17.777        .30385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.809        26.126        .10777E-03   -1.4965    
   6  Prefactor     .10000E-03    34.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3542        .43369        .22484E-04   -1.5475    
   8  Prefactor     .10000E-03    2.1407        .92632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6574        15.582        .14489E-03   -1.5154    
  11  Prefactor     .10002E-03    835.09        .21012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          80.463        24.259        .44778E-04   -1.3912    
  13  norm          .10000E-03    24.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .84772        .58792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4266        .15227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3562        11.792        .13362E-02   -1.5401    
  19  Prefactor     .10003E-03    16.344        .22395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     52.790        48.589        .55214E-04   -1.4254    
  21  norm          1.5603        1.3558        .64462E-04   -1.5458    
  22  norm          .10019E-03    141.82        .44419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3227        5.1934        .20320E-03   -1.5403    
  25  Prefactor     .10000E-03    107.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.326        37.995        .57109E-04   -1.4302    
  27  norm          6.1119        2.0516        .52018E-04   -1.5213    
  28  Prefactor     30.255        38.449        .72862E-04   -1.4607    
  29  Prefactor     .10000E-03    5.5241        .15005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .85540        .24918        .25247E-03   -.98046    
  31  Prefactor     .95255        .28329        .28512E-03   -.94328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04205e-09
Minuit parameter uncertainties:
  1  32.1315
  2  6.91932
  3  0.00196797
  4  0.000160153
  5  26.1473
  6  7.18359e-05
  7  0.433693
  8  3.88642e-06
  9  1.40428e-05
  10  15.5902
  11  0.0080724
  12  24.2621
  13  5.73719e-05
  14  1.49595e-06
  15  2.92402e-05
  16  3.30301e-05
  17  3.49807e-06
  18  10.5453
  19  0.00128134
  20  48.6255
  21  1.35586
  22  0.0105415
  23  0.000101981
  24  5.19444
  25  0.00137042
  26  38.0137
  27  2.05164
  28  38.4801
  29  9.31218e-06
  30  0.249518
  31  0.283735
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  3.498e-06  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.526e-01  2.837e-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.554e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/894319/likelihoodResults_240105601_240364801_4FGL_J1131.0+3815_daily_bin3.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) = 4303.03706743
delta logL = -0.00196479439728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4303.03510322
delta logL = -5.8265595726e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5357       1.0000          .0000       5.0000    
     3 'Normalizat'    .85546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4303.035     FROM MIGRAD    STATUS=FAILED        91 CALLS      247 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10115E-03    97.699        .15396E-02** at limit **
   2  alpha         2.4275        3.4179        .50000        .11584E-04
   3  Normalizat    .85540        .31704E-01    .25247E-03    .20088E-03
   4  Prefactor     .95255        .37806E-01    .28511E-03    .15567E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4303.035     FROM SIMPLEX   STATUS=UNCHANGED    137 CALLS      384 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10115E-03    97.699        .29418E-03** at limit **
   2  alpha         2.4275        3.4179        .47614E-03    .11584E-04
   3  Normalizat    .85540        .31704E-01    .70604E-05    .20088E-03
   4  Prefactor     .95255        .37806E-01    .48337E-05    .15567E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4303.035     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      426 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    427.56        .30792E-03** at limit **
   2  alpha         2.3226        3.0127        .50000        .65802E-07
   3  Normalizat    .85539        .87074E-01    .10099E-04   -.63311E-03
   4  Prefactor     .95255        .10382        .11405E-04   -.57219E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.32257
  Normalizat = 0.855394
  Prefactor  = 0.952551
 **********
 **   18 **HESSE 
 **********

 FCN=   4303.035     FROM HESSE     STATUS=OK            29 CALLS      455 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0555        .61583E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3226        3.3441        .50000       -.71032E-01
   3  Normalizat    .85539        .23477        .20198E-05   -.98046    
   4  Prefactor     .95255        .27983        .22809E-05   -.94328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86944e-10
Minuit parameter uncertainties:
  1  1.32293e-05
  2  130.903
  3  0.235048
  4  0.280257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894319': 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) = 4303.03510147
delta logL = 1.16144747153e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.526e-01  2.803e-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.554e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-04 02:35:49.150580', job_id='894319', GAL2='0.95', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630748149.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='3' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:35:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 894319: <4FGL_J1131.0+3815_daily_bin3> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin3> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 02:21:59 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:22:24 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:22:24 2021
Terminated at Sat Sep  4 02:35:50 2021
Results reported at Sat Sep  4 02:35:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin3 172.755 38.2565 240105601 240364801 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 :                                   787.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             336.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            831 sec.

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

