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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin825
RA = 178.514, Dec = 40.632
tmin = 453168001, tmax = 453427201
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='161935', job_status='RUN', time_executed='2021-09-04 15:43:20.948491', time_epoch_executed='1630795400.95' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161935

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161935/ft1_4FGL_J1154.0+4037_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161935/ft2_4FGL_J1154.0+4037_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161935/ft1_4FGL_J1154.0+4037_daily_bin825.fits outfile=/scratch/kocevski/161935/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin825.fits ra=178.514 dec=40.632 rad=12.0 tmin=453168001.0 tmax=453427201.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.61
user 3.43
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161935/ft1_filtered_4FGL_J1154.0+4037_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/161935/ft2_4FGL_J1154.0+4037_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/161935/ltcube_453168001_453427201_4FGL_J1154.0+4037_daily_bin825.fits outfile=/scratch/kocevski/161935/expmap_453168001_453427201_4FGL_J1154.0+4037_daily_bin825.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/161935/ltcube_453168001_453427201_4FGL_J1154.0+4037_daily_bin825.fits
.....................!
real 189.72
user 184.65
sys 4.64

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/161935/ft1_filtered_4FGL_J1154.0+4037_daily_bin825.fits scfile=/scratch/kocevski/161935/ft2_4FGL_J1154.0+4037_daily_bin825.fits outfile=/scratch/kocevski/161935/cmap_453168001_453427201_4FGL_J1154.0+4037_daily_bin825.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161935/ft1_filtered_4FGL_J1154.0+4037_daily_bin825.fits scfile=/scratch/kocevski/161935/ft2_4FGL_J1154.0+4037_daily_bin825.fits outfile=/scratch/kocevski/161935/cmap_HighResolution_453168001_453427201_4FGL_J1154.0+4037_daily_bin825.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    33.142       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.112       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6514       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .39738       1.0000         .10000E-03   10000.    
    16 'norm      '    18.672       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.356       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19351E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    152.92       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.1802       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13310E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.247       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.4856       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .70872       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4159       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=   6437.106     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3919 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.994        .16419E-05** at limit **
   2  norm          1.0296        .28457       -.73062E-09    .37342E-03
   3  Prefactor     .10000E-03    7.2108       -.35666E-05** at limit **
   4  Prefactor     .10000E-03    4.1855       -.29254E-09** at limit **
   5  Prefactor     .10000E-03    28.740       -.24954E-05** at limit **
   6  norm          33.141        16.262       -.29156E-07    .10316E-03
   7  norm          .10000E-03    25.519       -.70612E-05** at limit **
   8  Prefactor     .10000E-03    1.5190       -.31083E-06** at limit **
   9  Prefactor     .10000E-03    17.899        .34026E-05** at limit **
  10  Prefactor     10.119        23.177        .12114E-06    .10001E-04
  11  norm          2.6527        2.0179        .19449E-07    .97315E-04
  12  Prefactor     6.6137        17.381       -.23922E-06   -.18742E-04
  13  Prefactor     4.6535        3.7221        .13480E-05   -.29998E-02
  14  Prefactor     .10000E-03    15.932       -.25289E-05** at limit **
  15  norm          .39675        1.1441       -.46330E-07   -.71867E-03
  16  norm          18.677        12.916       -.22284E-06   -.12659E-04
  17  Prefactor     41.352        33.417       -.96205E-06   -.18236E-04
  18  Prefactor     .10000E-03    1.7273        .37617E-06** at limit **
  19  Prefactor     152.93        91.169        .15088E-05    .75999E-04
  20  Prefactor     .10000E-03    16.416       -.15925E-06** at limit **
  21  norm          8.1794        2.2720        .10024E-08   -.16656E-05
  22  Prefactor     .10000E-03    124.08       -.31003E-05** at limit **
  23  norm          15.247        4.8356        .43556E-06    .45167E-03
  24  Prefactor     .10000E-03    7.5449        .31735E-05** at limit **
  25  Prefactor     .10000E-03    1.2499        .13622E-07** at limit **
  26  norm          6.4857        5.8946       -.46615E-07   -.22490E-03
  27  Prefactor     .10000E-03    30.798        .79113E-05** at limit **
  28  Prefactor     .10000E-03    9.9094       -.65045E-06** at limit **
  29  Normalizat    .70864        .17663       -.44807E-06   -.10903E-03
  30  Prefactor     1.4161        .21140       -.77145E-07   -.93908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.02956
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.1411
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.1188
  norm       = 2.6527
  Prefactor  = 6.61372
  Prefactor  = 4.65346
  Prefactor  = 0.0001
  norm       = 0.396753
  norm       = 18.6775
  Prefactor  = 41.352
  Prefactor  = 0.000100002
  Prefactor  = 152.93
  Prefactor  = 0.0001
  norm       = 8.17941
  Prefactor  = 0.0001
  norm       = 15.2467
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.48567
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 0.708636
  Prefactor  = 1.41608
 **********
 **   18 **HESSE 
 **********

 FCN=   6437.106     FROM HESSE     STATUS=OK           586 CALLS     4505 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0296        .28515        .21841E-04   -1.5505    
   3  Prefactor     .10000E-03    7.3210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1886        .16030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          33.141        16.201        .69605E-04   -1.4556    
   7  norm          .10000E-03    25.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1340        .18823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.119        22.935        .12601E-03   -1.5072    
  11  norm          2.6527        1.9938        .94720E-04   -1.5382    
  12  Prefactor     6.6137        17.150        .15600E-03   -1.5194    
  13  Prefactor     4.6535        5.6158        .93291E-03   -1.5276    
  14  Prefactor     .10000E-03    15.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .39675        1.0668        .11553E-03   -1.5582    
  16  norm          18.677        12.920        .92689E-04   -1.4843    
  17  Prefactor     41.352        33.553        .62334E-04   -1.4421    
  18  Prefactor     .10000E-03    6.7338        .19845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     152.93        86.525        .32596E-04   -1.3228    
  20  Prefactor     .10000E-03    16.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.1794        2.2709        .61121E-04   -1.5136    
  22  Prefactor     .10000E-03    127.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.247        4.8381        .96572E-04   -1.4927    
  24  Prefactor     .10000E-03    7.6879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.2537        .87553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.4857        5.8931        .15759E-03   -1.5199    
  27  Prefactor     .10000E-03    31.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.9190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .70864        .20622        .29104E-03   -1.0355    
  30  Prefactor     1.4161        .25202        .26757E-03   -.79918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16002e-09
