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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin73
RA = 172.755, Dec = 38.2565
tmin = 258249601, tmax = 258508801
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='895462', job_status='RUN', time_executed='2021-09-04 02:29:42.497175', time_epoch_executed='1630747782.5' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895462

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895462/ft1_4FGL_J1131.0+3815_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895462/ft2_4FGL_J1131.0+3815_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895462/ft1_4FGL_J1131.0+3815_daily_bin73.fits outfile=/scratch/kocevski/895462/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin73.fits ra=172.755 dec=38.2565 rad=12.0 tmin=258249601.0 tmax=258508801.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.18
user 1.01
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895462/ft1_filtered_4FGL_J1131.0+3815_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/895462/ft2_4FGL_J1131.0+3815_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/895462/ltcube_258249601_258508801_4FGL_J1131.0+3815_daily_bin73.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/895462/ft2_4FGL_J1131.0+3815_daily_bin73.fits
.....................!
real 11.85
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895462/ft1_filtered_4FGL_J1131.0+3815_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/895462/ft2_4FGL_J1131.0+3815_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/895462/ltcube_258249601_258508801_4FGL_J1131.0+3815_daily_bin73.fits outfile=/scratch/kocevski/895462/expmap_258249601_258508801_4FGL_J1131.0+3815_daily_bin73.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/895462/ltcube_258249601_258508801_4FGL_J1131.0+3815_daily_bin73.fits
.....................!
real 192.72
user 187.98
sys 4.04

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/895462/ft1_filtered_4FGL_J1131.0+3815_daily_bin73.fits scfile=/scratch/kocevski/895462/ft2_4FGL_J1131.0+3815_daily_bin73.fits outfile=/scratch/kocevski/895462/cmap_258249601_258508801_4FGL_J1131.0+3815_daily_bin73.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/895462/ft1_filtered_4FGL_J1131.0+3815_daily_bin73.fits scfile=/scratch/kocevski/895462/ft2_4FGL_J1131.0+3815_daily_bin73.fits outfile=/scratch/kocevski/895462/cmap_HighResolution_258249601_258508801_4FGL_J1131.0+3815_daily_bin73.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.6456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1817       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5568       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5218       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11280E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2248       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7133       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4156       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.120       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0399       1.0000         .10000E-03   10000.    
    22 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.145       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.054       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.1640       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .44448       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2775       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3289.206     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     3444 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6587       -.19298E-04** at limit **
   2  Prefactor     7.6456        1.0214       -.55648E-06   -.91717E-03
   3  Prefactor     6.1831        1.0434        .84957E-06    .38317E-03
   4  Prefactor     .10005E-03    11.770        .28532E-04** at limit **
   5  Prefactor     .10037E-03    15.204        .37336E-04** at limit **
   6  Prefactor     .10000E-03    16.810        .27062E-04** at limit **
   7  norm          1.1859        .39247        .98811E-07   -.18636E-03
   8  Prefactor     2.2211        2.6231        .34552E-06    .21541E-05
   9  Prefactor     .10492E-03    20.541       -.12635E-05** at limit **
  10  Prefactor     .10000E-03    7.1190       -.14006E-05** at limit **
  11  Prefactor     .10320E-03    14.914        .11030E-04** at limit **
  12  norm          6.5488        1.0816        .67670E-06    .10353E-03
  13  norm          .10001E-03    7.4392       -.18568E-04** at limit **
  14  Prefactor     1.5220        2.2487       -.32361E-06    .53964E-03
  15  Prefactor     .10650E-03    90.071       -.10664E-03** at limit **
  16  Prefactor     9.2246        1.0023        .36266E-07   -.27693E-05
  17  norm          4.7134        3.0711        .10464E-06    .80099E-03
  18  Prefactor     .10000E-03    6.0372        .14537E-05** at limit **
  19  Prefactor     3.4154        4.6252        .22665E-05    .16717E-03
  20  Prefactor     23.130        1.9638        .24956E-05   -.19001E-02
  21  norm          2.0398        1.3489        .74242E-08    .46494E-04
  22  norm          .10055E-03    7.9532        .53008E-05** at limit **
  23  Prefactor     53.152        1.5966        .12363E-05   -.23030E-02
  24  Prefactor     11.054        1.0040       -.14579E-07   -.43674E-04
  25  Prefactor     .10004E-03    7.2951       -.17723E-04** at limit **
  26  Prefactor     .10002E-03    8.0653       -.24203E-04** at limit **
  27  norm          5.1641        2.0732       -.21069E-06    .67276E-04
  28  Prefactor     .10069E-03    16.616        .22165E-04** at limit **
  29  Prefactor     .10004E-03    5.4897       -.16385E-04** at limit **
  30  Normalizat    .44447        .23569        .70791E-06    .69869E-04
  31  Prefactor     1.2775        .29646       -.27129E-05    .94629E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 7.64556
  Prefactor  = 6.18306
  Prefactor  = 0.000100046
  Prefactor  = 0.000100365
  Prefactor  = 0.0001
  norm       = 1.18586
  Prefactor  = 2.22112
  Prefactor  = 0.000104921
  Prefactor  = 0.0001
  Prefactor  = 0.000103202
  norm       = 6.54876
  norm       = 0.000100008
  Prefactor  = 1.52197
  Prefactor  = 0.000106499
  Prefactor  = 9.22455
  norm       = 4.71338
  Prefactor  = 0.0001
  Prefactor  = 3.41544
  Prefactor  = 23.1299
  norm       = 2.03982
  norm       = 0.000100554
  Prefactor  = 53.152
  Prefactor  = 11.0543
  Prefactor  = 0.000100037
  Prefactor  = 0.000100018
  norm       = 5.16406
  Prefactor  = 0.000100685
  Prefactor  = 0.000100043
  Normalizat = 0.444472
  Prefactor  = 1.2775
 **********
 **   18 **HESSE 
 **********

 FCN=   3289.206     FROM HESSE     STATUS=OK           688 CALLS     4132 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6456        5.5102        .36257E-02   -1.5155    
   3  Prefactor     6.1831        7.2438        .40366E-02   -1.5211    
   4  Prefactor     .10005E-03    12.333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10037E-03    17.946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1859        .39851        .45197E-02   -1.5490    
   8  Prefactor     2.2211        2.6325        .68978E-02   -1.5410    
   9  Prefactor     .10492E-03    13.871        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10320E-03    39.405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5488        16.864        .39181E-02   -1.5196    
  13  norm          .10001E-03    27.379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5220        2.2944        .86576E-02   -1.5461    
  15  Prefactor     .10650E-03    114.75        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.2246        19.301        .32989E-02   -1.5100    
  17  norm          4.7134        3.0941        .46337E-02   -1.5274    
  18  Prefactor     .10000E-03    6.0325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4154        4.6615        .54721E-02   -1.5338    
  20  Prefactor     23.130        36.553        .20826E-02   -1.4746    
  21  norm          2.0398        1.4009        .72388E-02   -1.5422    
  22  norm          .10055E-03    22.558        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     53.152        39.652        .13755E-02   -1.4249    
  24  Prefactor     11.054        7.9331        .30125E-02   -1.5043    
  25  Prefactor     .10004E-03    26.960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    13.391        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.1641        2.0879        .44227E-02   -1.5253    
  28  Prefactor     .10069E-03    56.767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10004E-03    12.800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .44447        .21639        .69421E-01   -1.1506    
  31  Prefactor     1.2775        .25812        .53488E-01   -.83978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57157e-07
