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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin808
RA = 178.514, Dec = 40.632
tmin = 448761601, tmax = 449020801
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='161912', job_status='RUN', time_executed='2021-09-04 15:44:41.667157', time_epoch_executed='1630795481.67' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161912/ft1_4FGL_J1154.0+4037_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161912/ft2_4FGL_J1154.0+4037_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161912/ft1_4FGL_J1154.0+4037_daily_bin808.fits outfile=/scratch/kocevski/161912/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin808.fits ra=178.514 dec=40.632 rad=12.0 tmin=448761601.0 tmax=449020801.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 5.97
user 5.51
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161912/ft1_filtered_4FGL_J1154.0+4037_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/161912/ft2_4FGL_J1154.0+4037_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/161912/ltcube_448761601_449020801_4FGL_J1154.0+4037_daily_bin808.fits outfile=/scratch/kocevski/161912/expmap_448761601_449020801_4FGL_J1154.0+4037_daily_bin808.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/161912/ltcube_448761601_449020801_4FGL_J1154.0+4037_daily_bin808.fits
.....................!
real 189.19
user 185.20
sys 3.34

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/161912/ft1_filtered_4FGL_J1154.0+4037_daily_bin808.fits scfile=/scratch/kocevski/161912/ft2_4FGL_J1154.0+4037_daily_bin808.fits outfile=/scratch/kocevski/161912/cmap_448761601_449020801_4FGL_J1154.0+4037_daily_bin808.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161912/ft1_filtered_4FGL_J1154.0+4037_daily_bin808.fits scfile=/scratch/kocevski/161912/ft2_4FGL_J1154.0+4037_daily_bin808.fits outfile=/scratch/kocevski/161912/cmap_HighResolution_448761601_449020801_4FGL_J1154.0+4037_daily_bin808.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3062       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0120       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.164       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2582       1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.092       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2673       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.5316       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2890       1.0000         .10000E-03   10000.    
    26 'norm      '    1.9582       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1624       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86896       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=   4361.541     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3921 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.772        .19264E-04** at limit **
   2  norm          1.7865        .44539       -.10421E-07    .21314E-03
   3  Prefactor     26.544        20.412       -.18103E-06   -.63140E-04
   4  Prefactor     .10000E-03    12.082       -.47464E-05** at limit **
   5  Prefactor     .10000E-03    35.637        .17173E-04** at limit **
   6  norm          .10000E-03    15.735        .93240E-05** at limit **
   7  norm          .10000E-03    19.617       -.96162E-05** at limit **
   8  Prefactor     .10000E-03    1.9316       -.26224E-06** at limit **
   9  Prefactor     .10000E-03    27.316        .28835E-05** at limit **
  10  Prefactor     .10000E-03    8.3698       -.10806E-05** at limit **
  11  norm          3.7006        2.9608       -.22096E-07    .16916E-04
  12  Prefactor     .10000E-03    7.9691        .58059E-06** at limit **
  13  Prefactor     .10000E-03    4.1162        .11325E-06** at limit **
  14  Prefactor     .10000E-03    44.473       -.25451E-04** at limit **
  15  norm          1.3062        1.2213       -.30715E-06    .83998E-05
  16  norm          4.0117        15.903       -.32133E-05   -.64315E-04
  17  Prefactor     .10000E-03    11.791        .12055E-04** at limit **
  18  Prefactor     .10000E-03    2.1313        .51870E-08** at limit **
  19  Prefactor     34.193        48.327        .16854E-04    .27604E-04
  20  Prefactor     .10000E-03    7.4864       -.24545E-06** at limit **
  21  norm          2.2583        1.4035        .13791E-06   -.67071E-04
  22  Prefactor     46.092        38.483       -.92888E-07   -.31440E-04
  23  norm          5.2669        5.1745        .19245E-07   -.14459E-03
  24  Prefactor     4.5321        8.6390       -.27347E-06   -.16177E-03
  25  Prefactor     7.2899        5.6574       -.10021E-06   -.64182E-04
  26  norm          1.9511        25.476       -.46116E-06    .37377E-04
  27  Prefactor     .10195E-03    45.441       -.34890E-05** at limit **
  28  Prefactor     .10000E-03    12.275       -.10482E-04** at limit **
  29  Normalizat    1.1623        .20023        .31926E-06    .18111E-03
  30  Prefactor     .86905        .23462       -.63186E-06    .94335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.78648
  Prefactor  = 26.5441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.70059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30621
  norm       = 4.01172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.193
  Prefactor  = 0.0001
  norm       = 2.25826
  Prefactor  = 46.092
  norm       = 5.26695
  Prefactor  = 4.53212
  Prefactor  = 7.2899
  norm       = 1.95112
  Prefactor  = 0.000101951
  Prefactor  = 0.0001
  Normalizat = 1.16226
  Prefactor  = 0.869054
 **********
 **   18 **HESSE 
 **********

 FCN=   4361.541     FROM HESSE     STATUS=OK           584 CALLS     4505 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7865        .44679        .20730E-04   -1.5441    
   3  Prefactor     26.544        20.465        .77759E-04   -1.4677    
   4  Prefactor     .10000E-03    12.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0175        .17879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7006        2.9465        .96559E-04   -1.5323    
  12  Prefactor     .10000E-03    7.9955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1922        .13078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3062        1.1940        .65403E-04   -1.5479    
  16  norm          4.0117        15.874        .20134E-03   -1.5307    
  17  Prefactor     .10000E-03    11.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1661        .94102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.193        48.301        .68559E-04   -1.4538    
  20  Prefactor     .10000E-03    7.4902        .17649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2583        1.4034        .59886E-04   -1.5407    
  22  Prefactor     46.092        38.497        .59058E-04   -1.4349    
  23  norm          5.2669        5.1993        .12691E-03   -1.5249    
  24  Prefactor     4.5321        8.6301        .18912E-03   -1.5282    
  25  Prefactor     7.2899        5.6891        .11800E-03   -1.5168    
  26  norm          1.9511        16.203        .29646E-03   -1.5429    
  27  Prefactor     .10195E-03    218.21        .66948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1623        .23518        .22869E-03   -.87777    
  30  Prefactor     .86905        .27505        .30948E-03   -.97231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71435e-09
