/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 161 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 = 7558
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1131.4-0504_daily_bin320
RA = 172.875, Dec = -5.073
tmin = 322272001, tmax = 322531201
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='909909', job_status='RUN', time_executed='2021-09-04 03:08:49.560910', time_epoch_executed='1630750129.56' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909909/ft1_4FGL_J1131.4-0504_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909909/ft2_4FGL_J1131.4-0504_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909909/ft1_4FGL_J1131.4-0504_daily_bin320.fits outfile=/scratch/kocevski/909909/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin320.fits ra=172.875 dec=-5.073 rad=12.0 tmin=322272001.0 tmax=322531201.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.43
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/909909/ft2_4FGL_J1131.4-0504_daily_bin320.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/909909/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin320.fits evtable="EVENTS" outfile="/scratch/kocevski/909909/ft1_filtered_4FGL_J1131.4-0504_daily_bin320.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 3.85
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/909909/ft1_filtered_4FGL_J1131.4-0504_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/909909/ft2_4FGL_J1131.4-0504_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/909909/ltcube_322272001_322531201_4FGL_J1131.4-0504_daily_bin320.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/909909/ft2_4FGL_J1131.4-0504_daily_bin320.fits
.....................!
real 12.57
user 12.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909909/ft1_filtered_4FGL_J1131.4-0504_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/909909/ft2_4FGL_J1131.4-0504_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/909909/ltcube_322272001_322531201_4FGL_J1131.4-0504_daily_bin320.fits outfile=/scratch/kocevski/909909/expmap_322272001_322531201_4FGL_J1131.4-0504_daily_bin320.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/909909/ltcube_322272001_322531201_4FGL_J1131.4-0504_daily_bin320.fits
.....................!
real 191.24
user 185.94
sys 4.92

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/909909/ft1_filtered_4FGL_J1131.4-0504_daily_bin320.fits scfile=/scratch/kocevski/909909/ft2_4FGL_J1131.4-0504_daily_bin320.fits outfile=/scratch/kocevski/909909/cmap_322272001_322531201_4FGL_J1131.4-0504_daily_bin320.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/909909/ft1_filtered_4FGL_J1131.4-0504_daily_bin320.fits scfile=/scratch/kocevski/909909/ft2_4FGL_J1131.4-0504_daily_bin320.fits outfile=/scratch/kocevski/909909/cmap_HighResolution_322272001_322531201_4FGL_J1131.4-0504_daily_bin320.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/909909/ft1_filtered_4FGL_J1131.4-0504_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/909909/ft2_4FGL_J1131.4-0504_daily_bin320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/909909/Model_4FGL_J1131.4-0504_daily_bin320.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/909909/ft1_filtered_4FGL_J1131.4-0504_daily_bin320.fits.....................!
real 58.51
user 57.12
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4901       1.0000         .10000E-03   10000.    
     2 'norm      '    11.229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11860E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32833       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11092E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
    11 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.901       1.0000         .10000E-03   10000.    
    15 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9584       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.608       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.909       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.125       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.807       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7849       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .60976       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=   5955.701     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3023 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4899        .87080       -.30893E-06    .65710E-03
   2  norm          11.227        8.0029       -.19038E-06    .50088E-04
   3  Prefactor     4.0292        12.476        .74798E-05   -.17677E-03
   4  Prefactor     4.0320        21.773        .12447E-04    .20269E-03
   5  Prefactor     .10000E-03    15.211       -.76562E-06** at limit **
   6  Prefactor     .10000E-03    2.1022       -.39151E-07** at limit **
   7  Prefactor     .20111E-03    134.16       -.10925E-04** at limit **
   8  norm          .10000E-03    3.3287       -.47973E-07** at limit **
   9  Prefactor     .10000E-03    2.8064       -.18854E-06** at limit **
  10  Prefactor     12.252        9.7849       -.29821E-05    .94315E-04
  11  norm          .10000E-03    11.085        .76293E-07** at limit **
  12  Prefactor     .10000E-03    1.2959       -.38964E-07** at limit **
  13  Prefactor     .10000E-03    40.098       -.70156E-06** at limit **
  14  Prefactor     63.968        42.905       -.52700E-05    .50894E-04
  15  norm          .10000E-03    4.5101       -.42612E-08** at limit **
  16  Prefactor     1.3566        3.4147        .13193E-05   -.30735E-03
  17  Prefactor     1.9590        53.195       -.28050E-04   -.59618E-04
  18  Prefactor     .10000E-03    8.0654       -.16149E-06** at limit **
  19  Prefactor     14.602        43.107       -.26823E-05    .14729E-04
  20  Prefactor     12.908        8.3696       -.83241E-06   -.16370E-04
  21  Prefactor     8.2011        15.799       -.10540E-04   -.68185E-04
  22  Prefactor     20.116        28.530        .49239E-05    .13935E-04
  23  Prefactor     23.817        32.272        .26590E-04    .57278E-05
  24  Normalizat    1.7848        .23832       -.25272E-05    .63113E-03
  25  Prefactor     .61012        .15687        .28312E-05    .30615E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48994
  norm       = 11.2275
  Prefactor  = 4.02918
  Prefactor  = 4.03199
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000201108
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2522
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.9681
  norm       = 0.0001
  Prefactor  = 1.35658
  Prefactor  = 1.95905
  Prefactor  = 0.0001
  Prefactor  = 14.6021
  Prefactor  = 12.908
  Prefactor  = 8.20107
  Prefactor  = 20.1163
  Prefactor  = 23.8168
  Normalizat = 1.78481
  Prefactor  = 0.610124
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.701     FROM HESSE     STATUS=OK           439 CALLS     3462 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4899        .88449        .36330E-04   -1.5392    
   2  norm          11.227        7.9985        .11956E-03   -1.5038    
   3  Prefactor     4.0292        12.584        .20088E-03   -1.5306    
   4  Prefactor     4.0320        21.579        .20183E-03   -1.5306    
   5  Prefactor     .10000E-03    15.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1121        .10922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20111E-03    107.10        .20113       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.3320        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.548        .24376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.252        9.7867        .11444E-03   -1.5008    
  11  norm          .10000E-03    11.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3570        .16981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     63.968        42.865        .50201E-04   -1.4107    
  15  norm          .10000E-03    4.5584        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3566        3.3246        .20699E-03   -1.5475    
  17  Prefactor     1.9590        52.747        .29644E-03   -1.5428    
  18  Prefactor     .10000E-03    8.0676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.602        42.945        .10480E-03   -1.4944    
  20  Prefactor     12.908        8.3767        .11149E-03   -1.4989    
  21  Prefactor     8.2011        15.873        .14015E-03   -1.5135    
  22  Prefactor     20.116        28.510        .89283E-04   -1.4811    
  23  Prefactor     23.817        32.065        .82096E-04   -1.4732    
  24  Normalizat    1.7848        .27700        .25768E-03   -.70061    
  25  Prefactor     .61012        .18247        .28285E-03   -1.0716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50608e-09
