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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1156
RA = 172.755, Dec = 38.2565
tmin = 538963201, tmax = 539222401
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='903562', job_status='RUN', time_executed='2021-09-04 02:50:42.304092', time_epoch_executed='1630749042.3' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903562/ft1_4FGL_J1131.0+3815_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903562/ft2_4FGL_J1131.0+3815_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903562/ft1_4FGL_J1131.0+3815_daily_bin1156.fits outfile=/scratch/kocevski/903562/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1156.fits ra=172.755 dec=38.2565 rad=12.0 tmin=538963201.0 tmax=539222401.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 4.73
user 4.45
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903562/ft1_filtered_4FGL_J1131.0+3815_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/903562/ft2_4FGL_J1131.0+3815_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/903562/ltcube_538963201_539222401_4FGL_J1131.0+3815_daily_bin1156.fits outfile=/scratch/kocevski/903562/expmap_538963201_539222401_4FGL_J1131.0+3815_daily_bin1156.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/903562/ltcube_538963201_539222401_4FGL_J1131.0+3815_daily_bin1156.fits
.....................!
real 192.35
user 187.13
sys 4.18

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/903562/ft1_filtered_4FGL_J1131.0+3815_daily_bin1156.fits scfile=/scratch/kocevski/903562/ft2_4FGL_J1131.0+3815_daily_bin1156.fits outfile=/scratch/kocevski/903562/cmap_538963201_539222401_4FGL_J1131.0+3815_daily_bin1156.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903562/ft1_filtered_4FGL_J1131.0+3815_daily_bin1156.fits scfile=/scratch/kocevski/903562/ft2_4FGL_J1131.0+3815_daily_bin1156.fits outfile=/scratch/kocevski/903562/cmap_HighResolution_538963201_539222401_4FGL_J1131.0+3815_daily_bin1156.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.952       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11578E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.8892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.581       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.845       1.0000         .10000E-03   10000.    
    13 'norm      '    60.573       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2258       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.539       1.0000         .10000E-03   10000.    
    17 'norm      '    .10897E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19006E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.840       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    171.23       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.9158       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.6313       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95155       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82236       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=   2900.501     FROM MIGRAD    STATUS=CONVERGED   1443 CALLS     4770 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.245        .18142E-02** at limit **
   2  Prefactor     11.952        8.0090        .57936E-03   -.16394E-03
   3  Prefactor     .10000E-03    3.1661        .93322E-03** at limit **
   4  Prefactor     23.049        38.379        .83426E-04   -.17715E-05
   5  Prefactor     .10000E-03    11.025        .17466E-02** at limit **
   6  Prefactor     .10001E-03    190.03        .18142E-02** at limit **
   7  norm          3.8893        .77647        .19934E-04   -.69344E-03
   8  Prefactor     .10000E-03    .94533        .51125E-03** at limit **
   9  Prefactor     .10000E-03    18.297        .18142E-02** at limit **
  10  Prefactor     19.582        22.364        .90513E-04   -.31275E-04
  11  Prefactor     .10000E-03    67.014        .18142E-02** at limit **
  12  norm          17.847        23.279        .94811E-04   -.54739E-04
  13  norm          60.586        79.691        .25777E-03   -.99412E-05
  14  Prefactor     3.2269        3.1977        .92066E-04   -.17819E-03
  15  Prefactor     .10000E-03    38.941        .18142E-02** at limit **
  16  Prefactor     46.538        32.680        .58775E-04   -.19354E-03
  17  norm          .10000E-03    4.6302        .17566E-02** at limit **
  18  Prefactor     .10000E-03    29.019        .71668E-01** at limit **
  19  Prefactor     .10000E-03    10.152        .16626E-02** at limit **
  20  Prefactor     .10000E-03    26.083        .18142E-02** at limit **
  21  norm          .10000E-03    2.2532        .11646E-02** at limit **
  22  norm          14.838        14.694        .10397E-03   -.13559E-04
  23  Prefactor     .10000E-03    68.214        .18142E-02** at limit **
  24  Prefactor     .10000E-03    8.1598        .14967E-02** at limit **
  25  Prefactor     171.23        114.06        .30833E-04   -.28760E-04
  26  Prefactor     .10000E-03    32.651        .18142E-02** at limit **
  27  norm          5.9156        2.7399        .57731E-04   -.14700E-03
  28  Prefactor     6.6755        106.27        .15583E-03   -.11892E-04
  29  Prefactor     .10000E-03    12.975        .18142E-02** at limit **
  30  Normalizat    .95138        .30665        .25005E-03   -.30403E-03
  31  Prefactor     .82253        .34246        .31425E-03   -.10477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.952
  Prefactor  = 0.0001
  Prefactor  = 23.0491
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 3.88925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5823
  Prefactor  = 0.0001
  norm       = 17.8468
  norm       = 60.5865
  Prefactor  = 3.22688
  Prefactor  = 0.0001
  Prefactor  = 46.5379
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.8377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 171.228
  Prefactor  = 0.0001
  norm       = 5.9156
  Prefactor  = 6.67555
  Prefactor  = 0.0001
  Normalizat = 0.951381
  Prefactor  = 0.822527
 **********
 **   18 **HESSE 
 **********

 FCN=   2900.501     FROM HESSE     STATUS=OK           600 CALLS     5370 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.952        8.0094        .23174E-04   -1.5016    
   3  Prefactor     .10000E-03    3.1663        .18664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.049        38.377        .33370E-05   -1.4747    
   5  Prefactor     .10000E-03    11.025        .34932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    190.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8893        .77648        .39868E-05   -1.5314    
   8  Prefactor     .10000E-03    .94534        .10225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.582        22.364        .18103E-04   -1.4823    
  11  Prefactor     .10000E-03    67.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.847        23.278        .37924E-05   -1.4863    
  13  norm          60.586        79.691        .51553E-04   -1.4150    
  14  Prefactor     3.2269        3.1974        .18413E-04   -1.5349    
  15  Prefactor     .10000E-03    38.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.538        32.654        .11755E-04   -1.4343    
  17  norm          .10000E-03    4.6381        .35132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.638        .76075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.157        .33252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2582        .23292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.838        14.694        .41588E-05   -1.4937    
  23  Prefactor     .10000E-03    68.226        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.1613        .29934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     171.23        114.04        .61667E-05   -1.3083    
  26  Prefactor     .10000E-03    32.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.9156        2.7400        .23093E-05   -1.5221    
  28  Prefactor     6.6755        106.27        .62332E-05   -1.5191    
  29  Prefactor     .10000E-03    12.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .95138        .30691        .50009E-04   -.94677    
  31  Prefactor     .82253        .34273        .12570E-04   -.98903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63072e-10
