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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin748
RA = 178.514, Dec = 40.632
tmin = 433209601, tmax = 433468801
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='160908', job_status='RUN', time_executed='2021-09-04 15:38:48.731956', time_epoch_executed='1630795128.73' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160908

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160908/ft1_4FGL_J1154.0+4037_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160908/ft2_4FGL_J1154.0+4037_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160908/ft1_4FGL_J1154.0+4037_daily_bin748.fits outfile=/scratch/kocevski/160908/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin748.fits ra=178.514 dec=40.632 rad=12.0 tmin=433209601.0 tmax=433468801.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.00
user 5.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160908/ft1_filtered_4FGL_J1154.0+4037_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/160908/ft2_4FGL_J1154.0+4037_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/160908/ltcube_433209601_433468801_4FGL_J1154.0+4037_daily_bin748.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/160908/ft2_4FGL_J1154.0+4037_daily_bin748.fits
.....................!
real 11.82
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160908/ft1_filtered_4FGL_J1154.0+4037_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/160908/ft2_4FGL_J1154.0+4037_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/160908/ltcube_433209601_433468801_4FGL_J1154.0+4037_daily_bin748.fits outfile=/scratch/kocevski/160908/expmap_433209601_433468801_4FGL_J1154.0+4037_daily_bin748.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/160908/ltcube_433209601_433468801_4FGL_J1154.0+4037_daily_bin748.fits
.....................!
real 189.83
user 185.06
sys 4.45

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/160908/ft1_filtered_4FGL_J1154.0+4037_daily_bin748.fits scfile=/scratch/kocevski/160908/ft2_4FGL_J1154.0+4037_daily_bin748.fits outfile=/scratch/kocevski/160908/cmap_433209601_433468801_4FGL_J1154.0+4037_daily_bin748.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160908/ft1_filtered_4FGL_J1154.0+4037_daily_bin748.fits scfile=/scratch/kocevski/160908/ft2_4FGL_J1154.0+4037_daily_bin748.fits outfile=/scratch/kocevski/160908/cmap_HighResolution_433209601_433468801_4FGL_J1154.0+4037_daily_bin748.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.097       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7806       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .22869E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92445E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.577       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4174       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5186       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3190       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0630       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .93078E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .82453       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0821       1.0000         .10000E-03   10000.    
    23 'norm      '    5.9659       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5457       1.0000         .10000E-03   10000.    
    26 'norm      '    5.0421       1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.811       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0856       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74643       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=   4333.187     FROM MIGRAD    STATUS=CONVERGED   1392 CALLS     4535 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.116        72.169        .23805E-03   -.25025E-04
   2  norm          2.7808        .48872        .18631E-04    .77680E-03
   3  Prefactor     .10000E-03    16.188        .18142E-02** at limit **
   4  Prefactor     .10000E-03    8.0376        .18142E-02** at limit **
   5  Prefactor     .10000E-03    65.247        .18142E-02** at limit **
   6  norm          .10004E-03    186.71        .51621E-02** at limit **
   7  norm          .10000E-03    34.888        .18142E-02** at limit **
   8  Prefactor     .10000E-03    1.6373        .16181E-03** at limit **
   9  Prefactor     .10001E-03    393.71        .83455E-02** at limit **
  10  Prefactor     13.581        18.353        .10871E-03    .94961E-04
  11  norm          2.4204        2.5429        .10300E-03   -.26026E-03
  12  Prefactor     18.397        15.301        .93384E-04    .16279E-03
  13  Prefactor     3.4470        4.4980        .15322E-03    .39502E-03
  14  Prefactor     .10000E-03    32.161        .18142E-02** at limit **
  15  norm          4.5202        1.5508        .45540E-04   -.18375E-02
  16  norm          5.3204        7.0921        .17426E-03   -.75585E-04
  17  Prefactor     .10000E-03    36.257        .18142E-02** at limit **
  18  Prefactor     5.0618        4.0548        .11299E-03    .94985E-04
  19  Prefactor     .10002E-03    346.36        .41618E-03** at limit **
  20  Prefactor     .10000E-03    11.826        .18142E-02** at limit **
  21  norm          .82432        1.2341        .97459E-03   -.62790E-03
  22  Prefactor     7.0674        27.542        .15074E-03    .11079E-03
  23  norm          5.9654        4.6927        .11675E-03    .17128E-03
  24  Prefactor     .10000E-03    4.3194        .13330E-02** at limit **
  25  Prefactor     3.5450        3.8398        .12418E-03    .62803E-04
  26  norm          5.0420        6.8696        .17907E-03    .24125E-05
  27  Prefactor     46.788        40.953        .58604E-04    .44036E-04
  28  Prefactor     .10000E-03    10.518        .18142E-02** at limit **
  29  Normalizat    1.0859        .24227        .23158E-03    .37261E-04
  30  Prefactor     .74634        .27357        .32558E-03    .99622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.1162
  norm       = 2.78084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100045
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 13.5805
  norm       = 2.42042
  Prefactor  = 18.3974
  Prefactor  = 3.447
  Prefactor  = 0.0001
  norm       = 4.52015
  norm       = 5.32039
  Prefactor  = 0.0001
  Prefactor  = 5.06178
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 0.824318
  Prefactor  = 7.06742
  norm       = 5.96544
  Prefactor  = 0.0001
  Prefactor  = 3.54496
  norm       = 5.04195
  Prefactor  = 46.7879
  Prefactor  = 0.0001
  Normalizat = 1.08592
  Prefactor  = 0.746338
 **********
 **   18 **HESSE 
 **********

 FCN=   4333.187     FROM HESSE     STATUS=OK           558 CALLS     5093 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.116        72.166        .95220E-05   -1.4019    
   2  norm          2.7808        .48862        .74523E-06   -1.5374    
   3  Prefactor     .10000E-03    16.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10004E-03    194.18        .20648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    34.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6373        .32361E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    409.48        .33382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.581        18.352        .43482E-05   -1.4971    
  11  norm          2.4204        2.5343        .41202E-05   -1.5397    
  12  Prefactor     18.397        15.300        .18677E-04   -1.4850    
  13  Prefactor     3.4470        4.4974        .61290E-05   -1.5337    
  14  Prefactor     .10000E-03    32.163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5202        1.5508        .91080E-05   -1.5283    
  16  norm          5.3204        7.0921        .34853E-04   -1.5247    
  17  Prefactor     .10000E-03    36.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0618        4.0544        .45195E-05   -1.5258    
  19  Prefactor     .10002E-03    346.37        .83235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .82432        1.2334        .38984E-04   -1.5526    
  22  Prefactor     7.0674        27.531        .60296E-05   -1.5176    
  23  norm          5.9654        4.6927        .46702E-05   -1.5219    
  24  Prefactor     .10000E-03    4.3198        .26659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5450        3.8399        .49672E-05   -1.5331    
  26  norm          5.0420        6.8690        .71630E-05   -1.5259    
  27  Prefactor     46.788        40.921        .23442E-05   -1.4339    
  28  Prefactor     .10000E-03    10.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0859        .24227        .92631E-05   -.90205    
  30  Prefactor     .74634        .27371        .13023E-04   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61768e-10
