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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin203
RA = 172.875, Dec = -5.073
tmin = 291945601, tmax = 292204801
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='908413', job_status='RUN', time_executed='2021-09-04 03:05:02.921802', time_epoch_executed='1630749902.92' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908413

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908413/ft1_4FGL_J1131.4-0504_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908413/ft2_4FGL_J1131.4-0504_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908413/ft1_4FGL_J1131.4-0504_daily_bin203.fits outfile=/scratch/kocevski/908413/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin203.fits ra=172.875 dec=-5.073 rad=12.0 tmin=291945601.0 tmax=292204801.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.81
user 3.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908413/ft1_filtered_4FGL_J1131.4-0504_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/908413/ft2_4FGL_J1131.4-0504_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/908413/ltcube_291945601_292204801_4FGL_J1131.4-0504_daily_bin203.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/908413/ft2_4FGL_J1131.4-0504_daily_bin203.fits
.....................!
real 11.74
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908413/ft1_filtered_4FGL_J1131.4-0504_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/908413/ft2_4FGL_J1131.4-0504_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/908413/ltcube_291945601_292204801_4FGL_J1131.4-0504_daily_bin203.fits outfile=/scratch/kocevski/908413/expmap_291945601_292204801_4FGL_J1131.4-0504_daily_bin203.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/908413/ltcube_291945601_292204801_4FGL_J1131.4-0504_daily_bin203.fits
.....................!
real 191.86
user 186.45
sys 5.03

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/908413/ft1_filtered_4FGL_J1131.4-0504_daily_bin203.fits scfile=/scratch/kocevski/908413/ft2_4FGL_J1131.4-0504_daily_bin203.fits outfile=/scratch/kocevski/908413/cmap_291945601_292204801_4FGL_J1131.4-0504_daily_bin203.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908413/ft1_filtered_4FGL_J1131.4-0504_daily_bin203.fits scfile=/scratch/kocevski/908413/ft2_4FGL_J1131.4-0504_daily_bin203.fits outfile=/scratch/kocevski/908413/cmap_HighResolution_291945601_292204801_4FGL_J1131.4-0504_daily_bin203.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54949       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.376       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .18186E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.643       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10895E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9599       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.131       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.080       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.181       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0689       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90043       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=   5663.129     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2482 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54929        .55598       -.63751E-07   -.10327E-02
   2  norm          .10000E-03    3.8372        .29639E-07** at limit **
   3  Prefactor     .10000E-03    3.7592        .49022E-07** at limit **
   4  Prefactor     23.386        17.369       -.40730E-05    .71837E-04
   5  Prefactor     .10000E-03    13.987       -.43756E-05** at limit **
   6  Prefactor     .10000E-03    1.7440        .15609E-06** at limit **
   7  Prefactor     .10000E-03    33.186        .11957E-05** at limit **
   8  norm          .10000E-03    8.0989        .24932E-06** at limit **
   9  Prefactor     .10000E-03    1.3641        .18732E-06** at limit **
  10  Prefactor     19.648        12.243        .94089E-06    .12668E-04
  11  norm          .10000E-03    10.175       -.47102E-06** at limit **
  12  Prefactor     .10000E-03    1.4954        .50160E-07** at limit **
  13  Prefactor     .10000E-03    38.927       -.26753E-05** at limit **
  14  Prefactor     4.8463        74.063       -.20775E-04   -.16349E-04
  15  norm          1.3131        5.4966        .27365E-05   -.87284E-03
  16  Prefactor     11.132        5.4129        .43481E-06   -.42491E-03
  17  Prefactor     .10000E-03    12.696        .47230E-05** at limit **
  18  Prefactor     .10000E-03    5.9193        .12768E-06** at limit **
  19  Prefactor     .10000E-03    15.273        .55438E-05** at limit **
  20  Prefactor     .10000E-03    3.2374       -.13997E-06** at limit **
  21  Prefactor     33.081        17.512       -.16466E-05   -.51487E-04
  22  Prefactor     .10000E-03    13.964       -.51876E-05** at limit **
  23  Prefactor     25.159        22.861        .13088E-04   -.65385E-05
  24  Normalizat    1.0690        .21690        .20150E-06   -.42889E-04
  25  Prefactor     .90051        .15070       -.45219E-06   -.78600E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.54929
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3857
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6482
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.84633
  norm       = 1.31313
  Prefactor  = 11.1316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.0807
  Prefactor  = 0.0001
  Prefactor  = 25.1591
  Normalizat = 1.06895
  Prefactor  = 0.900512
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.129     FROM HESSE     STATUS=OK           427 CALLS     2909 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54929        .52459        .54071E-03   -1.5560    
   2  norm          .10000E-03    3.8613        .14394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7665        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.386        17.396        .82848E-04   -1.4740    
   5  Prefactor     .10000E-03    14.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7534        .97024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.4446        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3706        .85818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.648        12.229        .90370E-04   -1.4821    
  11  norm          .10000E-03    10.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5718        .17648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8463        74.509        .18058E-03   -1.5268    
  15  norm          1.3131        5.1879        .32018E-03   -1.5479    
  16  Prefactor     11.132        5.3587        .11037E-03   -1.5041    
  17  Prefactor     .10000E-03    12.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9204        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2507        .13224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.081        17.522        .69670E-04   -1.4557    
  22  Prefactor     .10000E-03    13.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.159        22.883        .79829E-04   -1.4704    
  24  Normalizat    1.0690        .25393        .28500E-03   -.90755    
  25  Prefactor     .90051        .17803        .22097E-03   -.96123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62806e-09
