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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin66
RA = 172.875, Dec = -5.073
tmin = 256435201, tmax = 256694401
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='907050', job_status='RUN', time_executed='2021-09-04 02:57:20.890378', time_epoch_executed='1630749440.89' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907050

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907050/ft1_4FGL_J1131.4-0504_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907050/ft1_4FGL_J1131.4-0504_daily_bin66.fits outfile=/scratch/kocevski/907050/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin66.fits ra=172.875 dec=-5.073 rad=12.0 tmin=256435201.0 tmax=256694401.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.52
user 1.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.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/907050/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.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.64
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/907050/ltcube_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.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/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits
.....................!
real 18.74
user 18.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/907050/ltcube_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.fits outfile=/scratch/kocevski/907050/expmap_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.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/907050/ltcube_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.fits
.....................!
real 192.62
user 186.41
sys 5.62

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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1131.4-0504 @ 172.875 -5.073

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.fits scfile=/scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits outfile=/scratch/kocevski/907050/cmap_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.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.875 yref=-5.073 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.fits scfile=/scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits outfile=/scratch/kocevski/907050/cmap_HighResolution_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.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.875 yref=-5.073 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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907050/Model_4FGL_J1131.4-0504_daily_bin66.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/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.fits.....................!
real 76.95
user 75.56
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.fits', '/scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits', expMap='/scratch/kocevski/907050/expmap_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.fits', expCube='/scratch/kocevski/907050/ltcube_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907050/Model_4FGL_J1131.4-0504_daily_bin66.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1131.4-0504'

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  4.260e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.714e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
312         beta:  6.202e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
313           Eb:  1.252e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907050/ft1_filtered_4FGL_J1131.4-0504_daily_bin66.fits
Spacecraft file(s): /scratch/kocevski/907050/ft2_4FGL_J1131.4-0504_daily_bin66.fits
Exposure map: /scratch/kocevski/907050/expmap_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.fits
Exposure cube: /scratch/kocevski/907050/ltcube_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907050/Model_4FGL_J1131.4-0504_daily_bin66.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) = 8913.22642575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6877       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11295E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.900       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6404       1.0000         .10000E-03   10000.    
     8 'norm      '    73.691       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.704       1.0000         .10000E-03   10000.    
    11 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17203E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3404       1.0000         .10000E-03   10000.    
    15 'norm      '    .67514E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14218E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.317       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3688       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0538       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23895E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64520       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8913.149     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2497 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6878        .63815        .61771E-08   -.38638E-03
   2  norm          .10000E-03    1.6812       -.24054E-07** at limit **
   3  Prefactor     .10000E-03    9.2230        .97349E-06** at limit **
   4  Prefactor     13.921        10.278        .38678E-05    .16269E-03
   5  Prefactor     .10000E-03    3.1212       -.82310E-07** at limit **
   6  Prefactor     .10000E-03    1.3714       -.17657E-07** at limit **
   7  Prefactor     5.6288        18.814       -.62802E-05   -.35770E-04
   8  norm          73.761        12.629       -.15583E-07    .82454E-04
   9  Prefactor     .10000E-03    1.2397       -.10863E-07** at limit **
  10  Prefactor     11.701        6.6617       -.13009E-06   -.45523E-03
  11  norm          .10000E-03    6.4221        .30378E-05** at limit **
  12  Prefactor     1.8189        1.4528        .47543E-07   -.28347E-05
  13  Prefactor     .10000E-03    6.8176       -.35229E-05** at limit **
  14  Prefactor     5.3821        16.117        .59871E-05    .28813E-04
  15  norm          .10009E-03    1.8995       -.81200E-06** at limit **
  16  Prefactor     2.7575        2.3421        .47535E-07    .37950E-03
  17  Prefactor     .10000E-03    29.566        .45651E-05** at limit **
  18  Prefactor     17.280        16.555       -.40242E-05   -.70432E-04
  19  Prefactor     .10000E-03    8.3906       -.44803E-06** at limit **
  20  Prefactor     5.3508        5.0525       -.51900E-06   -.25526E-04
  21  Prefactor     2.0219        2.7582        .91161E-06   -.21036E-02
  22  Prefactor     .10000E-03    8.8972        .13934E-05** at limit **
  23  Prefactor     .10000E-03    6.5924       -.29037E-06** at limit **
  24  Normalizat    .64528        .16354       -.63139E-06    .52315E-04
  25  Prefactor     1.1022        .12305        .30673E-07    .66219E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.68777
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.62884
  norm       = 73.7611
  Prefactor  = 0.0001
  Prefactor  = 11.701
  norm       = 0.0001
  Prefactor  = 1.8189
  Prefactor  = 0.0001
  Prefactor  = 5.38215
  norm       = 0.000100093
  Prefactor  = 2.75753
  Prefactor  = 0.0001
  Prefactor  = 17.2799
  Prefactor  = 0.0001
  Prefactor  = 5.35085
  Prefactor  = 2.02186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.645275
  Prefactor  = 1.10225
 **********
 **   18 **HESSE 
 **********

 FCN=   8913.149     FROM HESSE     STATUS=OK           425 CALLS     2922 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6878        .63668        .35075E-04   -1.5380    
   2  norm          .10000E-03    1.7013        .11954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.921        10.293        .10743E-03   -1.4962    
   5  Prefactor     .10000E-03    3.1303        .16286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3839        .10787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6288        18.831        .16914E-03   -1.5233    
   8  norm          73.761        12.614        .46770E-04   -1.3988    
   9  Prefactor     .10000E-03    1.2490        .10255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.701        6.6945        .58549E-03   -1.5024    
  11  norm          .10000E-03    6.4379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8189        1.4434        .97895E-04   -1.5438    
  13  Prefactor     .10000E-03    6.8334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3821        16.106        .17391E-03   -1.5244    
  15  norm          .10009E-03    14.992        .24256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7575        2.2683        .12406E-03   -1.5376    
  17  Prefactor     .10000E-03    30.812        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.280        16.561        .96245E-04   -1.4876    
  19  Prefactor     .10000E-03    8.3946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3508        5.0519        .17344E-03   -1.5245    
  21  Prefactor     2.0219        6.7706        .14421E-02   -1.5424    
  22  Prefactor     .10000E-03    8.9015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.6121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64528        .18495        .33443E-03   -1.0609    
  25  Prefactor     1.1022        .13925        .20134E-03   -.89395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6171e-08
