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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin464
RA = 178.514, Dec = 40.632
tmin = 359596801, tmax = 359856001
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='159176', job_status='RUN', time_executed='2021-09-04 15:31:58.092677', time_epoch_executed='1630794718.09' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159176/ft1_4FGL_J1154.0+4037_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159176/ft2_4FGL_J1154.0+4037_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159176/ft1_4FGL_J1154.0+4037_daily_bin464.fits outfile=/scratch/kocevski/159176/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin464.fits ra=178.514 dec=40.632 rad=12.0 tmin=359596801.0 tmax=359856001.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.73
user 3.53
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159176/ft2_4FGL_J1154.0+4037_daily_bin464.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/159176/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin464.fits evtable="EVENTS" outfile="/scratch/kocevski/159176/ft1_filtered_4FGL_J1154.0+4037_daily_bin464.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159176/ft1_filtered_4FGL_J1154.0+4037_daily_bin464.fits" evtable="EVENTS" scfile=/scratch/kocevski/159176/ft2_4FGL_J1154.0+4037_daily_bin464.fits sctable="SC_DATA" outfile=/scratch/kocevski/159176/ltcube_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.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/159176/ft2_4FGL_J1154.0+4037_daily_bin464.fits
.....................!
real 11.84
user 11.48
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159176/ft1_filtered_4FGL_J1154.0+4037_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/159176/ft2_4FGL_J1154.0+4037_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/159176/ltcube_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.fits outfile=/scratch/kocevski/159176/expmap_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.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/159176/ltcube_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.fits
.....................!
real 189.79
user 185.17
sys 3.85

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/159176/ft1_filtered_4FGL_J1154.0+4037_daily_bin464.fits scfile=/scratch/kocevski/159176/ft2_4FGL_J1154.0+4037_daily_bin464.fits outfile=/scratch/kocevski/159176/cmap_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159176/ft1_filtered_4FGL_J1154.0+4037_daily_bin464.fits scfile=/scratch/kocevski/159176/ft2_4FGL_J1154.0+4037_daily_bin464.fits outfile=/scratch/kocevski/159176/cmap_HighResolution_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.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.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/159176/ft1_filtered_4FGL_J1154.0+4037_daily_bin464.fits', '/scratch/kocevski/159176/ft2_4FGL_J1154.0+4037_daily_bin464.fits', expMap='/scratch/kocevski/159176/expmap_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.fits', expCube='/scratch/kocevski/159176/ltcube_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/159176/Model_4FGL_J1154.0+4037_daily_bin464.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/159176/ft1_filtered_4FGL_J1154.0+4037_daily_bin464.fits
Spacecraft file(s): /scratch/kocevski/159176/ft2_4FGL_J1154.0+4037_daily_bin464.fits
Exposure map: /scratch/kocevski/159176/expmap_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.fits
Exposure cube: /scratch/kocevski/159176/ltcube_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/159176/Model_4FGL_J1154.0+4037_daily_bin464.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6190.90744095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.107       1.0000         .10000E-03   10000.    
     7 'norm      '    20.759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4870       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.615       1.0000         .10000E-03   10000.    
    11 'norm      '    .73720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.610       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4693       1.0000         .10000E-03   10000.    
    16 'norm      '    9.9263       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.744       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .41994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27980E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.8195       1.0000         .10000E-03   10000.    
    22 'Prefactor '    81.735       1.0000         .10000E-03   10000.    
    23 'norm      '    3.9903       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3476       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.9224       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    33.063       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .63464       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0985       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=   6190.809     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3993 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.891        .11220E-06** at limit **
   2  norm          2.1689        .38656       -.21781E-07   -.64493E-04
   3  Prefactor     8.5323        11.019        .16560E-05   -.23612E-03
   4  Prefactor     .10000E-03    7.6073       -.95605E-07** at limit **
   5  Prefactor     .10000E-03    32.301       -.46932E-06** at limit **
   6  norm          12.106        9.4545       -.99840E-07   -.16549E-04
   7  norm          20.760        26.679        .51808E-07    .23811E-05
   8  Prefactor     2.4880        2.1336       -.10170E-06   -.26651E-03
   9  Prefactor     .10000E-03    25.559        .54349E-10** at limit **
  10  Prefactor     14.623        20.185       -.19889E-06   -.62058E-05
  11  norm          .73433        1.7120        .61343E-06    .32456E-03
  12  Prefactor     1.8807        14.236        .84437E-06   -.63598E-04
  13  Prefactor     .10000E-03    3.7573       -.11606E-06** at limit **
  14  Prefactor     11.613        29.358        .51381E-07    .15453E-05
  15  norm          1.4696        1.0500       -.11917E-06    .26566E-03
  16  norm          9.9250        8.0960        .15668E-08    .10903E-03
  17  Prefactor     15.735        27.562       -.99933E-06   -.45807E-04
  18  Prefactor     .41334        1.8337        .21183E-07    .67750E-04
  19  Prefactor     .10000E-03    175.38       -.88505E-05** at limit **
  20  Prefactor     .10000E-03    44.688        .58818E-06** at limit **
  21  norm          7.8194        1.9543        .97279E-08    .19415E-05
  22  Prefactor     81.742        39.702        .69516E-06    .59186E-04
  23  norm          3.9902        2.6111       -.39521E-08    .39392E-05
  24  Prefactor     7.3466        7.9877        .25552E-06    .22770E-04
  25  Prefactor     3.9223        2.6363       -.69955E-08    .79482E-05
  26  norm          .10000E-03    2.8655        .20830E-07** at limit **
  27  Prefactor     33.065        20.878        .15605E-06    .90176E-05
  28  Prefactor     .10000E-03    5.8201        .82538E-08** at limit **
  29  Normalizat    .63470        .16152       -.68839E-06   -.16653E-05
  30  Prefactor     1.0985        .18609       -.91553E-07   -.10040E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.16893
  Prefactor  = 8.53232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1056
  norm       = 20.7595
  Prefactor  = 2.48799
  Prefactor  = 0.0001
  Prefactor  = 14.6226
  norm       = 0.734334
  Prefactor  = 1.8807
  Prefactor  = 0.0001
  Prefactor  = 11.6133
  norm       = 1.46964
  norm       = 9.92503
  Prefactor  = 15.7352
  Prefactor  = 0.413345
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 7.81935
  Prefactor  = 81.742
  norm       = 3.99022
  Prefactor  = 7.34663
  Prefactor  = 3.92232
  norm       = 0.0001
  Prefactor  = 33.0652
  Prefactor  = 0.0001
  Normalizat = 0.634705
  Prefactor  = 1.09853
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.809     FROM HESSE     STATUS=OK           598 CALLS     4591 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1689        .38758        .19601E-04   -1.5413    
   3  Prefactor     8.5323        10.974        .68619E-03   -1.5124    
   4  Prefactor     .10000E-03    7.6242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.106        9.4507        .11513E-03   -1.5012    
   7  norm          20.760        26.681        .87909E-04   -1.4796    
   8  Prefactor     2.4880        2.0836        .97810E-04   -1.5392    
   9  Prefactor     .10000E-03    25.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.623        19.903        .10477E-03   -1.4943    
  11  norm          .73433        1.5692        .14989E-02   -1.5537    
  12  Prefactor     1.8807        14.026        .30390E-03   -1.5434    
  13  Prefactor     .10000E-03    3.8114        .14860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.613        29.022        .11757E-03   -1.5026    
  15  norm          1.4696        1.0279        .60518E-04   -1.5466    
  16  norm          9.9250        8.1091        .12719E-03   -1.5078    
  17  Prefactor     15.735        27.759        .10094E-03   -1.4914    
  18  Prefactor     .41334        5.6212        .19534E-02   -1.5579    
  19  Prefactor     .10000E-03    181.73        .21419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.8194        1.9539        .52483E-04   -1.5149    
  22  Prefactor     81.742        39.957        .44427E-04   -1.3897    
  23  norm          3.9902        2.6174        .98000E-04   -1.5308    
  24  Prefactor     7.3466        7.9797        .14797E-03   -1.5166    
  25  Prefactor     3.9223        2.6440        .99865E-04   -1.5312    
  26  norm          .10000E-03    2.8731        .12999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     33.065        20.899        .69688E-04   -1.4557    
  28  Prefactor     .10000E-03    5.8228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .63470        .19094        .26762E-03   -1.0653    
  30  Prefactor     1.0985        .22246        .25724E-03   -.89513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26493e-10