Minuit parameter uncertainties:
  1  1.30761e-05
  2  0.44679
  3  20.4701
  4  1.01775e-05
  5  5.68037e-07
  6  1.67691e-05
  7  2.02614e-07
  8  6.92865e-07
  9  2.54148e-06
  10  3.17129e-07
  11  2.94663
  12  7.3363e-07
  13  2.30868e-06
  14  4.92432e-06
  15  1.19398
  16  15.8907
  17  6.34474e-06
  18  1.46672e-06
  19  48.3565
  20  1.80402e-06
  21  1.40339
  22  38.5183
  23  5.19979
  24  8.63251
  25  5.68951
  26  11.249
  27  0.0414186
  28  2.1516e-06
  29  0.235394
  30  0.275494
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  3.419e+01  4.836e+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:  8.691e-01  2.755e-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.162e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 9.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161912/likelihoodResults_448761601_449020801_4FGL_J1154.0+4037_daily_bin808.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) = 4361.51730662
delta logL = 0.0237430440775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4361.51602711
delta logL = 0.0250225586396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.835       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9252       1.0000          .0000       10.000    
     3 'Normalizat'    1.1655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86708       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=   4361.516     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.836        64.831        .61978E-04   -.12840E-04
   2  Index         1.9252        .84075        .80197E-02   -.22899E-04
   3  Normalizat    1.1656        .22903        .22842E-03    .54002E-04
   4  Prefactor     .86696        .27293        .30981E-03    .47925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8359
  Index      = 1.92518
  Normalizat = 1.16558
  Prefactor  = 0.866961
 **********
 **   18 **HESSE 
 **********

 FCN=   4361.516     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.836        63.382        .12396E-04   -1.4413    
   2  Index         1.9252        .82222        .32079E-03   -.66234    
   3  Normalizat    1.1656        .22919        .91367E-05   -.87673    
   4  Prefactor     .86696        .27315        .12392E-04   -.97305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71454e-11
Minuit parameter uncertainties:
  1  63.4848
  2  0.828303
  3  0.229383
  4  0.273582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161912': 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) = 4361.51602701
delta logL = 0.02502265565

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  4.184e+01  6.348e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.925e+00  8.283e-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:  8.670e-01  2.736e-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.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 178.514 40.632
Photon Index (Free Index): 1.93 +/- 0.83
Photon Flux (Free Index): 1.55e-08 +/- 2.61e-08
Energy Flux (Free Index): 1.30e-05 +/- 2.41e-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/161912/cmap_HighResolution_448761601_449020801_4FGL_J1154.0+4037_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='2.50e-02', photon_flux2='1.55e-08', job_status='DONE', time_completed='2021-09-04 15:57:39.150603', photon_index_error2='0.83', photon_index2='1.93', ts='0.96', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.43e-08', energy_flux_error2='2.41e-05', EG='1.16', time_epoch_completed='1630796259.15', return_code='0', job_id='161912', GAL2='0.87', EG2='1.17', return_code2='0', photon_flux_error2='2.61e-08', ts2='1.01', photon_index='2.11' WHERE bin_id='808' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:57:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 161912: <4FGL_J1154.0+4037_daily_bin808> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin808 178.514 40.632 448761601 449020801 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 :                                   775.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

