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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1406
RA = 172.755, Dec = 38.2565
tmin = 603763201, tmax = 604022401
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='905164', job_status='RUN', time_executed='2021-09-04 02:55:32.974769', time_epoch_executed='1630749332.97' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905164/ft1_4FGL_J1131.0+3815_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905164/ft2_4FGL_J1131.0+3815_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905164/ft1_4FGL_J1131.0+3815_daily_bin1406.fits outfile=/scratch/kocevski/905164/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1406.fits ra=172.755 dec=38.2565 rad=12.0 tmin=603763201.0 tmax=604022401.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 4.24
user 3.98
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905164/ft1_filtered_4FGL_J1131.0+3815_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/905164/ft2_4FGL_J1131.0+3815_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/905164/ltcube_603763201_604022401_4FGL_J1131.0+3815_daily_bin1406.fits outfile=/scratch/kocevski/905164/expmap_603763201_604022401_4FGL_J1131.0+3815_daily_bin1406.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/905164/ltcube_603763201_604022401_4FGL_J1131.0+3815_daily_bin1406.fits
.....................!
real 197.10
user 185.98
sys 4.96

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/905164/ft1_filtered_4FGL_J1131.0+3815_daily_bin1406.fits scfile=/scratch/kocevski/905164/ft2_4FGL_J1131.0+3815_daily_bin1406.fits outfile=/scratch/kocevski/905164/cmap_603763201_604022401_4FGL_J1131.0+3815_daily_bin1406.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905164/ft1_filtered_4FGL_J1131.0+3815_daily_bin1406.fits scfile=/scratch/kocevski/905164/ft2_4FGL_J1131.0+3815_daily_bin1406.fits outfile=/scratch/kocevski/905164/cmap_HighResolution_603763201_604022401_4FGL_J1131.0+3815_daily_bin1406.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=172.755 yref=38.2565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.135       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0629       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.030       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2788       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9834       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14193E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7118       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.369       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.970       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.019       1.0000         .10000E-03   10000.    
    21 'norm      '    .64132       1.0000         .10000E-03   10000.    
    22 'norm      '    29.652       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.642       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7584       1.0000         .10000E-03   10000.    
    27 'norm      '    1.7202       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3041       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .13056       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.6889       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3982.806     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     4016 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.130        1.7989       -.15382E-05    .25985E-02
   2  Prefactor     9.0617        1.0040       -.10649E-06   -.24685E-03
   3  Prefactor     12.890        1.0286        .33314E-06   -.22903E-03
   4  Prefactor     16.150        1.4165       -.12611E-05    .14101E-02
   5  Prefactor     .10000E-03    7.9094       -.49415E-06** at limit **
   6  Prefactor     19.030        1.0063       -.12844E-06    .19006E-03
   7  norm          1.2788        .41029        .34798E-07    .49580E-03
   8  Prefactor     .10000E-03    1.0282        .10622E-05** at limit **
   9  Prefactor     .10004E-03    7.3022       -.16915E-05** at limit **
  10  Prefactor     .10012E-03    10.684       -.57439E-05** at limit **
  11  Prefactor     .10014E-03    16.550        .28629E-04** at limit **
  12  norm          .10025E-03    7.0504        .17123E-04** at limit **
  13  norm          .10000E-03    12.354       -.23307E-04** at limit **
  14  Prefactor     1.9836        3.1805        .11685E-06    .20709E-04
  15  Prefactor     .10003E-03    7.7350        .75617E-05** at limit **
  16  Prefactor     .10084E-03    12.621       -.25149E-04** at limit **
  17  norm          6.7128        3.8538        .18217E-06    .14185E-03
  18  Prefactor     10.360        1.0962       -.15117E-06   -.81701E-04
  19  Prefactor     25.969        1.0607       -.24921E-06   -.40204E-04
  20  Prefactor     48.030        3.7744        .26659E-05   -.90981E-02
  21  norm          .64102        1.3760       -.41366E-06   -.19043E-04
  22  norm          29.650        1.0090       -.69215E-07   -.10190E-04
  23  Prefactor     .10012E-03    39.402       -.21698E-04** at limit **
  24  Prefactor     .10000E-03    2.8479        .11669E-05** at limit **
  25  Prefactor     19.636        2.4616       -.25743E-05    .36168E-02
  26  Prefactor     7.7542        1.1632       -.95528E-06    .33338E-03
  27  norm          1.7201        1.6304       -.97357E-07   -.26202E-04
  28  Prefactor     .10007E-03    8.8781       -.13394E-04** at limit **
  29  Prefactor     4.3033        1.0092       -.10191E-06   -.43804E-05
  30  Normalizat    .13064        .22519       -.76205E-06    .36583E-04
  31  Prefactor     1.6887        .29050        .69364E-06    .71398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1305
  Prefactor  = 9.06168
  Prefactor  = 12.8904
  Prefactor  = 16.1502
  Prefactor  = 0.0001
  Prefactor  = 19.0302
  norm       = 1.27881
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 0.000100119
  Prefactor  = 0.000100143
  norm       = 0.00010025
  norm       = 0.000100003
  Prefactor  = 1.98356
  Prefactor  = 0.000100034
  Prefactor  = 0.00010084
  norm       = 6.71277
  Prefactor  = 10.36
  Prefactor  = 25.9685
  Prefactor  = 48.0298
  norm       = 0.641025
  norm       = 29.6505
  Prefactor  = 0.000100122
  Prefactor  = 0.0001
  Prefactor  = 19.6355
  Prefactor  = 7.75417
  norm       = 1.72005
  Prefactor  = 0.000100067
  Prefactor  = 4.30326
  Normalizat = 0.130645
  Prefactor  = 1.68875
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.806     FROM HESSE     STATUS=OK           694 CALLS     4710 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.130        50.301        .20384E-02   -1.4725    
   2  Prefactor     9.0617        7.1678        .33284E-02   -1.5106    
   3  Prefactor     12.890        11.660        .27893E-02   -1.4990    
   4  Prefactor     16.150        62.417        .24913E-02   -1.4904    
   5  Prefactor     .10000E-03    7.9148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.030        200.51        .22953E-02   -1.4835    
   7  norm          1.2788        .49594        .49947E-02   -1.5482    
   8  Prefactor     .10000E-03    1.0326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    24.999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10012E-03    12.805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    31.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10025E-03    10.863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    22.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9836        3.5174        .73567E-02   -1.5426    
  15  Prefactor     .10003E-03    25.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10084E-03    17.742        .10257       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7128        4.1632        .38721E-02   -1.5190    
  18  Prefactor     10.360        16.331        .31108E-02   -1.5064    
  19  Prefactor     25.969        14.568        .19652E-02   -1.4688    
  20  Prefactor     48.030        91.884        .14466E-02   -1.4321    
  21  norm          .64102        2.4575        .11835E-01   -1.5548    
  22  norm          29.650        16.986        .18394E-02   -1.4618    
  23  Prefactor     .10012E-03    48.948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8575        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.636        111.32        .22593E-02   -1.4821    
  26  Prefactor     7.7542        29.037        .35991E-02   -1.5151    
  27  norm          1.7201        2.2271        .80076E-02   -1.5446    
  28  Prefactor     .10007E-03    9.8366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.3033        12.018        .48546E-02   -1.5293    
  30  Normalizat    .13064        6.2804        .13141       -1.3506    
  31  Prefactor     1.6887        1.5351        .49790E-01   -.72382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12652e-06
