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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin344
RA = 172.875, Dec = -5.073
tmin = 328492801, tmax = 328752001
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='909938', job_status='RUN', time_executed='2021-09-04 03:08:54.354380', time_epoch_executed='1630750134.35' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909938/ft1_4FGL_J1131.4-0504_daily_bin344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909938/ft2_4FGL_J1131.4-0504_daily_bin344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909938/ft1_4FGL_J1131.4-0504_daily_bin344.fits outfile=/scratch/kocevski/909938/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin344.fits ra=172.875 dec=-5.073 rad=12.0 tmin=328492801.0 tmax=328752001.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.42
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/909938/ft1_filtered_4FGL_J1131.4-0504_daily_bin344.fits" evtable="EVENTS" scfile=/scratch/kocevski/909938/ft2_4FGL_J1131.4-0504_daily_bin344.fits sctable="SC_DATA" outfile=/scratch/kocevski/909938/ltcube_328492801_328752001_4FGL_J1131.4-0504_daily_bin344.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/909938/ft2_4FGL_J1131.4-0504_daily_bin344.fits
.....................!
real 12.10
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909938/ft1_filtered_4FGL_J1131.4-0504_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/909938/ft2_4FGL_J1131.4-0504_daily_bin344.fits sctable="SC_DATA" expcube=/scratch/kocevski/909938/ltcube_328492801_328752001_4FGL_J1131.4-0504_daily_bin344.fits outfile=/scratch/kocevski/909938/expmap_328492801_328752001_4FGL_J1131.4-0504_daily_bin344.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/909938/ltcube_328492801_328752001_4FGL_J1131.4-0504_daily_bin344.fits
.....................!
real 189.45
user 185.02
sys 4.08

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/909938/ft1_filtered_4FGL_J1131.4-0504_daily_bin344.fits scfile=/scratch/kocevski/909938/ft2_4FGL_J1131.4-0504_daily_bin344.fits outfile=/scratch/kocevski/909938/cmap_328492801_328752001_4FGL_J1131.4-0504_daily_bin344.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/909938/ft1_filtered_4FGL_J1131.4-0504_daily_bin344.fits scfile=/scratch/kocevski/909938/ft2_4FGL_J1131.4-0504_daily_bin344.fits outfile=/scratch/kocevski/909938/cmap_HighResolution_328492801_328752001_4FGL_J1131.4-0504_daily_bin344.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/909938/ft1_filtered_4FGL_J1131.4-0504_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/909938/ft2_4FGL_J1131.4-0504_daily_bin344.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/909938/Model_4FGL_J1131.4-0504_daily_bin344.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/909938/ft1_filtered_4FGL_J1131.4-0504_daily_bin344.fits.....................!
real 53.15
user 51.23
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3520       1.0000         .10000E-03   10000.    
     2 'norm      '    11.967       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.375       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12377E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.950       1.0000         .10000E-03   10000.    
    11 'norm      '    .15343E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6788       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.991       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.296       1.0000         .10000E-03   10000.    
    15 'norm      '    .79628E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.126       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.365       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3998       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68805       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=   5404.260     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2878 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3518        .83619       -.17952E-07    .58316E-04
   2  norm          11.966        8.7273       -.70650E-07    .62737E-05
   3  Prefactor     .10000E-03    3.2263        .18649E-07** at limit **
   4  Prefactor     .10000E-03    24.088        .58387E-06** at limit **
   5  Prefactor     12.203        19.513       -.13670E-05    .41545E-04
   6  Prefactor     .10000E-03    4.0363       -.19830E-06** at limit **
   7  Prefactor     .10000E-03    43.126        .35648E-06** at limit **
   8  norm          10.360        15.605        .51550E-06    .15191E-03
   9  Prefactor     .10000E-03    6.5691       -.27304E-05** at limit **
  10  Prefactor     14.950        12.156       -.72332E-07    .87347E-05
  11  norm          .10000E-03    86.263       -.10835E-04** at limit **
  12  Prefactor     2.6774        2.7089       -.50688E-07    .47062E-04
  13  Prefactor     52.944        35.909        .27197E-07    .35612E-04
  14  Prefactor     19.284        34.267       -.98459E-07   -.24386E-04
  15  norm          .83153E-01    5.6570        .61637E-06   -.28590E-03
  16  Prefactor     .10000E-03    1.4995       -.29407E-07** at limit **
  17  Prefactor     40.455        22.043        .37903E-07   -.23872E-06
  18  Prefactor     21.120        20.086       -.86296E-07   -.11949E-05
  19  Prefactor     .10000E-03    13.576        .57361E-07** at limit **
  20  Prefactor     .10000E-03    4.4631        .51028E-07** at limit **
  21  Prefactor     .10000E-03    19.823        .60418E-06** at limit **
  22  Prefactor     36.374        37.545        .38107E-06    .23690E-04
  23  Prefactor     .10000E-03    59.438        .37213E-06** at limit **
  24  Normalizat    1.4005        .23901        .16697E-05    .19367E-04
  25  Prefactor     .68758        .16242       -.10836E-05    .11012E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.35183
  norm       = 11.9663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3597
  Prefactor  = 0.0001
  Prefactor  = 14.95
  norm       = 0.0001
  Prefactor  = 2.67741
  Prefactor  = 52.9437
  Prefactor  = 19.2839
  norm       = 0.0831531
  Prefactor  = 0.0001
  Prefactor  = 40.4554
  Prefactor  = 21.1199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3743
  Prefactor  = 0.0001
  Normalizat = 1.40048
  Prefactor  = 0.687579
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.260     FROM HESSE     STATUS=OK           435 CALLS     3313 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3518        .83759        .32478E-04   -1.5342    
   2  norm          11.966        8.7310        .11580E-03   -1.5016    
   3  Prefactor     .10000E-03    3.2288        .12892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.203        19.445        .11475E-03   -1.5009    
   6  Prefactor     .10000E-03    4.0878        .14395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.360        15.555        .12439E-03   -1.5064    
   9  Prefactor     .10000E-03    6.6899        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.950        12.161        .10359E-03   -1.4934    
  11  norm          .10000E-03    87.205        .40906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6774        2.7043        .11553E-03   -1.5381    
  13  Prefactor     52.944        35.924        .55098E-04   -1.4251    
  14  Prefactor     19.284        34.320        .91178E-04   -1.4829    
  15  norm          .83153E-01    5.6883        .53463E-01   -1.5650    
  16  Prefactor     .10000E-03    1.5050        .87837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.455        22.044        .63025E-04   -1.4435    
  18  Prefactor     21.120        20.093        .87144E-04   -1.4789    
  19  Prefactor     .10000E-03    13.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4748        .15165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.374        37.533        .66458E-04   -1.4501    
  23  Prefactor     .10000E-03    60.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4005        .27259        .27033E-03   -.80615    
  25  Prefactor     .68758        .18410        .25976E-03   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16707e-10
