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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1536
RA = 172.755, Dec = 38.2565
tmin = 637459201, tmax = 637718401
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='906840', job_status='RUN', time_executed='2021-09-04 02:57:16.470095', time_epoch_executed='1630749436.47' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906840

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906840/ft1_4FGL_J1131.0+3815_daily_bin1536.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906840/ft2_4FGL_J1131.0+3815_daily_bin1536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906840/ft1_4FGL_J1131.0+3815_daily_bin1536.fits outfile=/scratch/kocevski/906840/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1536.fits ra=172.755 dec=38.2565 rad=12.0 tmin=637459201.0 tmax=637718401.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.47
user 5.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906840/ft1_filtered_4FGL_J1131.0+3815_daily_bin1536.fits" evtable="EVENTS" scfile=/scratch/kocevski/906840/ft2_4FGL_J1131.0+3815_daily_bin1536.fits sctable="SC_DATA" outfile=/scratch/kocevski/906840/ltcube_637459201_637718401_4FGL_J1131.0+3815_daily_bin1536.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/906840/ft2_4FGL_J1131.0+3815_daily_bin1536.fits
.....................!
real 11.70
user 11.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906840/ft1_filtered_4FGL_J1131.0+3815_daily_bin1536.fits evtable="EVENTS" scfile=/scratch/kocevski/906840/ft2_4FGL_J1131.0+3815_daily_bin1536.fits sctable="SC_DATA" expcube=/scratch/kocevski/906840/ltcube_637459201_637718401_4FGL_J1131.0+3815_daily_bin1536.fits outfile=/scratch/kocevski/906840/expmap_637459201_637718401_4FGL_J1131.0+3815_daily_bin1536.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/906840/ltcube_637459201_637718401_4FGL_J1131.0+3815_daily_bin1536.fits
.....................!
real 191.94
user 185.99
sys 5.50

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/906840/ft1_filtered_4FGL_J1131.0+3815_daily_bin1536.fits scfile=/scratch/kocevski/906840/ft2_4FGL_J1131.0+3815_daily_bin1536.fits outfile=/scratch/kocevski/906840/cmap_637459201_637718401_4FGL_J1131.0+3815_daily_bin1536.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/906840/ft1_filtered_4FGL_J1131.0+3815_daily_bin1536.fits scfile=/scratch/kocevski/906840/ft2_4FGL_J1131.0+3815_daily_bin1536.fits outfile=/scratch/kocevski/906840/cmap_HighResolution_637459201_637718401_4FGL_J1131.0+3815_daily_bin1536.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/906840/ft1_filtered_4FGL_J1131.0+3815_daily_bin1536.fits evtable="EVENTS" scfile=/scratch/kocevski/906840/ft2_4FGL_J1131.0+3815_daily_bin1536.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/906840/Model_4FGL_J1131.0+3815_daily_bin1536.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/906840/ft1_filtered_4FGL_J1131.0+3815_daily_bin1536.fits.....................!
real 49.52
user 48.09
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    137.40       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3638       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16124E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.075       1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.253       1.0000         .10000E-03   10000.    
     7 'norm      '    .82916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11564E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31007       1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.708       1.0000         .10000E-03   10000.    
    12 'norm      '    13.660       1.0000         .10000E-03   10000.    
    13 'norm      '    18.432       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0521       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9712       1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.048       1.0000         .10000E-03   10000.    
    21 'norm      '    8.1417       1.0000         .10000E-03   10000.    
    22 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    99.512       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8885       1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.510       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.146       1.0000         .10000E-03   10000.    
    27 'norm      '    7.0211       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81141       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99215       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=   5641.116     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4170 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     137.43        62.661       -.77001E-05   -.32871E-04
   2  Prefactor     9.3629        6.5163        .83831E-06   -.13395E-03
   3  Prefactor     .10000E-03    19.490        .60809E-06** at limit **
   4  Prefactor     .10000E-03    12.981        .82757E-05** at limit **
   5  Prefactor     21.041        32.425        .48534E-04    .21702E-04
   6  Prefactor     68.179        76.472       -.24252E-04    .35274E-05
   7  norm          .83029        .29229        .21829E-07    .44322E-03
   8  Prefactor     .10002E-03    2.0744       -.45021E-06** at limit **
   9  Prefactor     .10000E-03    5.4362        .20464E-06** at limit **
  10  Prefactor     .18540        9.7901        .21325E-07    .81526E-04
  11  Prefactor     83.703        81.739       -.57430E-05    .31099E-05
  12  norm          13.661        14.402       -.16648E-04   -.14508E-04
  13  norm          18.434        34.596       -.68971E-05   -.26735E-05
  14  Prefactor     2.0520        2.0656        .67304E-06    .28573E-03
  15  Prefactor     .10000E-03    15.555       -.47024E-05** at limit **
  16  Prefactor     .10000E-03    15.279        .24781E-05** at limit **
  17  norm          .10000E-03    1.0862       -.25206E-07** at limit **
  18  Prefactor     .10000E-03    5.2542        .12098E-06** at limit **
  19  Prefactor     4.9709        6.9648       -.75270E-05   -.27075E-03
  20  Prefactor     53.954        59.306        .39344E-05    .31858E-04
  21  norm          8.1469        2.2417        .59155E-06   -.15999E-03
  22  norm          .10000E-03    3.8977        .76729E-07** at limit **
  23  Prefactor     99.494        45.405        .54708E-05    .79124E-04
  24  Prefactor     1.8884        3.6589        .48702E-06   -.34289E-03
  25  Prefactor     35.173        68.158       -.33309E-04    .11506E-04
  26  Prefactor     16.143        16.740       -.87407E-05    .65851E-05
  27  norm          7.0210        2.1555       -.12905E-06    .10550E-03
  28  Prefactor     .10000E-03    12.709       -.69324E-05** at limit **
  29  Prefactor     .10000E-03    5.5484       -.22708E-06** at limit **
  30  Normalizat    .81178        .19076        .38930E-05   -.23175E-04
  31  Prefactor     .99172        .21263       -.96513E-06    .21617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 137.43
  Prefactor  = 9.36289
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 21.0413
  Prefactor  = 68.1789
  norm       = 0.830293
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.185396
  Prefactor  = 83.7031
  norm       = 13.6606
  norm       = 18.4342
  Prefactor  = 2.05198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97088
  Prefactor  = 53.9544
  norm       = 8.14688
  norm       = 0.0001
  Prefactor  = 99.4941
  Prefactor  = 1.88842
  Prefactor  = 35.1733
  Prefactor  = 16.1428
  norm       = 7.02099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.811777
  Prefactor  = 0.991722
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.116     FROM HESSE     STATUS=OK           628 CALLS     4798 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     137.43        61.927        .17181E-03   -1.3358    
   2  Prefactor     9.3629        6.5155        .13097E-03   -1.5096    
   3  Prefactor     .10000E-03    19.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.041        32.404        .87247E-04   -1.4790    
   6  Prefactor     68.179        76.523        .48585E-04   -1.4055    
   7  norm          .83029        .30149        .22516E-04   -1.5526    
   8  Prefactor     .10002E-03    21.577        .20900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4404        .17101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .18540        14.334        .79046E-01   -1.5622    
  11  Prefactor     83.703        81.749        .43905E-04   -1.3876    
  12  norm          13.661        14.397        .10837E-03   -1.4969    
  13  norm          18.434        34.613        .93291E-04   -1.4849    
  14  Prefactor     2.0520        2.0601        .10376E-03   -1.5421    
  15  Prefactor     .10000E-03    15.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0960        .76358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2587        .16814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9709        6.9524        .18037E-03   -1.5262    
  20  Prefactor     53.954        59.632        .54559E-04   -1.4238    
  21  norm          8.1469        2.2616        .47780E-04   -1.5137    
  22  norm          .10000E-03    3.9008        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     99.494        45.430        .40300E-04   -1.3710    
  24  Prefactor     1.8884        3.6211        .19034E-03   -1.5433    
  25  Prefactor     35.173        68.399        .67252E-04   -1.4521    
  26  Prefactor     16.143        16.712        .99676E-04   -1.4904    
  27  norm          7.0210        2.1553        .58566E-04   -1.5178    
  28  Prefactor     .10000E-03    12.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.5965        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81178        .22546        .28187E-03   -.99633    
  31  Prefactor     .99172        .25154        .29726E-03   -.93006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46008e-09
