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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin293
RA = 172.755, Dec = 38.2565
tmin = 315273601, tmax = 315532801
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='895781', job_status='RUN', time_executed='2021-09-04 02:27:11.170062', time_epoch_executed='1630747631.17' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895781/ft1_4FGL_J1131.0+3815_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895781/ft2_4FGL_J1131.0+3815_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895781/ft1_4FGL_J1131.0+3815_daily_bin293.fits outfile=/scratch/kocevski/895781/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin293.fits ra=172.755 dec=38.2565 rad=12.0 tmin=315273601.0 tmax=315532801.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.71
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895781/ft1_filtered_4FGL_J1131.0+3815_daily_bin293.fits" evtable="EVENTS" scfile=/scratch/kocevski/895781/ft2_4FGL_J1131.0+3815_daily_bin293.fits sctable="SC_DATA" outfile=/scratch/kocevski/895781/ltcube_315273601_315532801_4FGL_J1131.0+3815_daily_bin293.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/895781/ft2_4FGL_J1131.0+3815_daily_bin293.fits
.....................!
real 16.20
user 15.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895781/ft1_filtered_4FGL_J1131.0+3815_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/895781/ft2_4FGL_J1131.0+3815_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/895781/ltcube_315273601_315532801_4FGL_J1131.0+3815_daily_bin293.fits outfile=/scratch/kocevski/895781/expmap_315273601_315532801_4FGL_J1131.0+3815_daily_bin293.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/895781/ltcube_315273601_315532801_4FGL_J1131.0+3815_daily_bin293.fits
.....................!
real 193.72
user 188.30
sys 5.02

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/895781/ft1_filtered_4FGL_J1131.0+3815_daily_bin293.fits scfile=/scratch/kocevski/895781/ft2_4FGL_J1131.0+3815_daily_bin293.fits outfile=/scratch/kocevski/895781/cmap_315273601_315532801_4FGL_J1131.0+3815_daily_bin293.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895781/ft1_filtered_4FGL_J1131.0+3815_daily_bin293.fits scfile=/scratch/kocevski/895781/ft2_4FGL_J1131.0+3815_daily_bin293.fits outfile=/scratch/kocevski/895781/cmap_HighResolution_315273601_315532801_4FGL_J1131.0+3815_daily_bin293.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10911E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    65.694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.678       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .66721E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .17757E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.992       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0918       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9221       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .48308E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2849       1.0000         .10000E-03   10000.    
    22 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10232       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11481E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.548       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.3659       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .45261       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5467       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=   4332.544     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4210 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.528       -.22969E-04** at limit **
   2  Prefactor     .10000E-03    3.8256        .10276E-06** at limit **
   3  Prefactor     9.8602        8.0567       -.10898E-05    .16693E-03
   4  Prefactor     65.691        44.632        .13844E-06    .37680E-04
   5  Prefactor     .10000E-03    17.948       -.49232E-07** at limit **
   6  Prefactor     .10000E-03    31.378       -.53163E-08** at limit **
   7  norm          1.1004        .38044        .39728E-07   -.55162E-03
   8  Prefactor     .10000E-03    4.0811        .24647E-07** at limit **
   9  Prefactor     11.698        17.185       -.23198E-05   -.17233E-03
  10  Prefactor     .10000E-03    5.7142        .28267E-07** at limit **
  11  Prefactor     .10000E-03    45.737        .61913E-05** at limit **
  12  norm          .10011E-03    19.313        .11199E-05** at limit **
  13  norm          .10000E-03    240.12       -.12518E-04** at limit **
  14  Prefactor     .10000E-03    1.4459        .17899E-07** at limit **
  15  Prefactor     .10000E-03    52.767        .10232E-04** at limit **
  16  Prefactor     26.993        25.389       -.20299E-07   -.30779E-04
  17  norm          2.0922        2.2751       -.10357E-06   -.82023E-03
  18  Prefactor     .10000E-03    5.7774        .12482E-07** at limit **
  19  Prefactor     5.9235        6.3988       -.49976E-06   -.27652E-03
  20  Prefactor     .10001E-03    374.93        .94930E-04** at limit **
  21  norm          3.2864        1.5768       -.18363E-06   -.29554E-02
  22  norm          .10000E-03    7.3740        .14681E-08** at limit **
  23  Prefactor     .10251E-03    30.761       -.12857E-05** at limit **
  24  Prefactor     .10000E-03    3.0483        .37265E-08** at limit **
  25  Prefactor     .10000E-03    45.571        .69957E-05** at limit **
  26  Prefactor     .10000E-03    6.8165        .53454E-08** at limit **
  27  norm          13.549        2.8422       -.10110E-07    .20079E-03
  28  Prefactor     .10000E-03    14.516        .55775E-08** at limit **
  29  Prefactor     7.3641        7.0955        .54477E-05    .38047E-04
  30  Normalizat    .45275        .22007       -.33584E-06   -.30302E-03
  31  Prefactor     1.5469        .26233       -.52637E-07   -.29484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.86017
  Prefactor  = 65.6908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10037
  Prefactor  = 0.0001
  Prefactor  = 11.6982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100113
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9931
  norm       = 2.09225
  Prefactor  = 0.0001
  Prefactor  = 5.92352
  Prefactor  = 0.000100007
  norm       = 3.2864
  norm       = 0.0001
  Prefactor  = 0.000102514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.5491
  Prefactor  = 0.0001
  Prefactor  = 7.3641
  Normalizat = 0.452755
  Prefactor  = 1.54689
 **********
 **   18 **HESSE 
 **********

 FCN=   4332.544     FROM HESSE     STATUS=OK           622 CALLS     4832 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.127        .24887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8602        8.0320        .12758E-03   -1.5080    
   4  Prefactor     65.691        44.436        .49515E-04   -1.4085    
   5  Prefactor     .10000E-03    17.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1004        .38054        .22691E-04   -1.5498    
   8  Prefactor     .10000E-03    4.2418        .25943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.698        16.324        .11723E-03   -1.5024    
  10  Prefactor     .10000E-03    5.7163        .15366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10011E-03    147.97        .51799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    241.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4744        .77175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.993        25.337        .77109E-04   -1.4668    
  17  norm          2.0922        2.2655        .99288E-04   -1.5419    
  18  Prefactor     .10000E-03    5.7812        .15449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9235        6.3793        .16289E-03   -1.5221    
  20  Prefactor     .10001E-03    379.21        .38499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2864        1.5726        .53726E-04   -1.5345    
  22  norm          .10000E-03    7.3917        .17457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10251E-03    38.450        .99431E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.0923        .11220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    45.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.8190        .16785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.549        2.8421        .48590E-04   -1.4972    
  28  Prefactor     .10000E-03    14.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.3641        7.1072        .14778E-03   -1.5165    
  30  Normalizat    .45275        .25002        .34338E-03   -1.1466    
  31  Prefactor     1.5469        .30404        .24717E-03   -.76235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98084e-09
