/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 171 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1154.0+4037_daily_bin129
RA = 178.514, Dec = 40.632
tmin = 272764801, tmax = 273024001
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='157728', job_status='RUN', time_executed='2021-09-04 15:29:42.865854', time_epoch_executed='1630794582.87' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157728

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157728/ft1_4FGL_J1154.0+4037_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157728/ft2_4FGL_J1154.0+4037_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157728/ft1_4FGL_J1154.0+4037_daily_bin129.fits outfile=/scratch/kocevski/157728/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin129.fits ra=178.514 dec=40.632 rad=12.0 tmin=272764801.0 tmax=273024001.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 1.73
user 1.57
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157728/ft1_filtered_4FGL_J1154.0+4037_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/157728/ft2_4FGL_J1154.0+4037_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/157728/ltcube_272764801_273024001_4FGL_J1154.0+4037_daily_bin129.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/157728/ft2_4FGL_J1154.0+4037_daily_bin129.fits
.....................!
real 12.21
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157728/ft1_filtered_4FGL_J1154.0+4037_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/157728/ft2_4FGL_J1154.0+4037_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/157728/ltcube_272764801_273024001_4FGL_J1154.0+4037_daily_bin129.fits outfile=/scratch/kocevski/157728/expmap_272764801_273024001_4FGL_J1154.0+4037_daily_bin129.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/157728/ltcube_272764801_273024001_4FGL_J1154.0+4037_daily_bin129.fits
.....................!
real 189.90
user 185.64
sys 3.92

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/157728/ft1_filtered_4FGL_J1154.0+4037_daily_bin129.fits scfile=/scratch/kocevski/157728/ft2_4FGL_J1154.0+4037_daily_bin129.fits outfile=/scratch/kocevski/157728/cmap_272764801_273024001_4FGL_J1154.0+4037_daily_bin129.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157728/ft1_filtered_4FGL_J1154.0+4037_daily_bin129.fits scfile=/scratch/kocevski/157728/ft2_4FGL_J1154.0+4037_daily_bin129.fits outfile=/scratch/kocevski/157728/cmap_HighResolution_272764801_273024001_4FGL_J1154.0+4037_daily_bin129.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=178.514 yref=40.632 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5621       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.265       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2121       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .62214E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5713       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.859       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29068       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.324       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0578       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3385       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1951       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7158       1.0000         .10000E-03   10000.    
    26 'norm      '    2.7679       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.577       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91282       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0921       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=   5351.590     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     3378 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.965       -.31768E-04** at limit **
   2  norm          1.5621        .40732       -.80603E-08    .91044E-04
   3  Prefactor     23.992        19.325       -.37515E-06   -.24624E-03
   4  Prefactor     16.196        15.373        .90909E-07   -.43643E-06
   5  Prefactor     .10000E-03    50.881        .22856E-04** at limit **
   6  norm          18.264        15.974        .12252E-06   -.22248E-04
   7  norm          .10000E-03    33.581       -.25752E-04** at limit **
   8  Prefactor     1.1450        2.2626       -.63995E-06   -.10654E-02
   9  Prefactor     .10000E-03    21.392        .17691E-04** at limit **
  10  Prefactor     .10000E-03    26.003       -.63974E-05** at limit **
  11  norm          .10000E-03    1.5791       -.72819E-07** at limit **
  12  Prefactor     7.2137        10.930        .15291E-06    .20488E-04
  13  Prefactor     .10000E-03    2.8107        .37476E-06** at limit **
  14  Prefactor     .10000E-03    49.190        .18293E-04** at limit **
  15  norm          1.5721        1.1372        .17860E-06   -.78249E-03
  16  norm          .10000E-03    3.6054        .10774E-06** at limit **
  17  Prefactor     12.844        21.420       -.11211E-05   -.95579E-05
  18  Prefactor     .31904        2.4785       -.10308E-05    .16928E-03
  19  Prefactor     11.315        37.019       -.11455E-04   -.18944E-04
  20  Prefactor     2.0153        36.803        .62641E-05   -.10560E-04
  21  norm          1.3394        1.4210       -.11369E-06   -.51235E-03
  22  Prefactor     .10000E-03    16.975       -.62696E-05** at limit **
  23  norm          3.1953        2.5155        .24737E-08    .11456E-03
  24  Prefactor     .10000E-03    3.0091       -.37426E-07** at limit **
  25  Prefactor     1.7159        2.1580       -.51386E-07   -.85413E-04
  26  norm          2.7676        5.2622       -.63209E-05   -.44867E-03
  27  Prefactor     .10000E-03    7.7808        .33627E-06** at limit **
  28  Prefactor     22.579        18.706       -.18499E-06    .34737E-05
  29  Normalizat    .91252        .17603        .54121E-06    .99094E-04
  30  Prefactor     1.0923        .20878        .78391E-06    .90085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.56214
  Prefactor  = 23.9923
  Prefactor  = 16.1958
  Prefactor  = 0.0001
  norm       = 18.2641
  norm       = 0.0001
  Prefactor  = 1.14498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.21368
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.57214
  norm       = 0.0001
  Prefactor  = 12.8435
  Prefactor  = 0.319039
  Prefactor  = 11.3153
  Prefactor  = 2.01529
  norm       = 1.3394
  Prefactor  = 0.0001
  norm       = 3.19525
  Prefactor  = 0.0001
  Prefactor  = 1.71595
  norm       = 2.76758
  Prefactor  = 0.0001
  Prefactor  = 22.5789
  Normalizat = 0.912523
  Prefactor  = 1.09226
 **********
 **   18 **HESSE 
 **********

 FCN=   5351.590     FROM HESSE     STATUS=OK           598 CALLS     3976 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    90.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5621        .40893        .22420E-04   -1.5458    
   3  Prefactor     23.992        19.327        .40889E-03   -1.4728    
   4  Prefactor     16.196        15.387        .99525E-04   -1.4903    
   5  Prefactor     .10000E-03    50.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.264        15.946        .93715E-04   -1.4853    
   7  norm          .10000E-03    33.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1450        2.1345        .14187E-03   -1.5494    
   9  Prefactor     .10000E-03    21.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1314        .17139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2137        10.895        .14936E-03   -1.5171    
  13  Prefactor     .10000E-03    15.032        .22939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5721        1.1301        .33911E-04   -1.5457    
  16  norm          .10000E-03    3.6082        .13565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.844        21.322        .11170E-03   -1.4991    
  18  Prefactor     .31904        12.143        .19038E-02   -1.5595    
  19  Prefactor     11.315        36.962        .11905E-03   -1.5035    
  20  Prefactor     2.0153        39.593        .28810E-03   -1.5424    
  21  norm          1.3394        1.3967        .85553E-04   -1.5477    
  22  Prefactor     .10000E-03    16.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1953        2.5272        .98161E-04   -1.5350    
  24  Prefactor     .10000E-03    3.0170        .12392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.7159        2.1537        .11508E-03   -1.5446    
  26  norm          2.7676        5.3108        .22677E-03   -1.5375    
  27  Prefactor     .10000E-03    7.7917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     22.579        18.706        .84299E-04   -1.4757    
  29  Normalizat    .91252        .20605        .24108E-03   -.96021    
  30  Prefactor     1.0923        .24651        .27156E-03   -.89714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34321e-09