Minuit parameter uncertainties:
  1  50.3893
  2  7.16852
  3  11.6623
  4  62.6711
  5  8.14525e-05
  6  124.081
  7  0.495941
  8  4.10984e-08
  9  0.00206388
  10  0.00246635
  11  0.00424979
  12  0.00329358
  13  0.000513614
  14  3.51781
  15  0.00188921
  16  0.00772337
  17  4.1634
  18  16.338
  19  14.57
  20  92.1567
  21  2.45794
  22  16.9885
  23  0.00490067
  24  6.90679e-06
  25  93.7734
  26  29.0898
  27  2.22716
  28  0.0016288
  29  12.0249
  30  1.43132
  31  1.58164
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  6.713e+00  4.163e+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:  1.689e+00  1.582e+00  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.306e-01  1.431e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.11
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.08e-08 +/- 5.63e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.76e-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) = 3982.80485726
delta logL = 0.0013554439638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3982.80313163
delta logL = 0.00308107572619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4099       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5983       1.0000          .0000       5.0000    
     3 'Normalizat'    .12765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6913       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=   3982.803     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      245 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4098        5.5995        .83262E-04    .51797E-03
   2  alpha         2.5982        .66621        .89427E-02    .44098E-04
   3  Normalizat    .12763        .22697        .57890E-03   -.18254E-04
   4  Prefactor     1.6913        .29337        .21992E-03   -.81084E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.40975
  alpha      = 2.59821
  Normalizat = 0.127629
  Prefactor  = 1.69133
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.803     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4098        5.2619        .33305E-05   -1.5202    
   2  alpha         2.5982        .62644        .35771E-03    .39293E-01
   3  Normalizat    .12763        .22594        .23156E-04   -1.3533    
   4  Prefactor     1.6913        .29225        .87966E-05   -.72313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96538e-11
Minuit parameter uncertainties:
  1  5.26223
  2  0.633196
  3  0.227628
  4  0.292543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905164': 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) = 3982.80313159
delta logL = 0.00308111631466

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  6.410e+00  5.262e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.598e+00  6.332e-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:  1.691e+00  2.925e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.276e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.19
Ra Dec: 172.755 38.257
Photon Index (Free Index): 2.60 +/- 0.63
Photon Flux (Free Index): 9.33e-08 +/- 6.00e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.59e-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/905164/cmap_HighResolution_603763201_604022401_4FGL_J1131.0+3815_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.08e-08', energy_flux2='2.81e-05', photon_flux_error='5.63e-08', dlogl='3.08e-03', energy_flux='2.84e-05', photon_flux2='9.33e-08', job_status='DONE', time_completed='2021-09-04 03:07:03.141072', photon_index_error2='0.63', photon_index2='2.60', ts='6.11', fit_tolerance='1e-08', GAL='1.69', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.13', time_epoch_completed='1630750023.14', return_code='0', job_id='905164', GAL2='1.69', EG2='0.13', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.00e-08', ts2='6.19', photon_index='2.55' WHERE bin_id='1406' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:07:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 905164: <4FGL_J1131.0+3815_daily_bin1406> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1406> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 02:51:10 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:51: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:51:27 2021
Terminated at Sat Sep  4 03:07:03 2021
Results reported at Sat Sep  4 03:07:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1406 172.755 38.2565 603763201 604022401 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 :                                   653.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            953 sec.

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