Minuit parameter uncertainties:
  1  0.884491
  2  7.99923
  3  12.5925
  4  18.6657
  5  0.000273777
  6  6.44822e-06
  7  0.208499
  8  9.30035e-06
  9  0.000165199
  10  9.78798
  11  1.26646e-06
  12  7.57866e-06
  13  2.77085e-05
  14  42.8855
  15  1.20965e-05
  16  3.32502
  17  20.3501
  18  2.83191e-05
  19  43.0362
  20  8.37749
  21  15.8808
  22  28.5288
  23  32.088
  24  0.277239
  25  0.182645
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.266e-06  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:  6.101e-01  1.826e-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:  1.785e+00  2.772e-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: 4.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/909909/likelihoodResults_322272001_322531201_4FGL_J1131.4-0504_daily_bin320.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) = 5955.70146002
delta logL = -0.000428528697739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5955.70103149
delta logL = -4.69299266115e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7152       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61013       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=   5955.701     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.036        .90712E-02** at limit **
   2  alpha         2.7161        3.5976        .41346       -.41418E-06
   3  Normalizat    1.7848        .22204        .58280E-01   -.67219E-05
   4  Prefactor     .61013        .15274        .63926E-01    .19373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.71615
  Normalizat = 1.7848
  Prefactor  = 0.610126
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.701     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7161        3.5976        .50000        .86568E-01
   3  Normalizat    1.7848        .25835        .25769E-03   -.70061    
   4  Prefactor     .61013        .17746        .28285E-03   -1.0716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11548e-13
Minuit parameter uncertainties:
  1  1.29033e-06
  2  2.49065
  3  0.258546
  4  0.177624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909909': 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) = 5955.70103149
delta logL = 6.36646291241e-10

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.290e-06  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.716e+00  2.491e+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:  6.101e-01  1.776e-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:  1.785e+00  2.585e-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/909909/cmap_HighResolution_322272001_322531201_4FGL_J1131.4-0504_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', job_status='DONE', photon_flux_upper_limit='4.31e-08', time_completed='2021-09-04 03:21:22.421981', job_id='909909', GAL2='0.61', fit_tolerance='1e-08', EG2='1.78', EG='1.78', time_epoch_completed='1630750882.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='6.37e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='320' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 909909: <4FGL_J1131.4-0504_daily_bin320> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin320> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 03:05:58 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:06:00 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:06:00 2021
Terminated at Sat Sep  4 03:21:23 2021
Results reported at Sat Sep  4 03:21:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin320 172.875 -5.073 322272001 322531201 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 :                                   740.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             246.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