Minuit parameter uncertainties:
  1  0.000209389
  2  5.51174e-05
  3  8.03288
  4  44.4585
  5  1.38648e-05
  6  2.54474e-06
  7  0.380538
  8  5.19469e-06
  9  16.3305
  10  6.11429e-06
  11  2.05513e-06
  12  0.0082046
  13  0.000173341
  14  1.52217e-06
  15  1.90106e-05
  16  25.3474
  17  2.26556
  18  3.09211e-06
  19  6.38
  20  0.00326943
  21  1.57261
  22  1.90984e-06
  23  0.019676
  24  3.98898e-07
  25  4.62136e-06
  26  5.67002e-08
  27  2.8421
  28  1.0062e-05
  29  7.10798
  30  0.250644
  31  0.304401
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  2.092e+00  2.266e+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:  1.547e+00  3.044e-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:  4.528e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 8.86e-06 +/- 9.59e-06

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

Saving results to:
/scratch/kocevski/895781/likelihoodResults_315273601_315532801_4FGL_J1131.0+3815_daily_bin293.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) = 4332.1853322
delta logL = 0.358172735338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4332.165621
delta logL = 0.377883939305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6368       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5877       1.0000          .0000       5.0000    
     3 'Normalizat'    .47128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5348       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.

 FCN=   4332.166     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6379        3.3512        .62776E-02   -.10217E-03
   2  alpha         1.5875        .96403        .45301       -.12467E-04
   3  Normalizat    .47132        .20646        .76084E-01    .27832E-04
   4  Prefactor     1.5348        .26030        .56096E-01   -.13496E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.63794
  alpha      = 1.58753
  Normalizat = 0.471325
  Prefactor  = 1.53478
 **********
 **   18 **HESSE 
 **********

 FCN=   4332.166     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6379        3.0086        .11371E-03   -1.5383    
   2  alpha         1.5875        .98673        .23352E-01   -.37362    
   3  Normalizat    .47132        .23835        .33694E-03   -1.1376    
   4  Prefactor     1.5348        .30256        .24800E-03   -.76570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9501e-10
Minuit parameter uncertainties:
  1  3.00877
  2  1.01896
  3  0.238866
  4  0.302917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895781': 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) = 4332.16562088
delta logL = 0.377884056381

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  2.638e+00  3.009e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  1.588e+00  1.019e+00  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:  1.535e+00  3.029e-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:  4.713e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.76
Ra Dec: 172.755 38.257
Photon Index (Free Index): 1.59 +/- 1.02
Photon Flux (Free Index): 1.17e-08 +/- 1.76e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.98e-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/895781/cmap_HighResolution_315273601_315532801_4FGL_J1131.0+3815_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-05', comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='1.37e-05', photon_flux_error='3.06e-08', dlogl='3.78e-01', energy_flux='8.86e-06', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-04 02:40:43.705873', photon_index_error2='1.02', photon_index2='1.59', ts='2.00', fit_tolerance='1e-08', GAL='1.55', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.98e-05', EG='0.45', time_epoch_completed='1630748443.71', return_code='0', job_id='895781', GAL2='1.53', EG2='0.47', return_code2='0', energy_flux_error='9.59e-06', photon_flux_error2='1.76e-08', ts2='2.76', photon_index='2.55' WHERE bin_id='293' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:40:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 895781: <4FGL_J1131.0+3815_daily_bin293> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin293> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 02:26:32 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:26:56 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:56 2021
Terminated at Sat Sep  4 02:40:44 2021
Results reported at Sat Sep  4 02:40:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin293 172.755 38.2565 315273601 315532801 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 :                                   808.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            852 sec.

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

