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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin1528
RA = 178.514, Dec = 40.632
tmin = 635385601, tmax = 635644801
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='165585', job_status='RUN', time_executed='2021-09-04 15:52:14.191537', time_epoch_executed='1630795934.19' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165585/ft1_4FGL_J1154.0+4037_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165585/ft1_4FGL_J1154.0+4037_daily_bin1528.fits outfile=/scratch/kocevski/165585/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin1528.fits ra=178.514 dec=40.632 rad=12.0 tmin=635385601.0 tmax=635644801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.77
user 2.58
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.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/165585/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin1528.fits evtable="EVENTS" outfile="/scratch/kocevski/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/165585/ltcube_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.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/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits
.....................!
real 12.51
user 12.05
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/165585/ltcube_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.fits outfile=/scratch/kocevski/165585/expmap_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.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/165585/ltcube_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.fits
.....................!
real 189.66
user 185.61
sys 3.68

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1154.0+4037 @ 178.514 40.632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.fits scfile=/scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits outfile=/scratch/kocevski/165585/cmap_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.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=178.514 yref=40.632 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.fits scfile=/scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits outfile=/scratch/kocevski/165585/cmap_HighResolution_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.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=178.514 yref=40.632 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165585/Model_4FGL_J1154.0+4037_daily_bin1528.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/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.fits......................!
real 27.61
user 26.32
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.fits', '/scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits', expMap='/scratch/kocevski/165585/expmap_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.fits', expCube='/scratch/kocevski/165585/ltcube_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/165585/Model_4FGL_J1154.0+4037_daily_bin1528.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1154.0+4037'

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  8.147e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/165585/ft1_filtered_4FGL_J1154.0+4037_daily_bin1528.fits
Spacecraft file(s): /scratch/kocevski/165585/ft2_4FGL_J1154.0+4037_daily_bin1528.fits
Exposure map: /scratch/kocevski/165585/expmap_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.fits
Exposure cube: /scratch/kocevski/165585/ltcube_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/165585/Model_4FGL_J1154.0+4037_daily_bin1528.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) = 2056.04627423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17161E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7996       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50272E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    96.075       1.0000         .10000E-03   10000.    
    11 'norm      '    .20567E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58547E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    139.70       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2097       1.0000         .10000E-03   10000.    
    16 'norm      '    37.768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    184.33       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.740       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6676       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.078       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2192       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3292       1.0000         .10000E-03   10000.    
    26 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94062       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2449       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2056.039     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     4515 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    224.22       -.21587E-05** at limit **
   2  norm          .10000E-03    .58894       -.12668E-05** at limit **
   3  Prefactor     .10000E-03    70.680       -.40115E-05** at limit **
   4  Prefactor     .10000E-03    46.642       -.33731E-05** at limit **
   5  Prefactor     .10000E-03    96.882        .31555E-06** at limit **
   6  norm          .10001E-03    152.75       -.10668E-04** at limit **
   7  norm          .10000E-03    44.374        .32322E-06** at limit **
   8  Prefactor     9.7833        14.219       -.15439E-06    .15702E-03
   9  Prefactor     .10001E-03    226.63       -.23801E-04** at limit **
  10  Prefactor     95.938        127.40       -.27996E-05   -.96482E-05
  11  norm          .10000E-03    7.6814       -.12994E-04** at limit **
  12  Prefactor     .10000E-03    54.371        .22342E-05** at limit **
  13  Prefactor     .10003E-03    471.29       -.79941E-04** at limit **
  14  Prefactor     140.08        225.69       -.42985E-05   -.19026E-04
  15  norm          3.2060        4.5438       -.13352E-06    .12825E-03
  16  norm          37.773        29.424        .35513E-06    .33146E-04
  17  Prefactor     183.91        167.08       -.40596E-05   -.11692E-04
  18  Prefactor     .10000E-03    1.9363       -.47865E-06** at limit **
  19  Prefactor     .10000E-03    107.30       -.26829E-05** at limit **
  20  Prefactor     31.732        32.557       -.11797E-06    .60672E-04
  21  norm          5.6674        3.9517       -.68187E-08   -.10540E-03
  22  Prefactor     45.186        109.97       -.12248E-05   -.20192E-04
  23  norm          5.2196        5.9580       -.11804E-06   -.38469E-05
  24  Prefactor     .10000E-03    15.197       -.21671E-05** at limit **
  25  Prefactor     7.3308        7.3870       -.25103E-06   -.13549E-04
  26  norm          .10000E-03    16.387       -.18680E-05** at limit **
  27  Prefactor     .10000E-03    75.953       -.33079E-05** at limit **
  28  Prefactor     .10000E-03    17.306       -.60415E-06** at limit **
  29  Normalizat    .93986        .35984        .13922E-04   -.84088E-04
  30  Prefactor     1.2460        .40194       -.81344E-05    .35818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 9.78333
  Prefactor  = 0.000100008
  Prefactor  = 95.9376
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 140.075
  norm       = 3.20604
  norm       = 37.7731
  Prefactor  = 183.91
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7325
  norm       = 5.66738
  Prefactor  = 45.1861
  norm       = 5.21961
  Prefactor  = 0.0001
  Prefactor  = 7.33084
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.939863
  Prefactor  = 1.24603
 **********
 **   18 **HESSE 
 **********

 FCN=   2056.039     FROM HESSE     STATUS=OK           580 CALLS     5095 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    224.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .59148        .34021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    96.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    153.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    44.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7833        14.225        .12801E-03   -1.5082    
   9  Prefactor     .10001E-03    227.23        .21155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     95.938        127.58        .20503E-03   -1.3746    
  11  norm          .10000E-03    7.8468        .12369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    459.51        .59902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     140.08        225.79        .17041E-03   -1.3335    
  15  norm          3.2060        4.5349        .83230E-04   -1.5350    
  16  norm          37.773        29.416        .65216E-04   -1.4478    
  17  Prefactor     183.91        167.61        .14869E-03   -1.2987    
  18  Prefactor     .10000E-03    1.9410        .61627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    107.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.732        32.577        .71122E-04   -1.4581    
  21  norm          5.6674        3.9531        .73100E-04   -1.5232    
  22  Prefactor     45.186        109.88        .59715E-04   -1.4363    
  23  norm          5.2196        5.9592        .11314E-03   -1.5251    
  24  Prefactor     .10000E-03    15.259        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.3308        7.3901        .11796E-03   -1.5166    
  26  norm          .10000E-03    16.774        .17927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    77.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93986        .41074        .28943E-03   -.95073    
  30  Prefactor     1.2460        .46508        .14814E-02   -.84926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30634e-09
