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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin791
RA = 178.514, Dec = 40.632
tmin = 444355201, tmax = 444614401
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='161892', job_status='RUN', time_executed='2021-09-04 15:41:14.988357', time_epoch_executed='1630795274.99' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='791'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161892/ft1_4FGL_J1154.0+4037_daily_bin791.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161892/ft2_4FGL_J1154.0+4037_daily_bin791.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161892/ft1_4FGL_J1154.0+4037_daily_bin791.fits outfile=/scratch/kocevski/161892/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin791.fits ra=178.514 dec=40.632 rad=12.0 tmin=444355201.0 tmax=444614401.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 6.55
user 6.22
sys 0.31

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161892/ft1_filtered_4FGL_J1154.0+4037_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/161892/ft2_4FGL_J1154.0+4037_daily_bin791.fits sctable="SC_DATA" expcube=/scratch/kocevski/161892/ltcube_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.fits outfile=/scratch/kocevski/161892/expmap_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.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/161892/ltcube_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.fits
.....................!
real 192.73
user 187.14
sys 5.16

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/161892/ft1_filtered_4FGL_J1154.0+4037_daily_bin791.fits scfile=/scratch/kocevski/161892/ft2_4FGL_J1154.0+4037_daily_bin791.fits outfile=/scratch/kocevski/161892/cmap_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.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.67
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161892/ft1_filtered_4FGL_J1154.0+4037_daily_bin791.fits scfile=/scratch/kocevski/161892/ft2_4FGL_J1154.0+4037_daily_bin791.fits outfile=/scratch/kocevski/161892/cmap_HighResolution_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.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.62
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/161892/ft1_filtered_4FGL_J1154.0+4037_daily_bin791.fits', '/scratch/kocevski/161892/ft2_4FGL_J1154.0+4037_daily_bin791.fits', expMap='/scratch/kocevski/161892/expmap_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.fits', expCube='/scratch/kocevski/161892/ltcube_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/161892/Model_4FGL_J1154.0+4037_daily_bin791.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/161892/ft1_filtered_4FGL_J1154.0+4037_daily_bin791.fits
Spacecraft file(s): /scratch/kocevski/161892/ft2_4FGL_J1154.0+4037_daily_bin791.fits
Exposure map: /scratch/kocevski/161892/expmap_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.fits
Exposure cube: /scratch/kocevski/161892/ltcube_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/161892/Model_4FGL_J1154.0+4037_daily_bin791.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) = 4418.67837263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.823       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1826       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.002       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10904E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6280       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5171       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.144       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.313       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.704       1.0000         .10000E-03   10000.    
    21 'norm      '    9.2566       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.498       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11371E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.911       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .77336       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1667       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72642       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=   4418.652     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3890 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.614        101.35       -.17413E-05   -.12338E-03
   2  norm          1.5394        .46301       -.92303E-08   -.37011E-05
   3  Prefactor     .10000E-03    22.121        .41621E-08** at limit **
   4  Prefactor     2.6015        18.311        .92650E-06    .85489E-05
   5  Prefactor     .10000E-03    33.232       -.37792E-07** at limit **
   6  norm          5.1858        15.978        .18996E-06   -.10510E-05
   7  norm          .10000E-03    25.452       -.59376E-07** at limit **
   8  Prefactor     .10000E-03    1.6638       -.30186E-06** at limit **
   9  Prefactor     .10000E-03    23.858       -.96360E-07** at limit **
  10  Prefactor     14.989        25.463       -.14871E-05   -.23910E-04
  11  norm          6.4046        3.4160       -.19767E-06   -.13365E-04
  12  Prefactor     .10000E-03    13.164       -.36192E-07** at limit **
  13  Prefactor     5.6257        7.5476        .54014E-05    .35258E-03
  14  Prefactor     .10000E-03    101.51        .52344E-07** at limit **
  15  norm          2.5174        1.4657       -.43590E-07   -.69199E-04
  16  norm          .10000E-03    5.7878        .74272E-07** at limit **
  17  Prefactor     32.185        36.967       -.15163E-05    .43101E-04
  18  Prefactor     .10000E-03    2.3589       -.71868E-08** at limit **
  19  Prefactor     58.317        53.015        .50800E-07    .72300E-05
  20  Prefactor     11.692        26.158        .35723E-06   -.21695E-05
  21  norm          9.2570        2.7597        .19073E-07   -.41417E-04
  22  Prefactor     .10000E-03    89.195        .46067E-05** at limit **
  23  norm          13.500        5.2143        .62103E-07   -.17238E-04
  24  Prefactor     .10000E-03    11.866        .90118E-06** at limit **
  25  Prefactor     .10000E-03    2.2143       -.19585E-06** at limit **
  26  norm          .10000E-03    2.5064       -.34721E-07** at limit **
  27  Prefactor     20.902        25.912        .46000E-07    .23521E-05
  28  Prefactor     .82617        18.252       -.40833E-05    .48051E-03
  29  Normalizat    1.1660        .21340        .16254E-05   -.55323E-04
  30  Prefactor     .72725        .24292       -.39581E-05    .58077E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.614
  norm       = 1.5394
  Prefactor  = 0.0001
  Prefactor  = 2.60153
  Prefactor  = 0.0001
  norm       = 5.1858
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9892
  norm       = 6.40463
  Prefactor  = 0.0001
  Prefactor  = 5.62568
  Prefactor  = 0.0001
  norm       = 2.51736
  norm       = 0.0001
  Prefactor  = 32.1848
  Prefactor  = 0.0001
  Prefactor  = 58.3173
  Prefactor  = 11.6919
  norm       = 9.25703
  Prefactor  = 0.000100001
  norm       = 13.4997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.902
  Prefactor  = 0.826171
  Normalizat = 1.166
  Prefactor  = 0.727252
 **********
 **   18 **HESSE 
 **********

 FCN=   4418.652     FROM HESSE     STATUS=OK           586 CALLS     4476 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.614        101.57        .23056E-03   -1.3967    
   2  norm          1.5394        .46543        .23199E-04   -1.5460    
   3  Prefactor     .10000E-03    22.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6015        18.399        .25288E-03   -1.5385    
   5  Prefactor     .10000E-03    33.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1858        15.947        .17658E-03   -1.5252    
   7  norm          .10000E-03    25.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7048        .83766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.989        25.447        .10341E-03   -1.4933    
  11  norm          6.4046        3.4118        .85606E-04   -1.5202    
  12  Prefactor     .10000E-03    13.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6257        7.6500        .84667E-03   -1.5234    
  14  Prefactor     .10000E-03    101.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5174        1.4634        .57095E-04   -1.5391    
  16  norm          .10000E-03    5.7915        .15618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.185        37.079        .70675E-04   -1.4573    
  18  Prefactor     .10000E-03    2.4066        .19852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     58.317        53.117        .52537E-04   -1.4179    
  20  Prefactor     11.692        26.115        .11710E-03   -1.5024    
  21  norm          9.2570        2.7597        .57670E-04   -1.5099    
  22  Prefactor     .10000E-03    89.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.500        5.1979        .91257E-04   -1.4973    
  24  Prefactor     .10000E-03    12.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.2361        .96292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.5072        .10272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.902        25.977        .87589E-04   -1.4793    
  28  Prefactor     .82617        80.783        .51649E-02   -1.5526    
  29  Normalizat    1.1660        .25161        .23504E-03   -.87660    
  30  Prefactor     .72725        .28354        .33791E-03   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86543e-09
