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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin733
RA = 172.875, Dec = -5.073
tmin = 429321601, tmax = 429580801
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='913102', job_status='RUN', time_executed='2021-09-04 03:18:58.721552', time_epoch_executed='1630750738.72' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913102/ft1_4FGL_J1131.4-0504_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913102/ft2_4FGL_J1131.4-0504_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913102/ft1_4FGL_J1131.4-0504_daily_bin733.fits outfile=/scratch/kocevski/913102/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin733.fits ra=172.875 dec=-5.073 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.48
user 6.22
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913102/ft1_filtered_4FGL_J1131.4-0504_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/913102/ft2_4FGL_J1131.4-0504_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/913102/ltcube_429321601_429580801_4FGL_J1131.4-0504_daily_bin733.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/913102/ft2_4FGL_J1131.4-0504_daily_bin733.fits
.....................!
real 13.84
user 12.76
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913102/ft1_filtered_4FGL_J1131.4-0504_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/913102/ft2_4FGL_J1131.4-0504_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/913102/ltcube_429321601_429580801_4FGL_J1131.4-0504_daily_bin733.fits outfile=/scratch/kocevski/913102/expmap_429321601_429580801_4FGL_J1131.4-0504_daily_bin733.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/913102/ltcube_429321601_429580801_4FGL_J1131.4-0504_daily_bin733.fits
.....................!
real 192.55
user 186.13
sys 4.89

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/913102/ft1_filtered_4FGL_J1131.4-0504_daily_bin733.fits scfile=/scratch/kocevski/913102/ft2_4FGL_J1131.4-0504_daily_bin733.fits outfile=/scratch/kocevski/913102/cmap_429321601_429580801_4FGL_J1131.4-0504_daily_bin733.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=172.875 yref=-5.073 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913102/ft1_filtered_4FGL_J1131.4-0504_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/913102/ft2_4FGL_J1131.4-0504_daily_bin733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913102/Model_4FGL_J1131.4-0504_daily_bin733.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/913102/ft1_filtered_4FGL_J1131.4-0504_daily_bin733.fits.....................!
real 42.15
user 40.48
sys 1.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97896       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.062       1.0000         .10000E-03   10000.    
     8 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11491E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11597E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.281       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.653       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    92.552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0243       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43932E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.347       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1344       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87500       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=   3780.657     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2909 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97895        .81346       -.31625E-07    .10307E-04
   2  norm          .10000E-03    2.5965       -.20370E-08** at limit **
   3  Prefactor     10.352        11.688       -.79388E-07    .67439E-05
   4  Prefactor     .10000E-03    18.350        .88590E-06** at limit **
   5  Prefactor     18.054        21.588        .28865E-06    .11319E-03
   6  Prefactor     .10000E-03    6.1856        .21157E-07** at limit **
   7  Prefactor     54.055        59.750       -.13714E-05   -.18495E-04
   8  norm          .10000E-03    10.418       -.13992E-05** at limit **
   9  Prefactor     .10009E-03    5.1327       -.65351E-06** at limit **
  10  Prefactor     .10000E-03    28.821        .45282E-06** at limit **
  11  norm          .10000E-03    29.542       -.12963E-06** at limit **
  12  Prefactor     .10000E-03    2.4911       -.14210E-06** at limit **
  13  Prefactor     35.271        38.722       -.94892E-07    .60225E-04
  14  Prefactor     .10000E-03    17.135        .94654E-07** at limit **
  15  norm          .10000E-03    4.5459       -.25796E-06** at limit **
  16  Prefactor     .10000E-03    3.3151       -.57521E-06** at limit **
  17  Prefactor     10.659        16.829       -.11623E-06   -.21501E-04
  18  Prefactor     .10000E-03    10.357        .13414E-05** at limit **
  19  Prefactor     92.521        69.222       -.13651E-06   -.20429E-03
  20  Prefactor     8.0257        10.273        .11573E-05   -.83106E-04
  21  Prefactor     .10058E-03    21.912        .90308E-06** at limit **
  22  Prefactor     .10000E-03    21.433       -.14219E-05** at limit **
  23  Prefactor     36.357        32.539        .12673E-05   -.11761E-04
  24  Normalizat    1.1343        .27185        .15493E-05    .25830E-04
  25  Prefactor     .87506        .18419        .62435E-06    .53018E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.978948
  norm       = 0.0001
  Prefactor  = 10.3523
  Prefactor  = 0.0001
  Prefactor  = 18.0541
  Prefactor  = 0.0001
  Prefactor  = 54.0552
  norm       = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.2711
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6587
  Prefactor  = 0.0001
  Prefactor  = 92.5212
  Prefactor  = 8.02574
  Prefactor  = 0.000100578
  Prefactor  = 0.0001
  Prefactor  = 36.3573
  Normalizat = 1.13428
  Prefactor  = 0.875061
 **********
 **   18 **HESSE 
 **********

 FCN=   3780.657     FROM HESSE     STATUS=OK           431 CALLS     3340 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97895        .82658        .46888E-04   -1.5510    
   2  norm          .10000E-03    2.5971        .96766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.352        11.742        .12453E-03   -1.5064    
   4  Prefactor     .10000E-03    18.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.054        21.614        .94242E-04   -1.4858    
   6  Prefactor     .10000E-03    6.2365        .14906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.055        59.784        .54552E-04   -1.4236    
   8  norm          .10000E-03    10.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10009E-03    10.463        .43200E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    29.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0038        .18816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.271        38.804        .67468E-04   -1.4519    
  14  Prefactor     .10000E-03    17.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.5806        .12805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3703        .10929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.659        16.823        .12275E-03   -1.5055    
  18  Prefactor     .10000E-03    10.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     92.521        69.696        .20886E-03   -1.3781    
  20  Prefactor     8.0257        10.209        .70770E-03   -1.5141    
  21  Prefactor     .10058E-03    121.59        .49860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.357        32.479        .66474E-04   -1.4501    
  24  Normalizat    1.1343        .31761        .28683E-03   -.88659    
  25  Prefactor     .87506        .21549        .22737E-03   -.97018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93299e-09
