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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1490
RA = 172.755, Dec = 38.2565
tmin = 625536001, tmax = 625795201
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='906760', job_status='RUN', time_executed='2021-09-04 02:58:49.273052', time_epoch_executed='1630749529.27' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906760/ft1_4FGL_J1131.0+3815_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906760/ft2_4FGL_J1131.0+3815_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906760/ft1_4FGL_J1131.0+3815_daily_bin1490.fits outfile=/scratch/kocevski/906760/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1490.fits ra=172.755 dec=38.2565 rad=12.0 tmin=625536001.0 tmax=625795201.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.65
user 3.42
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906760/ft2_4FGL_J1131.0+3815_daily_bin1490.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/906760/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1490.fits evtable="EVENTS" outfile="/scratch/kocevski/906760/ft1_filtered_4FGL_J1131.0+3815_daily_bin1490.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.51
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906760/ft1_filtered_4FGL_J1131.0+3815_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/906760/ft2_4FGL_J1131.0+3815_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/906760/ltcube_625536001_625795201_4FGL_J1131.0+3815_daily_bin1490.fits outfile=/scratch/kocevski/906760/expmap_625536001_625795201_4FGL_J1131.0+3815_daily_bin1490.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/906760/ltcube_625536001_625795201_4FGL_J1131.0+3815_daily_bin1490.fits
.....................!
real 192.98
user 187.90
sys 4.58

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/906760/ft1_filtered_4FGL_J1131.0+3815_daily_bin1490.fits scfile=/scratch/kocevski/906760/ft2_4FGL_J1131.0+3815_daily_bin1490.fits outfile=/scratch/kocevski/906760/cmap_625536001_625795201_4FGL_J1131.0+3815_daily_bin1490.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 1.41
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906760/ft1_filtered_4FGL_J1131.0+3815_daily_bin1490.fits scfile=/scratch/kocevski/906760/ft2_4FGL_J1131.0+3815_daily_bin1490.fits outfile=/scratch/kocevski/906760/cmap_HighResolution_625536001_625795201_4FGL_J1131.0+3815_daily_bin1490.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.65
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    106.76       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9235       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.782       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35543E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.3683       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.505       1.0000         .10000E-03   10000.    
    17 'norm      '    7.9364       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.949       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.792       1.0000         .10000E-03   10000.    
    21 'norm      '    4.4519       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.0158       1.0000         .10000E-03   10000.    
    28 'Prefactor '    41.087       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95847       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72657       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=   5489.052     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     4167 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.341       -.15933E-07** at limit **
   2  Prefactor     .10000E-03    4.8030        .11329E-06** at limit **
   3  Prefactor     5.0808        4.5729        .14858E-06   -.12919E-04
   4  Prefactor     .10000E-03    17.960        .58991E-07** at limit **
   5  Prefactor     .10000E-03    6.3768        .20822E-07** at limit **
   6  Prefactor     106.76        88.895        .33414E-06   -.41255E-05
   7  norm          1.9235        .40250        .16411E-07   -.20407E-03
   8  Prefactor     .10000E-03    .90616        .48893E-07** at limit **
   9  Prefactor     12.783        12.617        .32653E-06   -.17572E-04
  10  Prefactor     .10000E-03    5.4068        .29931E-07** at limit **
  11  Prefactor     .10000E-03    1662.8       -.51867E-04** at limit **
  12  norm          .10000E-03    9.9275        .15819E-06** at limit **
  13  norm          9.3429        47.002       -.17437E-05   -.63522E-05
  14  Prefactor     .10000E-03    1.5703        .16270E-06** at limit **
  15  Prefactor     .10000E-03    33.224        .61370E-07** at limit **
  16  Prefactor     13.506        20.203        .37146E-06   -.12430E-04
  17  norm          7.9372        3.3502        .93303E-07   -.16095E-03
  18  Prefactor     11.950        16.618        .42119E-06   -.13043E-04
  19  Prefactor     9.4004        5.2704        .15501E-06   -.59239E-04
  20  Prefactor     48.794        45.435        .38544E-06   -.75320E-05
  21  norm          4.4517        1.4869        .54339E-07   -.78363E-04
  22  norm          .10000E-03    4.1993        .35648E-07** at limit **
  23  Prefactor     .10000E-03    33.973        .20721E-06** at limit **
  24  Prefactor     .10000E-03    5.3760        .15206E-06** at limit **
  25  Prefactor     .10000E-03    20.050        .45578E-07** at limit **
  26  Prefactor     .10000E-03    38.800        .32383E-06** at limit **
  27  norm          3.0158        1.4662        .81576E-07   -.48474E-04
  28  Prefactor     41.086        34.686        .75915E-06   -.10190E-04
  29  Prefactor     .10000E-03    2.7311        .34410E-07** at limit **
  30  Normalizat    .95838        .18185       -.17926E-05   -.41902E-04
  31  Prefactor     .72660        .20294       -.64160E-06   -.82248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.0808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.762
  norm       = 1.92354
  Prefactor  = 0.0001
  Prefactor  = 12.7828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.34291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5064
  norm       = 7.93725
  Prefactor  = 11.95
  Prefactor  = 9.40044
  Prefactor  = 48.794
  norm       = 4.45174
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01583
  Prefactor  = 41.0857
  Prefactor  = 0.0001
  Normalizat = 0.958383
  Prefactor  = 0.726596
 **********
 **   18 **HESSE 
 **********

 FCN=   5489.052     FROM HESSE     STATUS=OK           622 CALLS     4789 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9330        .31726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0808        4.5661        .14565E-03   -1.5257    
   4  Prefactor     .10000E-03    17.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     106.76        89.201        .38922E-04   -1.3638    
   7  norm          1.9235        .40341        .20410E-04   -1.5431    
   8  Prefactor     .10000E-03    .91219        .68894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.783        12.624        .11204E-03   -1.4993    
  10  Prefactor     .10000E-03    5.4105        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1632.0        .39274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.9993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.3429        47.134        .13094E-03   -1.5097    
  14  Prefactor     .10000E-03    2.8521        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.506        20.124        .10900E-03   -1.4973    
  17  norm          7.9372        3.2648        .80708E-04   -1.5144    
  18  Prefactor     11.950        16.561        .11589E-03   -1.5016    
  19  Prefactor     9.4004        5.2478        .12150E-03   -1.5095    
  20  Prefactor     48.794        45.546        .57408E-04   -1.4310    
  21  norm          4.4517        1.4899        .47496E-04   -1.5286    
  22  norm          .10000E-03    4.2038        .14828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5092        .16787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    39.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.0158        1.4652        .59888E-04   -1.5361    
  28  Prefactor     41.086        34.788        .62537E-04   -1.4425    
  29  Prefactor     .10000E-03    2.7368        .11957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .95838        .21282        .23427E-03   -.94438    
  31  Prefactor     .72660        .23950        .31475E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78958e-11
