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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1185
RA = 172.755, Dec = 38.2565
tmin = 546480001, tmax = 546739201
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='903613', job_status='RUN', time_executed='2021-09-04 02:54:25.155723', time_epoch_executed='1630749265.16' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903613/ft1_4FGL_J1131.0+3815_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903613/ft2_4FGL_J1131.0+3815_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903613/ft1_4FGL_J1131.0+3815_daily_bin1185.fits outfile=/scratch/kocevski/903613/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1185.fits ra=172.755 dec=38.2565 rad=12.0 tmin=546480001.0 tmax=546739201.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.88
user 3.63
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903613/ft2_4FGL_J1131.0+3815_daily_bin1185.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/903613/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1185.fits evtable="EVENTS" outfile="/scratch/kocevski/903613/ft1_filtered_4FGL_J1131.0+3815_daily_bin1185.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.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903613/ft1_filtered_4FGL_J1131.0+3815_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/903613/ft2_4FGL_J1131.0+3815_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/903613/ltcube_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.fits outfile=/scratch/kocevski/903613/expmap_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.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/903613/ltcube_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.fits
.....................!
real 191.68
user 186.12
sys 4.41

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/903613/ft1_filtered_4FGL_J1131.0+3815_daily_bin1185.fits scfile=/scratch/kocevski/903613/ft2_4FGL_J1131.0+3815_daily_bin1185.fits outfile=/scratch/kocevski/903613/cmap_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903613/ft1_filtered_4FGL_J1131.0+3815_daily_bin1185.fits scfile=/scratch/kocevski/903613/ft2_4FGL_J1131.0+3815_daily_bin1185.fits outfile=/scratch/kocevski/903613/cmap_HighResolution_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.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.55
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/903613/ft1_filtered_4FGL_J1131.0+3815_daily_bin1185.fits', '/scratch/kocevski/903613/ft2_4FGL_J1131.0+3815_daily_bin1185.fits', expMap='/scratch/kocevski/903613/expmap_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.fits', expCube='/scratch/kocevski/903613/ltcube_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/903613/Model_4FGL_J1131.0+3815_daily_bin1185.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/903613/ft1_filtered_4FGL_J1131.0+3815_daily_bin1185.fits
Spacecraft file(s): /scratch/kocevski/903613/ft2_4FGL_J1131.0+3815_daily_bin1185.fits
Exposure map: /scratch/kocevski/903613/expmap_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.fits
Exposure cube: /scratch/kocevski/903613/ltcube_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/903613/Model_4FGL_J1131.0+3815_daily_bin1185.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 696.578076591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 694.236956492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16062E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25784E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2288       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36579E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39799E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2386       1.0000         .10000E-03   10000.    
    12 'norm      '    .21285E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4173       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .97294       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.369       1.0000         .10000E-03   10000.    
    17 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.098       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1338       1.0000         .10000E-03   10000.    
    21 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .91862       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10968E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1222       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9849       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.0050       1.0000         .10000E-03   10000.    
    27 'norm      '    35.482       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .63793E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.532       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .56745       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .26736       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=   694.2160     FROM MIGRAD    STATUS=CONVERGED    174 CALLS      513 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.574        .44072E-05** at limit **
   2  Prefactor     .10000E-03    19.542        .99371E-07** at limit **
   3  Prefactor     .10000E-03    10.432        .54053E-06** at limit **
   4  Prefactor     .10057E-03    73.904       -.52401E-05** at limit **
   5  Prefactor     59.917        15.478       -.15109E-05    .14863E-01
   6  Prefactor     .52625E-03    401.66        .14981E-04** at limit **
   7  norm          2.3983        1.3485       -.47951E-06   -.48111E-03
   8  Prefactor     10.541        9.7892        .24480E-05    .22348E-03
   9  Prefactor     .10000E-03    47.768        .38355E-05** at limit **
  10  Prefactor     .15546E-03    74.421        .10434E-04** at limit **
  11  Prefactor     2.2386        1.0274         .0000         .0000    
  12  norm          .10019E-03    24.362       -.79417E-06** at limit **
  13  norm          6.4173        1.0031         .0000         .0000    
  14  Prefactor     .10000E-03    8.2892        .71029E-06** at limit **
  15  Prefactor     .10023E-03    182.80       -.15615E-04** at limit **
  16  Prefactor     33.976        15.768       -.17096E-05    .10872E-01
  17  norm          .10000E-03    10.595       -.83521E-06** at limit **
  18  Prefactor     42.447        10.962       -.13723E-05    .58353E-02
  19  Prefactor     .10000E-03    16.617        .50155E-05** at limit **
  20  Prefactor     .10003E-03    259.66        .85959E-05** at limit **
  21  norm          .10000E-03    7.2227        .10848E-05** at limit **
  22  norm          .10019E-03    267.63       -.53839E-05** at limit **
  23  Prefactor     .10304E-03    19.730        .44577E-05** at limit **
  24  Prefactor     3.1222        1.0134         .0000         .0000    
  25  Prefactor     .34793E-03    470.36        .18141E-04** at limit **
  26  Prefactor     5.0050        1.0051         .0000         .0000    
  27  norm          35.463        9.2093        .66937E-06    .50809E-04
  28  Prefactor     .10071E-03    74.321        .24868E-05** at limit **
  29  Prefactor     23.245        6.0526       -.79305E-06    .21024E-02
  30  Normalizat    .56797        .65611        .38663E-05   -.42042E-04
  31  Prefactor     .26716        .58029       -.40159E-04   -.41507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100574
  Prefactor  = 59.9168
  Prefactor  = 0.000526248
  norm       = 2.39834
  Prefactor  = 10.5408
  Prefactor  = 0.0001
  Prefactor  = 0.000155455
  Prefactor  = 2.2386
  norm       = 0.000100192
  norm       = 6.41733
  Prefactor  = 0.0001
  Prefactor  = 0.000100234
  Prefactor  = 33.9765
  norm       = 0.0001
  Prefactor  = 42.4474
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  norm       = 0.0001
  norm       = 0.000100187
  Prefactor  = 0.000103042
  Prefactor  = 3.12224
  Prefactor  = 0.000347928
  Prefactor  = 5.005
  norm       = 35.4626
  Prefactor  = 0.000100706
  Prefactor  = 23.2453
  Normalizat = 0.567973
  Prefactor  = 0.267156
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   694.2160     FROM HESSE     STATUS=FAILED        49 CALLS      562 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.641        .99855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.545        .10208E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10057E-03    74.047        .99934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.917        56.982        .12958E-02   -1.4158    
   6  Prefactor     .52625E-03    938.04        .43947E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3983        1.3029        .48995E-02   -1.5398    
   8  Prefactor     10.541        8.3505        .30849E-02   -1.5059    
   9  Prefactor     .10000E-03    47.668        .98015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15546E-03    96.639        .10633E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     565.20        562.84         .0000       -1.5409    
  12  norm          .10019E-03    .20834       -.79417E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4173        1.0031         .0000       -1.5201    
  14  Prefactor     .10000E-03    .20571        .71029E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10023E-03    .42703       -.15615E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.976        .99439       -.17096E-05   -1.4542    
  17  norm          .10000E-03    .20571       -.83521E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.447        1.0042       -.13723E-05   -1.4404    
  19  Prefactor     .10000E-03    .20571        .50155E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    .61415E-01    .85959E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571        .10848E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10019E-03    .41440       -.53839E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10304E-03    .20601        .44577E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1222        1.0134         .0000       -1.5355    
  25  Prefactor     .34793E-03    .42094E-01    .18141E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.0050        1.0051         .0000       -1.5260    
  27  norm          35.463        .99983        .66937E-06   -1.4516    
  28  Prefactor     .10071E-03    .21796        .24868E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     23.245        1.0159       -.79305E-06   -1.4743    
  30  Normalizat    .56797        .90374        .38663E-05   -1.0936    
  31  Prefactor     .26716        .57258       -.40159E-04   -1.2424    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6007e-09