Minuit parameter uncertainties:
  1  0.826594
  2  8.91976e-07
  3  11.7444
  4  2.4433e-05
  5  21.6229
  6  1.40856e-05
  7  59.8503
  8  7.90516e-05
  9  0.00195341
  10  7.20895e-05
  11  4.55144e-06
  12  8.03586e-05
  13  38.8319
  14  6.70765e-07
  15  8.34812e-06
  16  8.44664e-06
  17  16.8306
  18  5.36427e-05
  19  69.7574
  20  10.2111
  21  0.0168068
  22  9.48713e-05
  23  32.4944
  24  0.318149
  25  0.2157
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  4.551e-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:  8.751e-01  2.157e-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.134e+00  3.181e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913102/likelihoodResults_429321601_429580801_4FGL_J1131.4-0504_daily_bin733.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) = 3780.65728679
delta logL = -0.000160779232829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3780.65712978
delta logL = -3.77469950763e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6615       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87506       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3780.657     FROM MIGRAD    STATUS=FAILED       107 CALLS      278 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    871.80        .18142E-01** at limit **
   2  alpha         1.9947        3.8690        .19594        .10310E-06
   3  Normalizat    1.1343        .31818E-01    .28683E-03    .74397E-04
   4  Prefactor     .87506        .22594E-01    .22737E-03    .91550E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3780.657     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      458 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    871.80        .10815E-02** at limit **
   2  alpha         1.9947        3.8690        .36235E-06    .10310E-06
   3  Normalizat    1.1343        .31818E-01    .63071E-08    .74397E-04
   4  Prefactor     .87506        .22594E-01    .12922E-08    .91550E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3780.657     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      486 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    47.671        .36285E-02** at limit **
   2  alpha         1.9798        3.9999        .78375E-02    .46853E-07
   3  Normalizat    1.1343        .30182        .11473E-04    .73822E-04
   4  Prefactor     .87506        .21441        .90950E-05    .90750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010001
  alpha      = 1.97977
  Normalizat = 1.13428
  Prefactor  = 0.875061
 **********
 **   18 **HESSE 
 **********

 FCN=   3780.657     FROM HESSE     STATUS=OK            23 CALLS      509 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    42.650        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9798        2.6135        .15675E-02   -.20963    
   3  Normalizat    1.1343        .30225        .22946E-05   -.88659    
   4  Prefactor     .87506        .21470        .18190E-05   -.97018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78283e-10
Minuit parameter uncertainties:
  1  0.00130941
  2  821.179
  3  0.302718
  4  0.21491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913102': 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) = 3780.65712549
delta logL = 5.13165559823e-07

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.309e-03  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  1.980e+00  8.212e+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:  8.751e-01  2.149e-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.134e+00  3.027e-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/913102/cmap_HighResolution_429321601_429580801_4FGL_J1131.4-0504_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-04 03:29:13.784765', job_id='913102', GAL2='0.88', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630751353.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='733' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:29:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 913102: <4FGL_J1131.4-0504_daily_bin733> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin733> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 03:16:34 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:16:35 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:35 2021
Terminated at Sat Sep  4 03:29:14 2021
Results reported at Sat Sep  4 03:29:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin733 172.875 -5.073 429321601 429580801 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 :                                   605.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            760 sec.

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