Minuit parameter uncertainties:
  1  0.000114436
  2  0.285155
  3  0.000155053
  4  9.73555e-07
  5  0.000224413
  6  16.2034
  7  0.000601288
  8  2.03443e-05
  9  0.000246706
  10  22.9553
  11  1.99386
  12  17.1629
  13  5.61645
  14  0.000168469
  15  1.06681
  16  12.9216
  17  33.5687
  18  0.000242581
  19  86.5968
  20  2.55902e-05
  21  2.27094
  22  0.000434036
  23  4.83825
  24  0.000134356
  25  2.80069e-06
  26  5.89367
  27  0.00069706
  28  3.40097e-05
  29  0.20645
  30  0.25224
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.529e+02  8.660e+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:  1.416e+00  2.522e-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:  7.086e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.58
Ra Dec: 178.514 40.632
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 8.39e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 4.46e-05 +/- 2.53e-05

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) = 6434.56823798
delta logL = 2.5377830273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6434.55186164
delta logL = 2.55415936832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.606       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2716       1.0000          .0000       10.000    
     3 'Normalizat'    .57145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5312       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=   6434.552     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      316 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.616        112.96        .90456E-04    .33834E-03
   2  Index         3.2717        1.8943        .21722E-02    .28858E-03
   3  Normalizat    .57095        .23572        .32088E-03   -.33329E-03
   4  Prefactor     1.5318        .28574        .25872E-03    .75395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6161
  Index      = 3.27171
  Normalizat = 0.570953
  Prefactor  = 1.5318
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.552     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.616        31.511        .36182E-05   -1.4822    
   2  Index         3.2717        .64913        .86888E-04   -.35294    
   3  Normalizat    .57095        .21220        .12835E-04   -1.0923    
   4  Prefactor     1.5318        .26029        .51744E-04   -.76653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69837e-09
Minuit parameter uncertainties:
  1  31.5377
  2  0.651219
  3  0.212504
  4  0.260516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161935': 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) = 6434.55185746
delta logL = 2.55416354583

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.962e+01  3.154e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.272e+00  6.512e-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:  1.532e+00  2.605e-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:  5.710e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.31
Ra Dec: 178.514 40.632
Photon Index (Free Index): 3.27 +/- 0.65
Photon Flux (Free Index): 1.77e-07 +/- 6.79e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.19e-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/161935/cmap_HighResolution_453168001_453427201_4FGL_J1154.0+4037_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.39e-08', energy_flux2='3.16e-05', photon_flux_error='4.75e-08', dlogl='2.55e+00', energy_flux='4.46e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-04 15:57:34.741000', photon_index_error2='0.65', photon_index2='3.27', ts='6.58', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.71', time_epoch_completed='1630796254.74', return_code='0', job_id='161935', GAL2='1.53', EG2='0.57', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='6.79e-08', ts2='12.31', photon_index='2.11' WHERE bin_id='825' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:57:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 161935: <4FGL_J1154.0+4037_daily_bin825> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin825 178.514 40.632 453168001 453427201 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 :                                   852.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             269.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

