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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin965
RA = 172.875, Dec = -5.073
tmin = 489456001, tmax = 489715201
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='913423', job_status='RUN', time_executed='2021-09-04 03:20:49.426824', time_epoch_executed='1630750849.43' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913423/ft1_4FGL_J1131.4-0504_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913423/ft1_4FGL_J1131.4-0504_daily_bin965.fits outfile=/scratch/kocevski/913423/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin965.fits ra=172.875 dec=-5.073 rad=12.0 tmin=489456001.0 tmax=489715201.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.18
user 4.85
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.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/913423/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin965.fits evtable="EVENTS" outfile="/scratch/kocevski/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/913423/ltcube_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.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/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits
.....................!
real 12.29
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/913423/ltcube_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.fits outfile=/scratch/kocevski/913423/expmap_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.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/913423/ltcube_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.fits
.....................!
real 193.06
user 187.00
sys 5.25

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/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.fits scfile=/scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits outfile=/scratch/kocevski/913423/cmap_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.fits scfile=/scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits outfile=/scratch/kocevski/913423/cmap_HighResolution_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913423/Model_4FGL_J1131.4-0504_daily_bin965.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/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.fits.....................!
real 47.80
user 46.49
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.fits', '/scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits', expMap='/scratch/kocevski/913423/expmap_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.fits', expCube='/scratch/kocevski/913423/ltcube_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913423/Model_4FGL_J1131.4-0504_daily_bin965.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/913423/ft1_filtered_4FGL_J1131.4-0504_daily_bin965.fits
Spacecraft file(s): /scratch/kocevski/913423/ft2_4FGL_J1131.4-0504_daily_bin965.fits
Exposure map: /scratch/kocevski/913423/expmap_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.fits
Exposure cube: /scratch/kocevski/913423/ltcube_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913423/Model_4FGL_J1131.4-0504_daily_bin965.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) = 4758.95131443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1228       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5354       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.337       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10923E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5061       1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.7447       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .90135E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0645       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.575       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12094E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.154       1.0000         .10000E-03   10000.    
    23 'Prefactor '    70.254       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81751       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1668       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=   4758.941     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2896 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1227        .69219        .42422E-07    .91628E-04
   2  norm          6.5348        8.6225        .25491E-06    .61485E-05
   3  Prefactor     .10000E-03    5.1439       -.19329E-06** at limit **
   4  Prefactor     3.1334        21.710        .77029E-06    .23123E-04
   5  Prefactor     17.340        14.093       -.35969E-06    .12498E-04
   6  Prefactor     .10000E-03    7.1883       -.83222E-06** at limit **
   7  Prefactor     .10000E-03    35.015       -.71047E-05** at limit **
   8  norm          .10000E-03    5.8727        .36579E-06** at limit **
   9  Prefactor     4.4996        8.7895        .43229E-05    .14870E-03
  10  Prefactor     .10000E-03    4.9384        .12971E-06** at limit **
  11  norm          .10000E-03    53.517        .43871E-05** at limit **
  12  Prefactor     4.5062        3.0954        .31090E-07   -.89655E-05
  13  Prefactor     78.190        54.060       -.88150E-06    .48359E-04
  14  Prefactor     .10000E-03    25.874        .30936E-05** at limit **
  15  norm          6.7466        8.5498        .13322E-05    .32696E-03
  16  Prefactor     .10009E-03    3.5172       -.19085E-05** at limit **
  17  Prefactor     5.0659        15.421        .57883E-07    .67534E-04
  18  Prefactor     .10000E-03    11.228       -.16549E-05** at limit **
  19  Prefactor     58.575        71.711       -.33761E-06    .70681E-04
  20  Prefactor     .10000E-03    13.086        .34022E-06** at limit **
  21  Prefactor     .10000E-03    8.8321        .16348E-05** at limit **
  22  Prefactor     37.152        65.306        .78871E-06    .28773E-04
  23  Prefactor     70.255        38.479        .10066E-06   -.50868E-05
  24  Normalizat    .81743        .27220       -.63198E-06    .88651E-04
  25  Prefactor     1.1669        .19216       -.11031E-05    .95938E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12268
  norm       = 6.53485
  Prefactor  = 0.0001
  Prefactor  = 3.13339
  Prefactor  = 17.34
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.49962
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.50622
  Prefactor  = 78.1899
  Prefactor  = 0.0001
  norm       = 6.74658
  Prefactor  = 0.000100093
  Prefactor  = 5.06594
  Prefactor  = 0.0001
  Prefactor  = 58.5747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1523
  Prefactor  = 70.2548
  Normalizat = 0.817433
  Prefactor  = 1.16694
 **********
 **   18 **HESSE 
 **********

 FCN=   4758.941     FROM HESSE     STATUS=OK           423 CALLS     3319 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1227        .68304        .43318E-04   -1.5496    
   2  norm          6.5348        8.6221        .15698E-03   -1.5197    
   3  Prefactor     .10000E-03    5.1517        .15272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1334        21.421        .22878E-03   -1.5354    
   5  Prefactor     17.340        14.011        .96192E-04   -1.4875    
   6  Prefactor     .10000E-03    7.3947        .36126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8873        .16321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4996        8.8360        .94845E-03   -1.5284    
  10  Prefactor     .10000E-03    4.9519        .14972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    53.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5062        3.0954        .96132E-04   -1.5283    
  13  Prefactor     78.190        53.977        .45410E-04   -1.3937    
  14  Prefactor     .10000E-03    25.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.7466        8.3914        .77250E-03   -1.5188    
  16  Prefactor     .10009E-03    22.803        .21417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0659        15.272        .17867E-03   -1.5258    
  18  Prefactor     .10000E-03    11.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     58.575        70.796        .52420E-04   -1.4176    
  20  Prefactor     .10000E-03    13.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.152        65.271        .65751E-04   -1.4488    
  23  Prefactor     70.255        38.513        .47892E-04   -1.4030    
  24  Normalizat    .81743        .30834        .35205E-03   -.99425    
  25  Prefactor     1.1669        .21988        .21793E-03   -.87355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13912e-09