Minuit parameter uncertainties:
  1  2.23758e-05
  2  0.387581
  3  10.9763
  4  1.09497e-05
  5  5.41969e-05
  6  9.45184
  7  26.6958
  8  2.08367
  9  5.30784e-06
  10  19.9118
  11  1.56925
  12  10.2752
  13  9.88563e-06
  14  29.0573
  15  1.02796
  16  8.11004
  17  27.7819
  18  3.04857
  19  0.00153854
  20  0.000179598
  21  1.95392
  22  39.9702
  23  2.61752
  24  7.9809
  25  2.6441
  26  5.54156e-07
  27  20.9037
  28  6.53407e-07
  29  0.191138
  30  0.222648
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.539e-03  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.099e+00  2.226e-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:  6.347e-01  1.911e-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: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159176/likelihoodResults_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.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) = 6190.80863249
delta logL = -2.60810438704e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6190.80863249
delta logL = -2.60802517005e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1147       1.0000          .0000       10.000    
     3 'Normalizat'    .63471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0985       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=   6190.809     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      211 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.692        .90713E-02** at limit **
   2  Index         2.1194        5.8223        .50000       -.14224E-06
   3  Normalizat    .63470        .21153E-02    .60497E-01   -.20839E-03
   4  Prefactor     1.0985        .26286E-02    .58173E-01   -.23898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11941
  Normalizat = 0.634704
  Prefactor  = 1.09853
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.809     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    545.53        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1194        6.9066        .50000       -.61397    
   3  Normalizat    .63470        .65685E-02    .26762E-03   -1.0653    
   4  Prefactor     1.0985        .81696E-02    .25724E-03   -.89513    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.6813e-11
Minuit parameter uncertainties:
  1  0.00022178
  2  267.88
  3  0.00656848
  4  0.00816957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159176': 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): 102
logL (Free Index) = 6190.80860641
delta logL = 1.97360350285e-10

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.218e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.119e+00  2.679e+02  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.099e+00  8.170e-03  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:  6.347e-01  6.568e-03  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/159176/cmap_HighResolution_359596801_359856001_4FGL_J1154.0+4037_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-09-04 15:48:02.106056', job_id='159176', GAL2='1.10', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630795682.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.97e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='464' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:48:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 159176: <4FGL_J1154.0+4037_daily_bin464> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin464> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 15:31:42 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:31:44 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:31:44 2021
Terminated at Sat Sep  4 15:48:02 2021
Results reported at Sat Sep  4 15:48:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin464 178.514 40.632 359596801 359856001 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 :                                   961.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