Minuit parameter uncertainties:
  1  7.2625e-05
  2  8.01007
  3  1.35443e-06
  4  38.4183
  5  3.47467e-06
  6  0.00288137
  7  0.776482
  8  2.66859e-07
  9  5.86419e-05
  10  22.3734
  11  0.000119936
  12  23.2901
  13  79.8321
  14  3.19754
  15  4.9438e-05
  16  32.6664
  17  1.01291e-05
  18  0.000511923
  19  1.79037e-05
  20  1.50086e-05
  21  2.8918e-05
  22  14.6972
  23  0.000272177
  24  1.62341e-08
  25  114.189
  26  0.000104477
  27  2.74004
  28  53.3808
  29  2.2971e-05
  30  0.307482
  31  0.343624
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  1.013e-05  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:  8.225e-01  3.436e-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:  9.514e-01  3.075e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/903562/likelihoodResults_538963201_539222401_4FGL_J1131.0+3815_daily_bin1156.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) = 2900.50165877
delta logL = -0.00102884671378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2900.50063002
delta logL = -1.02769718069e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5548       1.0000          .0000       5.0000    
     3 'Normalizat'    .95144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82254       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2900.501     FROM MIGRAD    STATUS=FAILED        94 CALLS      254 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10054E-03    203.16        .17522E-02** at limit **
   2  alpha         2.6570        3.4955        .50000       -.28545E-05
   3  Normalizat    .95139        .42834E-01    .25005E-03   -.15799E-04
   4  Prefactor     .82252        .50613E-01    .31425E-03   -.93519E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2900.501     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      402 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10054E-03    203.16        .34111E-03** at limit **
   2  alpha         2.6570        3.4955        .62803E-04   -.28545E-05
   3  Normalizat    .95139        .42834E-01    .26622E-05   -.15799E-04
   4  Prefactor     .82252        .50613E-01    .71864E-06   -.93519E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2900.501     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      444 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    688.95        .35043E-03** at limit **
   2  alpha         2.7246        2.6004        .50000        .39483E-07
   3  Normalizat    .95139        .96896E-01    .10002E-04    .62857E-04
   4  Prefactor     .82252        .11446        .12570E-04    .49292E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.72461
  Normalizat = 0.951386
  Prefactor  = 0.822523
 **********
 **   18 **HESSE 
 **********

 FCN=   2900.501     FROM HESSE     STATUS=OK            29 CALLS      473 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1144        .70086E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7246        3.8533        .50000        .89964E-01
   3  Normalizat    .95139        .28784        .20004E-05   -.94677    
   4  Prefactor     .82252        .33986        .25140E-05   -.98903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34249e-11
Minuit parameter uncertainties:
  1  1.15723e-05
  2  191.569
  3  0.288304
  4  0.34073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903562': 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) = 2900.50062967
delta logL = 2.49189724855e-07

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  1.157e-05  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.725e+00  1.916e+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:  8.225e-01  3.407e-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:  9.514e-01  2.883e-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/903562/cmap_HighResolution_538963201_539222401_4FGL_J1131.0+3815_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-05', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-04 03:02:31.141300', job_id='903562', GAL2='0.82', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630749751.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1156' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:02:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 903562: <4FGL_J1131.0+3815_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1156> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 02:46:23 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:50:30 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:30 2021
Terminated at Sat Sep  4 03:02:32 2021
Results reported at Sat Sep  4 03:02:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1156 172.755 38.2565 538963201 539222401 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 :                                   690.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            969 sec.

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

