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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1394
RA = 172.755, Dec = 38.2565
tmin = 600652801, tmax = 600912001
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='905146', job_status='RUN', time_executed='2021-09-04 02:51:35.735414', time_epoch_executed='1630749095.74' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905146

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905146/ft1_4FGL_J1131.0+3815_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905146/ft1_4FGL_J1131.0+3815_daily_bin1394.fits outfile=/scratch/kocevski/905146/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1394.fits ra=172.755 dec=38.2565 rad=12.0 tmin=600652801.0 tmax=600912001.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 2.82
user 2.61
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.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/905146/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1394.fits evtable="EVENTS" outfile="/scratch/kocevski/905146/ft1_filtered_4FGL_J1131.0+3815_daily_bin1394.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.43
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905146/ft1_filtered_4FGL_J1131.0+3815_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/905146/ltcube_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.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/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.fits
.....................!
real 9.41
user 9.05
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905146/ft1_filtered_4FGL_J1131.0+3815_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/905146/ltcube_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.fits outfile=/scratch/kocevski/905146/expmap_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.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/905146/ltcube_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.fits
.....................!
real 146.96
user 142.85
sys 3.44

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/905146/ft1_filtered_4FGL_J1131.0+3815_daily_bin1394.fits scfile=/scratch/kocevski/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.fits outfile=/scratch/kocevski/905146/cmap_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.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.52
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905146/ft1_filtered_4FGL_J1131.0+3815_daily_bin1394.fits scfile=/scratch/kocevski/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.fits outfile=/scratch/kocevski/905146/cmap_HighResolution_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.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.50
user 0.32
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905146/ft1_filtered_4FGL_J1131.0+3815_daily_bin1394.fits', '/scratch/kocevski/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.fits', expMap='/scratch/kocevski/905146/expmap_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.fits', expCube='/scratch/kocevski/905146/ltcube_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905146/Model_4FGL_J1131.0+3815_daily_bin1394.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/905146/ft1_filtered_4FGL_J1131.0+3815_daily_bin1394.fits
Spacecraft file(s): /scratch/kocevski/905146/ft2_4FGL_J1131.0+3815_daily_bin1394.fits
Exposure map: /scratch/kocevski/905146/expmap_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.fits
Exposure cube: /scratch/kocevski/905146/ltcube_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905146/Model_4FGL_J1131.0+3815_daily_bin1394.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) = 6811.21808578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.033       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6184       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9687       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6641       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.448       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14530E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.472       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.286       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0793       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8486       1.0000         .10000E-03   10000.    
    22 'norm      '    11.978       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7924       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .91171       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .54637       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1417       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91108       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=   6811.193     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4088 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0037       -.42668E-06** at limit **
   2  Prefactor     .10000E-03    3.0134        .19220E-07** at limit **
   3  Prefactor     .10000E-03    1.3771        .41136E-09** at limit **
   4  Prefactor     .10000E-03    13.179        .12051E-06** at limit **
   5  Prefactor     .10000E-03    11.675        .96269E-06** at limit **
   6  Prefactor     31.033        75.895        .74664E-06   -.10960E-04
   7  norm          1.6184        .35907       -.22579E-07   -.18656E-02
   8  Prefactor     2.9682        2.9657        .16118E-06   -.69948E-04
   9  Prefactor     1.6697        19.635        .94498E-06   -.86356E-04
  10  Prefactor     .10000E-03    13.313        .54492E-07** at limit **
  11  Prefactor     .10000E-03    36.180       -.55998E-06** at limit **
  12  norm          .10000E-03    8.5084        .17255E-06** at limit **
  13  norm          10.445        30.522       -.20491E-06   -.12795E-04
  14  Prefactor     .10009E-03    1.7227        .17446E-05** at limit **
  15  Prefactor     30.518        33.896        .19188E-05   -.10500E-03
  16  Prefactor     .10000E-03    3.8162       -.29414E-07** at limit **
  17  norm          11.293        3.5627       -.56829E-06   -.19037E-02
  18  Prefactor     .10000E-03    3.5316        .58420E-07** at limit **
  19  Prefactor     7.0946        6.5213       -.10741E-05   -.89450E-03
  20  Prefactor     .10000E-03    32.865        .11158E-05** at limit **
  21  norm          1.8486        1.0073        .14425E-07   -.59379E-03
  22  norm          11.974        10.203        .64316E-06   -.43556E-04
  23  Prefactor     8.7888        14.317        .95400E-07   -.65357E-04
  24  Prefactor     .92093        3.5013        .40545E-06   -.73314E-04
  25  Prefactor     .10000E-03    15.684       -.90678E-06** at limit **
  26  Prefactor     .10000E-03    21.585        .27532E-06** at limit **
  27  norm          .10000E-03    .32648        .50373E-07** at limit **
  28  Prefactor     .10000E-03    14.536       -.59729E-06** at limit **
  29  Prefactor     .54599        6.5400        .41937E-05   -.71701E-04
  30  Normalizat    1.1420        .17196       -.95860E-06   -.67583E-03
  31  Prefactor     .91095        .19412       -.87328E-06   -.49342E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0325
  norm       = 1.61841
  Prefactor  = 2.96817
  Prefactor  = 1.66969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4454
  Prefactor  = 0.000100093
  Prefactor  = 30.5181
  Prefactor  = 0.0001
  norm       = 11.2925
  Prefactor  = 0.0001
  Prefactor  = 7.09463
  Prefactor  = 0.0001
  norm       = 1.84858
  norm       = 11.9737
  Prefactor  = 8.78882
  Prefactor  = 0.920925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.545989
  Normalizat = 1.14197
  Prefactor  = 0.910946
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.193     FROM HESSE     STATUS=OK           618 CALLS     4706 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1273        .27977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3790        .94583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.033        76.092        .71925E-04   -1.4593    
   7  norm          1.6184        .35832        .21878E-04   -1.5454    
   8  Prefactor     2.9682        2.9623        .13713E-03   -1.5363    
   9  Prefactor     1.6697        19.424        .32695E-03   -1.5450    
  10  Prefactor     .10000E-03    13.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.5516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.445        30.532        .12396E-03   -1.5061    
  14  Prefactor     .10009E-03    7.8370        .17760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.518        34.065        .36291E-03   -1.4603    
  16  Prefactor     .10000E-03    3.8188        .15745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.293        3.5682        .81216E-04   -1.5036    
  18  Prefactor     .10000E-03    3.5380        .15148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0946        6.4942        .15077E-03   -1.5175    
  20  Prefactor     .10000E-03    33.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8486        1.0021        .58104E-04   -1.5436    
  22  norm          11.974        10.204        .57873E-03   -1.5016    
  23  Prefactor     8.7888        14.309        .13518E-03   -1.5115    
  24  Prefactor     .92093        10.420        .27983E-02   -1.5516    
  25  Prefactor     .10000E-03    15.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .41727        .91917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .54599        6.5561        .40714E-03   -1.5560    
  30  Normalizat    1.1420        .20927        .23820E-03   -.88415    
  31  Prefactor     .91095        .23425        .30750E-03   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92919e-08