Minuit parameter uncertainties:
  1  101.807
  2  0.465428
  3  2.21992e-05
  4  13.8429
  5  1.27484e-05
  6  15.9597
  7  4.7531e-05
  8  2.35746e-05
  9  3.95089e-05
  10  25.4652
  11  3.41192
  12  2.29629e-05
  13  7.65129
  14  0.000168004
  15  1.46347
  16  3.06862e-06
  17  37.1054
  18  3.54137e-06
  19  53.1607
  20  26.1405
  21  2.75969
  22  0.000588573
  23  5.19811
  24  3.44751e-05
  25  1.99301e-06
  26  9.65117e-08
  27  25.991
  28  16.3608
  29  0.251874
  30  0.284111
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  5.832e+01  5.316e+01  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:  7.273e-01  2.841e-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:  1.166e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 178.514 40.632
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.55e-05

TS (Fixed Index): 3.03
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161892/likelihoodResults_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.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): 0
logL (Free Index) = 4418.60380144
delta logL = 0.0481770889774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4418.60318337
delta logL = 0.0487951615441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.555       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3387       1.0000          .0000       10.000    
     3 'Normalizat'    1.1580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73183       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4418.603     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      297 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.512        65.123        .30032E-03    .55156E-04
   2  Index         2.3378        .79324        .59856E-02    .17269E-04
   3  Normalizat    1.1580        .24078        .23571E-03    .71150E-04
   4  Prefactor     .73225        .27822        .33681E-03    .40842E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.5118
  Index      = 2.33777
  Normalizat = 1.15797
  Prefactor  = 0.732254
 **********
 **   18 **HESSE 
 **********

 FCN=   4418.603     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.512        59.733        .12013E-04   -1.4373    
   2  Index         2.3378        .72761        .23942E-03   -.56149    
   3  Normalizat    1.1580        .24062        .47143E-04   -.87912    
   4  Prefactor     .73225        .27826        .13472E-04   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56696e-11
Minuit parameter uncertainties:
  1  59.8135
  2  0.73124
  3  0.240847
  4  0.27879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161892': 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) = 4418.60317537
delta logL = 0.048803160973

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  4.451e+01  5.981e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.338e+00  7.312e-01  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:  7.323e-01  2.788e-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:  1.158e+00  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.13
Ra Dec: 178.514 40.632
Photon Index (Free Index): 2.34 +/- 0.73
Photon Flux (Free Index): 4.01e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/161892/cmap_HighResolution_444355201_444614401_4FGL_J1154.0+4037_daily_bin791.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='1.43e-05', photon_flux_error='2.91e-08', dlogl='4.88e-02', energy_flux='1.70e-05', photon_flux2='4.01e-08', job_status='DONE', time_completed='2021-09-04 15:54:37.964110', photon_index_error2='0.73', photon_index2='2.34', ts='3.03', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.38e-05', EG='1.17', time_epoch_completed='1630796077.96', return_code='0', job_id='161892', GAL2='0.73', EG2='1.16', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.31e-08', ts2='3.13', photon_index='2.11' WHERE bin_id='791' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:54:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 161892: <4FGL_J1154.0+4037_daily_bin791> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin791> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:41:01 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:41:02 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:41:02 2021
Terminated at Sat Sep  4 15:54:39 2021
Results reported at Sat Sep  4 15:54:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin791 178.514 40.632 444355201 444614401 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 :                                   794.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

