/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 167 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 = 7395
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1131.0+3815_daily_bin94
RA = 172.755, Dec = 38.2565
tmin = 263692801, tmax = 263952001
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='895493', job_status='RUN', time_executed='2021-09-04 02:29:13.434548', time_epoch_executed='1630747753.43' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895493

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895493/ft1_4FGL_J1131.0+3815_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895493/ft1_4FGL_J1131.0+3815_daily_bin94.fits outfile=/scratch/kocevski/895493/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin94.fits ra=172.755 dec=38.2565 rad=12.0 tmin=263692801.0 tmax=263952001.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 1.40
user 1.19
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.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/895493/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.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.44
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/895493/ltcube_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.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/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits
.....................!
real 12.98
user 12.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/895493/ltcube_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.fits outfile=/scratch/kocevski/895493/expmap_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.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/895493/ltcube_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.fits
.....................!
real 157.74
user 153.04
sys 3.91

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1131.0+3815 @ 172.755 38.2565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.fits scfile=/scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits outfile=/scratch/kocevski/895493/cmap_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.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.755 yref=38.2565 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.46
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.fits scfile=/scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits outfile=/scratch/kocevski/895493/cmap_HighResolution_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.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.755 yref=38.2565 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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/895493/Model_4FGL_J1131.0+3815_daily_bin94.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/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.fits.....................!
real 43.24
user 41.94
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.fits', '/scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits', expMap='/scratch/kocevski/895493/expmap_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.fits', expCube='/scratch/kocevski/895493/ltcube_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/895493/Model_4FGL_J1131.0+3815_daily_bin94.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1131.0+3815'

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.699e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/895493/ft1_filtered_4FGL_J1131.0+3815_daily_bin94.fits
Spacecraft file(s): /scratch/kocevski/895493/ft2_4FGL_J1131.0+3815_daily_bin94.fits
Exposure map: /scratch/kocevski/895493/expmap_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.fits
Exposure cube: /scratch/kocevski/895493/ltcube_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/895493/Model_4FGL_J1131.0+3815_daily_bin94.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) = 5871.70439876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.233       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8653       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9150       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.257       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15464E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40436E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.744       1.0000         .10000E-03   10000.    
    13 'norm      '    18.448       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68084E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11176E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68391E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4880       1.0000         .10000E-03   10000.    
    21 'norm      '    .52363       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6179       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .65310       1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.707       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3352       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5871.621     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4278 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.001        26.245       -.45500E-09   -.68193E-06
   2  Prefactor     13.602        6.1486       -.39695E-05    .14178E-05
   3  Prefactor     .10000E-03    1.9823       -.34587E-07** at limit **
   4  Prefactor     12.233        23.932        .16793E-08   -.90599E-05
   5  Prefactor     8.8736        24.331       -.22219E-05   -.20506E-04
   6  Prefactor     .10000E-03    28.540        .52931E-06** at limit **
   7  norm          1.5710        .41245       -.34058E-08   -.27040E-02
   8  Prefactor     2.9151        3.6370       -.24948E-06   -.44738E-03
   9  Prefactor     12.263        18.617       -.20840E-06   -.22043E-03
  10  Prefactor     .10044E-03    11.294        .20551E-05** at limit **
  11  Prefactor     .10001E-03    515.19       -.52342E-04** at limit **
  12  norm          11.743        12.488       -.84371E-06   -.10960E-03
  13  norm          18.445        32.321        .67515E-06    .53214E-05
  14  Prefactor     .10000E-03    1.1768       -.62843E-07** at limit **
  15  Prefactor     .10000E-03    20.593       -.89069E-07** at limit **
  16  Prefactor     .10004E-03    18.529       -.12657E-05** at limit **
  17  norm          2.7021        2.1921       -.90373E-07   -.44093E-03
  18  Prefactor     .10000E-03    12.880        .37580E-06** at limit **
  19  Prefactor     .10582E-03    2.8333        .88120E-06** at limit **
  20  Prefactor     9.4858        33.510        .39931E-06   -.97498E-05
  21  norm          .52364        .89918       -.16272E-06   -.18566E-03
  22  norm          2.6179        7.0235        .57857E-05   -.23460E-03
  23  Prefactor     .10080E-03    22.527       -.20675E-05** at limit **
  24  Prefactor     .10000E-03    1.4377       -.23457E-07** at limit **
  25  Prefactor     .10000E-03    76.783       -.15144E-04** at limit **
  26  Prefactor     .10000E-03    7.0196       -.86848E-07** at limit **
  27  norm          .65310        .94903       -.67789E-07   -.11851E-03
  28  Prefactor     31.710        30.031        .18170E-06    .82597E-04
  29  Prefactor     .10000E-03    5.2979        .35786E-07** at limit **
  30  Normalizat    1.3353        .18602        .71257E-06   -.11964E-04
  31  Prefactor     .77177        .21049       -.30459E-06    .36568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0014
  Prefactor  = 13.6019
  Prefactor  = 0.0001
  Prefactor  = 12.2332
  Prefactor  = 8.87359
  Prefactor  = 0.0001
  norm       = 1.571
  Prefactor  = 2.91506
  Prefactor  = 12.2627
  Prefactor  = 0.000100438
  Prefactor  = 0.000100006
  norm       = 11.7431
  norm       = 18.4448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  norm       = 2.70209
  Prefactor  = 0.000100001
  Prefactor  = 0.000105822
  Prefactor  = 9.48582
  norm       = 0.523643
  norm       = 2.61792
  Prefactor  = 0.000100805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.653097
  Prefactor  = 31.7098
  Prefactor  = 0.0001
  Normalizat = 1.33531
  Prefactor  = 0.771768
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.621     FROM HESSE     STATUS=OK           646 CALLS     4924 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.001        26.224        .71962E-04   -1.4594    
   2  Prefactor     13.602        6.1763        .54303E-03   -1.4970    
   3  Prefactor     .10000E-03    1.9837        .10528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.233        23.920        .11453E-03   -1.5008    
   5  Prefactor     8.8736        24.333        .13462E-03   -1.5112    
   6  Prefactor     .10000E-03    28.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5710        .40539        .23054E-04   -1.5457    
   8  Prefactor     2.9151        3.6326        .15646E-03   -1.5366    
   9  Prefactor     12.263        18.200        .11442E-03   -1.5007    
  10  Prefactor     .10044E-03    84.364        .46672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    527.80        .42517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.743        12.460        .11690E-03   -1.5022    
  13  norm          18.445        32.323        .93249E-04   -1.4849    
  14  Prefactor     .10000E-03    5.1575        .15730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    91.364        .57510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7021        2.1613        .96956E-04   -1.5379    
  18  Prefactor     .10000E-03    62.590        .48278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10582E-03    7.5049        .40148E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4858        33.329        .13010E-03   -1.5092    
  21  norm          .52364        .89349        .45468E-04   -1.5563    
  22  norm          2.6179        6.9009        .25208E-03   -1.5384    
  23  Prefactor     .10080E-03    27.565        .96747E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.4440        .89723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    77.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.0303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .65310        .94849        .47523E-04   -1.5546    
  28  Prefactor     31.710        30.048        .71158E-04   -1.4581    
  29  Prefactor     .10000E-03    5.3461        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3353        .22063        .22058E-03   -.82518    
  31  Prefactor     .77177        .24799        .33121E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73281e-09