Minuit parameter uncertainties:
  1  2.29821e-05
  2  6.01913e-06
  3  7.74782e-07
  4  1.47581e-05
  5  7.19599e-05
  6  76.3317
  7  0.358322
  8  2.96249
  9  11.3942
  10  5.41282e-06
  11  5.9473e-05
  12  6.8468e-06
  13  30.5777
  14  0.00170575
  15  34.0865
  16  2.07186e-06
  17  3.56824
  18  6.82108e-06
  19  6.49487
  20  0.000170628
  21  1.00208
  22  10.2053
  23  14.3143
  24  6.1964
  25  7.01807e-05
  26  4.42816e-05
  27  2.62967e-06
  28  3.89462e-05
  29  3.7841
  30  0.209426
  31  0.234513
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.129e+01  3.568e+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:  9.109e-01  2.345e-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.142e+00  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.82
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 4.82e-08
Energy Flux (Fixed Index): 4.78e-05 +/- 1.51e-05

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) = 6810.07433609
delta logL = 1.11856776934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6810.07355222
delta logL = 1.11935164313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.617       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0908       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87487       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=   6810.074     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.617        5.2945        .99003E-04    .14171E-02
   2  alpha         2.0907        .30016        .84478E-02    .79325E-04
   3  Normalizat    1.1862        .19925        .23464E-03    .95595E-04
   4  Prefactor     .87487        .23203        .31315E-03    .66473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6167
  alpha      = 2.09068
  Normalizat = 1.18616
  Prefactor  = 0.874868
 **********
 **   18 **HESSE 
 **********

 FCN=   6810.074     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.617        5.2528        .19801E-04   -1.4917    
   2  alpha         2.0907        .29769        .33791E-03   -.16447    
   3  Normalizat    1.1862        .19938        .93856E-05   -.87032    
   4  Prefactor     .87487        .23222        .12526E-04   -.97025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06727e-10
Minuit parameter uncertainties:
  1  5.25296
  2  0.298419
  3  0.199509
  4  0.232482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905146': 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) = 6810.07355053
delta logL = 1.1193533312

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.562e+01  5.253e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.091e+00  2.984e-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:  8.749e-01  2.325e-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.186e+00  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.39
Ra Dec: 172.755 38.257
Photon Index (Free Index): 2.09 +/- 0.30
Photon Flux (Free Index): 1.13e-07 +/- 4.51e-08
Energy Flux (Free Index): 5.80e-05 +/- 2.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/905146/cmap_HighResolution_600652801_600912001_4FGL_J1131.0+3815_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='5.80e-05', photon_flux_error='4.82e-08', dlogl='1.12e+00', energy_flux='4.78e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-04 03:03:21.114264', photon_index_error2='0.30', photon_index2='2.09', ts='28.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='1.14', time_epoch_completed='1630749801.11', return_code='0', job_id='905146', GAL2='0.87', EG2='1.19', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='4.51e-08', ts2='31.39', photon_index='2.55' WHERE bin_id='1394' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:03:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 905146: <4FGL_J1131.0+3815_daily_bin1394> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1394> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 02:51:09 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:51:24 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:51:24 2021
Terminated at Sat Sep  4 03:03:21 2021
Results reported at Sat Sep  4 03:03:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1394 172.755 38.2565 600652801 600912001 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 :                                   694.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            732 sec.

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