Minuit parameter uncertainties:
  1  0.636679
  2  1.77702e-06
  3  4.54244e-06
  4  10.2939
  5  1.75626e-05
  6  2.5362e-06
  7  18.8511
  8  12.6143
  9  1.4071e-06
  10  6.69498
  11  2.22603e-05
  12  1.4434
  13  2.39735e-05
  14  16.1191
  15  0.0023646
  16  2.26835
  17  5.63646e-05
  18  16.5655
  19  1.8079e-06
  20  5.05232
  21  6.77312
  22  1.35997e-05
  23  9.14603e-06
  24  0.185131
  25  0.139298
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  2.226e-05  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.714e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
312         beta:  6.202e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
313           Eb:  1.252e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  1.102e+00  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
630        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
631        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
628   Normalization:  6.453e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.875 -5.073
Photon Flux Upper Limit: 2.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907050/likelihoodResults_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.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) = 8913.14986087
delta logL = -0.000737774580557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8913.14912309
delta logL = 1.13122951007e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7066       1.0000          .0000       5.0000    
     3 'Normalizat'    .64527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6320E+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=   8913.149     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      237 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    367.06        .18142E-01** at limit **
   2  alpha         1.9112        2.6953        .16532       -.35759E-08
   3  Normalizat    .64527        .29861E-01    .33443E-03   -.22477E-03
   4  Prefactor     1.1022        .23147E-01    .20134E-03   -.41638E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91117
  Normalizat = 0.645275
  Prefactor  = 1.10225
 **********
 **   18 **HESSE 
 **********

 FCN=   8913.149     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3012        .24877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9112        2.9721        .66129E-02   -.23777    
   3  Normalizat    .64527        .17868        .13377E-04   -1.0609    
   4  Prefactor     1.1022        .13858        .40267E-04   -.89395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00986e-10
Minuit parameter uncertainties:
  1  6.0221e-05
  2  611.668
  3  0.178845
  4  0.138624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907050': 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) = 8913.14912219
delta logL = 9.05583874555e-07

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  6.022e-05  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  1.911e+00  6.117e+02  0.000e+00  5.000e+00 ( 1.000e+00)
312         beta:  6.202e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
313           Eb:  1.252e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  1.102e+00  1.386e-01  0.000e+00  1.000e+01 ( 1.000e+00)
630        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
631        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
628   Normalization:  6.453e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.875 -5.073

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/907050/cmap_HighResolution_256435201_256694401_4FGL_J1131.4-0504_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-05', job_status='DONE', photon_flux_upper_limit='2.45e-08', time_completed='2021-09-04 03:12:29.504818', job_id='907050', GAL2='1.10', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630750349.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='9.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='66' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:12:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 907050: <4FGL_J1131.4-0504_daily_bin66> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin66> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 02:56:57 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:56:59 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:59 2021
Terminated at Sat Sep  4 03:12:30 2021
Results reported at Sat Sep  4 03:12:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin66 172.875 -5.073 256435201 256694401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.4-0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   904.48 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             315.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