Minuit parameter uncertainties:
  1  0.683048
  2  8.62371
  3  8.27521e-08
  4  16.3937
  5  14.0134
  6  3.73322e-05
  7  0.000280552
  8  4.26956e-06
  9  8.83856
  10  6.81139e-06
  11  0.000236227
  12  3.09551
  13  54.0108
  14  0.000121275
  15  8.39285
  16  0.00291408
  17  15.2842
  18  3.54312e-05
  19  70.8981
  20  2.42407e-05
  21  3.08731e-05
  22  65.3968
  23  38.5271
  24  0.309001
  25  0.220049
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  2.362e-04  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.167e+00  2.200e-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:  8.174e-01  3.090e-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: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913423/likelihoodResults_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.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): 0
logL (Free Index) = 4758.94137671
delta logL = -8.95277735253e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4758.9413767
delta logL = -8.9512642262e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96344E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7143       1.0000          .0000       5.0000    
     3 'Normalizat'    .81743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1669       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.

 FCN=   4758.941     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      192 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    55.359        .90714E-02** at limit **
   2  alpha         2.7457        3.6136        .41344       -.30627E-05
   3  Normalizat    .81743        .25700        .79522E-01    .55557E-04
   4  Prefactor     1.1669        .18792        .35464E-01    .96641E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.74572
  Normalizat = 0.817432
  Prefactor  = 1.16694
 **********
 **   18 **HESSE 
 **********

 FCN=   4758.941     FROM HESSE     STATUS=OK            27 CALLS      219 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    54.235        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7457        3.6035        .16538        .98446E-01
   3  Normalizat    .81743        .29227        .35205E-03   -.99425    
   4  Prefactor     1.1669        .21423        .21793E-03   -.87355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41892e-11
Minuit parameter uncertainties:
  1  0.000869953
  2  2.48869
  3  0.292839
  4  0.214389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913423': 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) = 4758.94128715
delta logL = 3.79613993573e-08

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  8.700e-04  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.746e+00  2.489e+00  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.167e+00  2.144e-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:  8.174e-01  2.928e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/913423/cmap_HighResolution_489456001_489715201_4FGL_J1131.4-0504_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-04 03:31:47.915719', job_id='913423', GAL2='1.17', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630751507.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='3.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='965' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 913423: <4FGL_J1131.4-0504_daily_bin965> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin965> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 03:16:55 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:16:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:16:56 2021
Terminated at Sat Sep  4 03:31:48 2021
Results reported at Sat Sep  4 03:31:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin965 172.875 -5.073 489456001 489715201 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 :                                   644.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