Minuit parameter uncertainties:
  1  26.234
  2  6.17661
  3  4.68675e-06
  4  23.9385
  5  24.3599
  6  1.08859e-05
  7  0.405392
  8  3.63289
  9  18.2078
  10  0.0121693
  11  0.00351743
  12  12.4629
  13  32.3534
  14  3.64823e-06
  15  4.97779e-07
  16  0.00365741
  17  2.16139
  18  0.000421223
  19  0.0132222
  20  33.3941
  21  0.893514
  22  6.90296
  23  0.0094241
  24  6.64358e-07
  25  0.000178878
  26  1.88022e-06
  27  0.948511
  28  30.062
  29  3.60855e-06
  30  0.220787
  31  0.248349
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  2.702e+00  2.161e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  7.718e-01  2.483e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.335e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 9.15e-06

TS (Fixed Index): 2.55
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895493/likelihoodResults_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.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) = 5871.5747408
delta logL = 0.0466524921567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.5719566
delta logL = 0.0494366947987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2922       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3294       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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=   5871.572     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      274 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2920        3.1796        .10692E-03    .11896E-02
   2  alpha         2.3295        .69569        .14007E-01    .86054E-04
   3  Normalizat    1.3410        .20857        .22020E-03   -.12640E-03
   4  Prefactor     .76678        .24557        .33216E-03   -.11623E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.29204
  alpha      = 2.32951
  Normalizat = 1.34099
  Prefactor  = 0.76678
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.572     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2920        3.0804        .42769E-05   -1.5345    
   2  alpha         2.3295        .67445        .56030E-03   -.68250E-01
   3  Normalizat    1.3410        .20866        .44040E-04   -.82351    
   4  Prefactor     .76678        .24569        .13286E-04   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76083e-10
Minuit parameter uncertainties:
  1  3.08058
  2  0.682953
  3  0.208789
  4  0.246042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895493': 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) = 5871.57195657
delta logL = 0.0494367159818

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  3.292e+00  3.081e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.330e+00  6.830e-01  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  7.668e-01  2.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.341e+00  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 172.755 38.257
Photon Index (Free Index): 2.33 +/- 0.68
Photon Flux (Free Index): 3.25e-08 +/- 2.95e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.06e-05

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/895493/cmap_HighResolution_263692801_263952001_4FGL_J1131.0+3815_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='1.25e-05', photon_flux_error='2.92e-08', dlogl='4.94e-02', energy_flux='1.14e-05', photon_flux2='3.25e-08', job_status='DONE', time_completed='2021-09-04 02:42:41.530435', photon_index_error2='0.68', photon_index2='2.33', ts='2.55', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.06e-05', EG='1.34', time_epoch_completed='1630748561.53', return_code='0', job_id='895493', GAL2='0.77', EG2='1.34', return_code2='0', energy_flux_error='9.15e-06', photon_flux_error2='2.95e-08', ts2='2.64', photon_index='2.55' WHERE bin_id='94' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:42:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 895493: <4FGL_J1131.0+3815_daily_bin94> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin94> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 02:26:12 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:26:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 02:26:18 2021
Terminated at Sat Sep  4 02:42:42 2021
Results reported at Sat Sep  4 02:42:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin94 172.755 38.2565 263692801 263952001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.0+3815 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   806.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            990 sec.

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