Minuit parameter uncertainties:
  1  0.00128291
  2  6.58008e-06
  3  0.00011234
  4  0.000218158
  5  0.000288552
  6  0.00181781
  7  0.000155571
  8  14.2298
  9  0.00262672
  10  127.949
  11  0.00024751
  12  7.60975e-05
  13  0.00712324
  14  227.199
  15  4.53539
  16  29.4277
  17  168.043
  18  1.29314e-05
  19  0.00019167
  20  32.5955
  21  3.9533
  22  110.376
  23  5.95985
  24  0.00012851
  25  7.39097
  26  0.000124306
  27  0.000817164
  28  6.20834e-05
  29  0.412118
  30  0.466634
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.917e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.246e+00  4.666e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.399e-01  4.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165585/likelihoodResults_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.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) = 2056.03910791
delta logL = -4.42499563178e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2056.03906368
delta logL = -1.35105437948e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0754       1.0000          .0000       10.000    
     3 'Normalizat'    .93988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2056.039     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      247 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9454.0        .90712E-02** at limit **
   2  Index         2.0921        5.7252        .50000       -.13703E-05
   3  Normalizat    .93989        .13198        .65436E-01   -.74473E-06
   4  Prefactor     1.2460        .15365        .66976E-01   -.66485E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0921
  Normalizat = 0.939886
  Prefactor  = 1.246
 **********
 **   18 **HESSE 
 **********

 FCN=   2056.039     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    243.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0921        5.6044        .50000       -.62067    
   3  Normalizat    .93989        .39123        .28943E-03   -.95072    
   4  Prefactor     1.2460        .45574        .29627E-03   -.84927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24322e-12
Minuit parameter uncertainties:
  1  0.000550155
  2  6.31938
  3  0.392421
  4  0.457196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165585': 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) = 2056.03906367
delta logL = -5.82576831221e-09

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.502e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.092e+00  6.319e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.246e+00  4.572e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  9.399e-01  3.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.514 40.632

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/165585/cmap_HighResolution_635385601_635644801_4FGL_J1154.0+4037_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', job_status='DONE', photon_flux_upper_limit='1.84e-07', time_completed='2021-09-04 16:01:14.139709', job_id='165585', GAL2='1.25', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630796474.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='-5.83e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1528' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 16:01:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 165585: <4FGL_J1154.0+4037_daily_bin1528> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin1528> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:51:56 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:51:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:51:58 2021
Terminated at Sat Sep  4 16:01:15 2021
Results reported at Sat Sep  4 16:01:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin1528 178.514 40.632 635385601 635644801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1154.0+4037 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   533.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            559 sec.

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