Minuit parameter uncertainties:
  1  0.837597
  2  8.73191
  3  1.91861e-07
  4  3.44017e-05
  5  19.4556
  6  2.87656e-07
  7  0.000189704
  8  15.5614
  9  2.79108e-05
  10  12.1634
  11  0.000350189
  12  2.70445
  13  35.9384
  14  34.3555
  15  1.37481
  16  2.40779e-06
  17  22.0482
  18  20.0993
  19  7.81392e-06
  20  2.56189e-06
  21  4.87646e-05
  22  37.5574
  23  8.79827e-05
  24  0.272878
  25  0.184259
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  3.502e-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:  6.876e-01  1.843e-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.400e+00  2.729e-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: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/909938/likelihoodResults_328492801_328752001_4FGL_J1131.4-0504_daily_bin344.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) = 5404.26004749
delta logL = -5.45837683603e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5404.26004748
delta logL = -5.45804341527e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7143       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68758       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=   5404.260     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      192 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    108.42        .90713E-02** at limit **
   2  alpha         2.7887        3.6284        .41344       -.43543E-05
   3  Normalizat    1.4005        .22297        .61122E-01    .40676E-05
   4  Prefactor     .68758        .15682        .42236E-01    .19695E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100022
  alpha      = 2.78869
  Normalizat = 1.40048
  Prefactor  = 0.687578
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.260     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    107.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7887        3.6112        .50000        .11574    
   3  Normalizat    1.4005        .25666        .27032E-03   -.80615    
   4  Prefactor     .68758        .18053        .25976E-03   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0664e-10
Minuit parameter uncertainties:
  1  0.00308589
  2  2.48337
  3  0.256892
  4  0.18068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909938': 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) = 5404.25999277
delta logL = 1.28918145492e-07

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  3.086e-03  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.789e+00  2.483e+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.876e-01  1.807e-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.400e+00  2.569e-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/909938/cmap_HighResolution_328492801_328752001_4FGL_J1131.4-0504_daily_bin344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-09-04 03:20:26.824585', job_id='909938', GAL2='0.69', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630750826.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='344' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:20:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 909938: <4FGL_J1131.4-0504_daily_bin344> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin344> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 03:06:01 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:06:03 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:03 2021
Terminated at Sat Sep  4 03:20:27 2021
Results reported at Sat Sep  4 03:20:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin344 172.875 -5.073 328492801 328752001 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 :                                   689.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