Minuit parameter uncertainties:
  1  0.524593
  2  1.00159e-05
  3  4.13758e-06
  4  17.3997
  5  0.000226867
  6  7.54692e-06
  7  7.41762e-05
  8  4.73406e-05
  9  3.56628e-06
  10  12.2308
  11  2.51152e-06
  12  4.35763e-06
  13  2.66353e-05
  14  38.0611
  15  5.18967
  16  5.35895
  17  1.02258e-05
  18  7.37201e-06
  19  6.77709e-06
  20  1.21044e-05
  21  17.5247
  22  1.74095e-06
  23  22.8909
  24  0.254218
  25  0.178144
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  2.512e-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:  9.005e-01  1.781e-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.069e+00  2.542e-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: 3.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/908413/likelihoodResults_291945601_292204801_4FGL_J1131.4-0504_daily_bin203.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) = 5663.12922817
delta logL = -0.000466590168799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5663.12876187
delta logL = -2.84553607344e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10281E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7002       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90061       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=   5663.129     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      245 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    523.01        .18142E-01** at limit **
   2  alpha         1.8477        2.7861        .16528        .13757E-08
   3  Normalizat    1.0690        .35917E-01    .28500E-03    .63266E-04
   4  Prefactor     .90051        .25943E-01    .22097E-03    .78870E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84773
  Normalizat = 1.06895
  Prefactor  = 0.900512
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.129     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.902        .26318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8477        3.7704        .66111E-02   -.26396    
   3  Normalizat    1.0690        .24376        .11400E-04   -.90755    
   4  Prefactor     .90051        .17613        .88390E-05   -.96123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31155e-12
Minuit parameter uncertainties:
  1  4.56476e-07
  2  679.671
  3  0.244011
  4  0.176238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908413': 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) = 5663.12876057
delta logL = 1.01453770185e-06

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  4.565e-07  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  1.848e+00  6.797e+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:  9.005e-01  1.762e-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.069e+00  2.440e-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/908413/cmap_HighResolution_291945601_292204801_4FGL_J1131.4-0504_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2021-09-04 03:16:21.005252', job_id='908413', GAL2='0.90', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630750581.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='203' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 908413: <4FGL_J1131.4-0504_daily_bin203> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin203 172.875 -5.073 291945601 292204801 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 :                                   676.19 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             274.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