Minuit parameter uncertainties:
  1  2.24867e-07
  2  0.408932
  3  19.3324
  4  15.3909
  5  9.16637e-06
  6  15.9497
  7  2.59213e-06
  8  2.13465
  9  1.16903e-05
  10  2.45774e-05
  11  1.30641e-06
  12  10.8983
  13  0.000372665
  14  8.31335e-05
  15  1.13016
  16  7.6472e-06
  17  21.3342
  18  3.93685
  19  37.0371
  20  17.8783
  21  1.39668
  22  7.34144e-06
  23  2.52732
  24  1.59493e-06
  25  2.15381
  26  5.31166
  27  6.84111e-05
  28  18.7105
  29  0.206228
  30  0.246769
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.132e+01  3.704e+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.092e+00  2.468e-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:  9.125e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/157728/likelihoodResults_272764801_273024001_4FGL_J1154.0+4037_daily_bin129.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) = 5351.58984255
delta logL = 0.000505084827637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5351.58965327
delta logL = 0.000694368286531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.517       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1844       1.0000          .0000       10.000    
     3 'Normalizat'    .91189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0924       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=   5351.590     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      242 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.538        45.739        .12355E-03    .40749E-03
   2  Index         2.1839        1.9984        .13087E-01    .23767E-03
   3  Normalizat    .91193        .20056        .24115E-03    .18281E-02
   4  Prefactor     1.0927        .24521        .27151E-03    .18193E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5382
  Index      = 2.1839
  Normalizat = 0.911929
  Prefactor  = 1.09268
 **********
 **   18 **HESSE 
 **********

 FCN=   5351.590     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.538        39.683        .24710E-04   -1.5059    
   2  Index         2.1839        1.8228        .52347E-03   -.59828    
   3  Normalizat    .91193        .20046        .48230E-04   -.96042    
   4  Prefactor     1.0927        .24522        .54303E-04   -.89701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13423e-08
Minuit parameter uncertainties:
  1  39.7825
  2  1.88786
  3  0.200627
  4  0.245474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157728': 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) = 5351.58964993
delta logL = 0.000697706257597

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.054e+01  3.978e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.184e+00  1.888e+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:  1.093e+00  2.455e-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:  9.119e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 178.514 40.632

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-04 15:43:01.435087', job_id='157728', GAL2='1.09', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630795381.44', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.98e-04', ts2='0.13', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='129' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:43:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 157728: <4FGL_J1154.0+4037_daily_bin129> in cluster <slac> Done

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

Your job looked like:

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

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