Minuit parameter uncertainties:
  1  0.000272527
  2  8.222e-06
  3  1.2668e-05
  4  0.0130548
  5  57.0341
  6  1.28531
  7  1.30288
  8  8.35142
  9  0.000113659
  10  0.146649
  11  1.02742
  12  0.000400106
  13  1.00307
  14  1.20312e-06
  15  0.000632022
  16  0.994391
  17  1.33825e-06
  18  1.00419
  19  7.85237e-06
  20  8.26088e-05
  21  3.27708e-06
  22  0.000557481
  23  0.00158337
  24  1.01343
  25  0.00646101
  26  1.00508
  27  0.999833
  28  0.000784518
  29  1.01591
  30  0.92892
  31  0.585354
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 694.215975754

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  1.338e-06  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:  2.672e-01  5.854e-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:  5.680e-01  9.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 6.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/903613/likelihoodResults_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 694.21636243
delta logL = -0.000386675853861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 694.21597624
delta logL = -4.86039425596e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5230       1.0000          .0000       5.0000    
     3 'Normalizat'    .56756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26726       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=   694.2160     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      251 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    961.28        .86721E-02** at limit **
   2  alpha         1.6856        3.3217        .16462        .60947E-08
   3  Normalizat    .56797        .99823E-01    .33571E-03    .10744E-04
   4  Prefactor     .26716        .97500E-01    .46767E-03    .10188E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.68561
  Normalizat = 0.567972
  Prefactor  = 0.26716
 **********
 **   18 **HESSE 
 **********

 FCN=   694.2160     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.946        .11475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6856        2.6443        .65846E-02   -.33181    
   3  Normalizat    .56797        .59060        .13428E-04   -1.0936    
   4  Prefactor     .26716        .57041        .18707E-04   -1.2424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29315e-11
Minuit parameter uncertainties:
  1  0.000172052
  2  445.251
  3  0.597322
  4  0.583035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903613': 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) = 694.215973552
delta logL = 2.20248296046e-06

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  1.721e-04  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  1.686e+00  4.453e+02  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:  2.672e-01  5.830e-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:  5.680e-01  5.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.755 38.257

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/903613/cmap_HighResolution_546480001_546739201_4FGL_J1131.0+3815_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-04', job_status='DONE', photon_flux_upper_limit='6.24e-07', time_completed='2021-09-04 03:01:37.973792', job_id='903613', GAL2='0.27', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1630749697.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.27', dlogl='2.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1185' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:01:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 903613: <4FGL_J1131.0+3815_daily_bin1185> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1185> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 02:46:26 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 02:50:35 2021
Terminated at Sat Sep  4 03:01:38 2021
Results reported at Sat Sep  4 03:01:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1185 172.755 38.2565 546480001 546739201 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 :                                   345.47 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             294.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            912 sec.

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