Minuit parameter uncertainties:
  1  61.9566
  2  6.51598
  3  0.000622778
  4  5.93382e-06
  5  32.4315
  6  76.634
  7  0.30149
  8  0.00140754
  9  3.45647e-05
  10  3.26027
  11  81.859
  12  14.4002
  13  34.6502
  14  2.06017
  15  2.6954e-05
  16  6.69146e-05
  17  2.25839e-06
  18  1.13307e-05
  19  6.95349
  20  59.6985
  21  2.26158
  22  2.03263e-05
  23  45.4455
  24  3.62152
  25  68.5518
  26  16.7171
  27  2.1553
  28  2.32176e-05
  29  1.34515e-05
  30  0.225715
  31  0.251841
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  2.258e-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.917e-01  2.518e-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.118e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/906840/likelihoodResults_637459201_637718401_4FGL_J1131.0+3815_daily_bin1536.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) = 5641.11989205
delta logL = -0.00427520963058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5641.11561668
delta logL = 1.59368937602e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5358       1.0000          .0000       5.0000    
     3 'Normalizat'    .81180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99175       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=   5641.116     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      242 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.511        .76902E-02** at limit **
   2  alpha         1.9955        3.5031        .16463        .40951E-07
   3  Normalizat    .81178        .43177E-01    .28187E-03    .28956E-03
   4  Prefactor     .99172        .50166E-01    .29726E-03    .28539E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.99551
  Normalizat = 0.811782
  Prefactor  = 0.991717
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.116     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2794        .82784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9955        3.2818        .65851E-02   -.20319    
   3  Normalizat    .81178        .21438        .11275E-04   -.99633    
   4  Prefactor     .99172        .24901        .59452E-04   -.93006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47266e-10
Minuit parameter uncertainties:
  1  4.73245e-06
  2  155.736
  3  0.214606
  4  0.249297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906840': 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) = 5641.11561033
delta logL = 6.51318896416e-06

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  4.732e-06  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  1.996e+00  1.557e+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.917e-01  2.493e-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.118e-01  2.146e-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/906840/cmap_HighResolution_637459201_637718401_4FGL_J1131.0+3815_daily_bin1536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-05', job_status='DONE', photon_flux_upper_limit='6.60e-08', time_completed='2021-09-04 03:12:17.360604', job_id='906840', GAL2='0.99', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630750337.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1536' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:12:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 906840: <4FGL_J1131.0+3815_daily_bin1536> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1536 172.755 38.2565 637459201 637718401 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 :                                   894.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