Minuit parameter uncertainties:
  1  72.2548
  2  0.488619
  3  4.33753e-05
  4  9.82551e-06
  5  0.000340091
  6  0.0059083
  7  0.000131813
  8  5.92589e-07
  9  0.00407118
  10  18.3592
  11  2.53445
  12  15.3036
  13  4.4978
  14  0.000106498
  15  1.55079
  16  7.09324
  17  4.49426e-05
  18  4.05462
  19  0.00485794
  20  3.03749e-05
  21  1.23343
  22  27.5804
  23  4.69304
  24  2.21111e-06
  25  3.84019
  26  6.87006
  27  40.9452
  28  5.62282e-06
  29  0.242517
  30  0.274209
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.858e-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:  7.463e-01  2.742e-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.086e+00  2.425e-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: 8.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160908/likelihoodResults_433209601_433468801_4FGL_J1154.0+4037_daily_bin748.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) = 4333.18660684
delta logL = -1.36211929203e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4333.18660684
delta logL = -1.36200042107e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1147       1.0000          .0000       10.000    
     3 'Normalizat'    1.0859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74634       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=   4332.197     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      283 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21583        2.9460        .53173E-02    .42268E-02
   2  Index         4.6384        2.1149        .81155E-01    .39250E-03
   3  Normalizat    1.0029        .50948E-01    .38604E-01    .13584E-02
   4  Prefactor     .80573        .60754E-01    .70969E-01    .86731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.215833
  Index      = 4.63837
  Normalizat = 1.0029
  Prefactor  = 0.805726
 **********
 **   18 **HESSE 
 **********

 FCN=   4332.197     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      314 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21583        7.0809        .24104E-03   -1.5615    
   2  Index         4.6384        3.6734        .30743E-02   -.72388E-01
   3  Normalizat    1.0029        .18137        .23889E-03   -.92933    
   4  Prefactor     .80573        .21372        .31404E-03   -.99518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.72046e-09
Minuit parameter uncertainties:
  1  2.47222
  2  4.1294
  3  0.181484
  4  0.213938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160908': 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) = 4332.19651917
delta logL = 0.99007404825

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  2.158e-01  2.472e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  4.638e+00  4.129e+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:  8.057e-01  2.139e-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.003e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 178.514 40.632
Photon Index (Free Index): 4.64 +/- 4.13
Photon Flux (Free Index): 7.71e-08 +/- 5.93e-08
Energy Flux (Free Index): 1.06e-05 +/- 9.54e-06

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/160908/cmap_HighResolution_433209601_433468801_4FGL_J1154.0+4037_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='9.90e-01', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-09-04 15:52:35.938088', photon_index_error2='4.13', photon_index2='4.64', ts='-0.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='8.56e-08', energy_flux_error2='9.54e-06', EG='1.09', time_epoch_completed='1630795955.94', return_code='0', job_id='160908', GAL2='0.81', EG2='1.00', return_code2='102', photon_flux_error2='5.93e-08', ts2='2.06', photon_index='2.11' WHERE bin_id='748' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:52:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 160908: <4FGL_J1154.0+4037_daily_bin748> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin748> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 15:36:58 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:36:59 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:36:59 2021
Terminated at Sat Sep  4 15:52:36 2021
Results reported at Sat Sep  4 15:52:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin748 178.514 40.632 433209601 433468801 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