Minuit parameter uncertainties:
  1  1.50249e-06
  2  1.84686e-05
  3  4.56643
  4  1.43167e-05
  5  8.46887e-07
  6  89.3136
  7  0.403406
  8  1.93993e-06
  9  12.6267
  10  3.5113e-06
  11  0.0016844
  12  1.83795e-05
  13  42.0223
  14  1.27508e-07
  15  1.68042e-05
  16  20.134
  17  3.26489
  18  16.5677
  19  5.24809
  20  45.5784
  21  1.48989
  22  2.83653e-06
  23  5.62934e-05
  24  2.95359e-05
  25  9.16639e-06
  26  0.000109355
  27  1.46521
  28  34.8056
  29  2.76622e-06
  30  0.213008
  31  0.239841
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  7.937e+00  3.265e+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.266e-01  2.398e-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:  9.584e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.90
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.41e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.38e-05

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) = 5487.77874792
delta logL = 1.27297231619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5487.77441993
delta logL = 1.27730029989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1813       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3319       1.0000          .0000       5.0000    
     3 'Normalizat'    .90069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77685       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=   5487.774     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      248 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1823        16.215        .56800E-02    .17381E-03
   2  alpha         3.3318        3.7966        .14389        .60881E-04
   3  Normalizat    .90075        .83532E-01    .44910E-01    .78924E-05
   4  Prefactor     .77681        .95568E-01    .68997E-01    .14583E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18234
  alpha      = 3.33176
  Normalizat = 0.900755
  Prefactor  = 0.776811
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.774     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1823        3.4069        .44782E-04   -1.5351    
   2  alpha         3.3318        .63810        .62185E-02    .33917    
   3  Normalizat    .90075        .20488        .24004E-03   -.96434    
   4  Prefactor     .77681        .24171        .30529E-03   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50454e-09
Minuit parameter uncertainties:
  1  3.40713
  2  0.646161
  3  0.205054
  4  0.24204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906760': 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) = 5487.77441979
delta logL = 1.27730043645

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  3.182e+00  3.407e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  3.332e+00  6.462e-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.768e-01  2.420e-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:  9.008e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.67
Ra Dec: 172.755 38.257
Photon Index (Free Index): 3.33 +/- 0.65
Photon Flux (Free Index): 1.55e-07 +/- 5.84e-08
Energy Flux (Free Index): 3.08e-05 +/- 1.16e-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/906760/cmap_HighResolution_625536001_625795201_4FGL_J1131.0+3815_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='3.08e-05', photon_flux_error='4.41e-08', dlogl='1.28e+00', energy_flux='3.36e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-04 03:12:07.636176', photon_index_error2='0.65', photon_index2='3.33', ts='11.90', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.96', time_epoch_completed='1630750327.64', return_code='0', job_id='906760', GAL2='0.78', EG2='0.90', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.84e-08', ts2='14.67', photon_index='2.55' WHERE bin_id='1490' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 906760: <4FGL_J1131.0+3815_daily_bin1490> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1490 172.755 38.2565 625536001 625795201 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 :                                   785.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