Minuit parameter uncertainties:
  1  0.000603305
  2  5.51061
  3  7.24484
  4  0.00150417
  5  0.00512189
  6  0.000268558
  7  0.398512
  8  2.63268
  9  0.0165277
  10  1.04914e-05
  11  0.0224792
  12  16.8764
  13  0.000910443
  14  2.29451
  15  0.0547199
  16  19.3137
  17  3.09424
  18  2.58216e-05
  19  4.66198
  20  36.5883
  21  1.40096
  22  0.00707224
  23  39.6721
  24  7.93387
  25  0.0019964
  26  0.000968461
  27  2.08793
  28  0.0124857
  29  0.00147775
  30  0.216794
  31  0.25838
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  4.713e+00  3.094e+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.278e+00  2.584e-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.445e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.69
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.31e-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) = 3288.77232714
delta logL = 0.433984498323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3288.77122532
delta logL = 0.435086320771

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8400       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9358       1.0000          .0000       5.0000    
     3 'Normalizat'    .46868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2596       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=   3288.771     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8350        155.77        .38353E-02   -.18167E-04
   2  alpha         1.9350        3.2233        .31817        .88918E-05
   3  Normalizat    .46876        .27063        .67758E-01   -.48969E-04
   4  Prefactor     1.2595        .22084        .53819E-01   -.90964E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.83499
  alpha      = 1.93498
  Normalizat = 0.468758
  Prefactor  = 1.25949
 **********
 **   18 **HESSE 
 **********

 FCN=   3288.771     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8350        4.6275        .96334E-04   -1.5185    
   2  alpha         1.9350        .62581        .12439E-01   -.22798    
   3  Normalizat    .46876        .23446        .29994E-03   -1.1389    
   4  Prefactor     1.2595        .29523        .23794E-03   -.84520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64359e-11
Minuit parameter uncertainties:
  1  4.62772
  2  0.632913
  3  0.234957
  4  0.295621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895462': 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) = 3288.77122347
delta logL = 0.435088171079

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  6.835e+00  4.628e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  1.935e+00  6.329e-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:  1.259e+00  2.956e-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.688e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.58
Ra Dec: 172.755 38.257
Photon Index (Free Index): 1.93 +/- 0.63
Photon Flux (Free Index): 4.15e-08 +/- 3.53e-08
Energy Flux (Free Index): 2.65e-05 +/- 2.10e-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/895462/cmap_HighResolution_258249601_258508801_4FGL_J1131.0+3815_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='2.65e-05', photon_flux_error='4.18e-08', dlogl='4.35e-01', energy_flux='2.00e-05', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-09-04 02:39:13.556396', photon_index_error2='0.63', photon_index2='1.93', ts='5.69', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='0.44', time_epoch_completed='1630748353.56', return_code='0', job_id='895462', GAL2='1.26', EG2='0.47', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='3.53e-08', ts2='6.58', photon_index='2.55' WHERE bin_id='73' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:39:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 895462: <4FGL_J1131.0+3815_daily_bin73> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin73> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 02:26:10 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:26:12 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:12 2021
Terminated at Sat Sep  4 02:39:14 2021
Results reported at Sat Sep  4 02:39:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin73 172.755 38.2565 258249601 258508801 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 :                                   569.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             273.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

