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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin806
RA = 178.514, Dec = 40.632
tmin = 448243201, tmax = 448502401
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='161909', job_status='RUN', time_executed='2021-09-04 15:44:28.095808', time_epoch_executed='1630795468.1' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161909

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161909/ft1_4FGL_J1154.0+4037_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161909/ft2_4FGL_J1154.0+4037_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161909/ft1_4FGL_J1154.0+4037_daily_bin806.fits outfile=/scratch/kocevski/161909/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin806.fits ra=178.514 dec=40.632 rad=12.0 tmin=448243201.0 tmax=448502401.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.26
user 5.04
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161909/ft2_4FGL_J1154.0+4037_daily_bin806.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/161909/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin806.fits evtable="EVENTS" outfile="/scratch/kocevski/161909/ft1_filtered_4FGL_J1154.0+4037_daily_bin806.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/161909/ft1_filtered_4FGL_J1154.0+4037_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/161909/ft2_4FGL_J1154.0+4037_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/161909/ltcube_448243201_448502401_4FGL_J1154.0+4037_daily_bin806.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/161909/ft2_4FGL_J1154.0+4037_daily_bin806.fits
.....................!
real 12.88
user 12.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161909/ft1_filtered_4FGL_J1154.0+4037_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/161909/ft2_4FGL_J1154.0+4037_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/161909/ltcube_448243201_448502401_4FGL_J1154.0+4037_daily_bin806.fits outfile=/scratch/kocevski/161909/expmap_448243201_448502401_4FGL_J1154.0+4037_daily_bin806.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/161909/ltcube_448243201_448502401_4FGL_J1154.0+4037_daily_bin806.fits
.....................!
real 191.12
user 185.71
sys 4.81

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/161909/ft1_filtered_4FGL_J1154.0+4037_daily_bin806.fits scfile=/scratch/kocevski/161909/ft2_4FGL_J1154.0+4037_daily_bin806.fits outfile=/scratch/kocevski/161909/cmap_448243201_448502401_4FGL_J1154.0+4037_daily_bin806.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161909/ft1_filtered_4FGL_J1154.0+4037_daily_bin806.fits scfile=/scratch/kocevski/161909/ft2_4FGL_J1154.0+4037_daily_bin806.fits outfile=/scratch/kocevski/161909/cmap_HighResolution_448243201_448502401_4FGL_J1154.0+4037_daily_bin806.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1631       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27283E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.037       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.3890       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2362       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9514       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2299       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17574E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1903       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10733E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4701       1.0000         .10000E-03   10000.    
    21 'norm      '    8.2952       1.0000         .10000E-03   10000.    
    22 'Prefactor '    71.837       1.0000         .10000E-03   10000.    
    23 'norm      '    7.5034       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.4095       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .35099E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.740       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .65179       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .51363       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3242       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=   4067.400     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4074 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.260        .91070E-06** at limit **
   2  norm          1.1627        .34385       -.30017E-07   -.68566E-03
   3  Prefactor     .10000E-03    73.318       -.11551E-04** at limit **
   4  Prefactor     .10000E-03    17.618        .38850E-07** at limit **
   5  Prefactor     .10000E-03    31.088       -.39117E-06** at limit **
   6  norm          14.011        17.432       -.95402E-06   -.75909E-04
   7  norm          .10000E-03    33.754       -.28389E-06** at limit **
   8  Prefactor     .82804        1.8139        .56067E-06    .18296E-04
   9  Prefactor     .10000E-03    22.600        .61303E-06** at limit **
  10  Prefactor     .10000E-03    20.312       -.66533E-06** at limit **
  11  norm          5.3916        3.3862       -.90937E-07    .70872E-04
  12  Prefactor     .10000E-03    48.640        .75113E-07** at limit **
  13  Prefactor     3.2309        6.5151       -.63404E-06    .24259E-03
  14  Prefactor     4.7578        137.45       -.47287E-05   -.22800E-04
  15  norm          2.2315        1.4892        .32443E-07   -.43419E-03
  16  norm          .10000E-03    5.9616       -.42911E-08** at limit **
  17  Prefactor     .10000E-03    93.592       -.21798E-05** at limit **
  18  Prefactor     8.1918        6.2869       -.54053E-07    .21756E-04
  19  Prefactor     .10000E-03    136.05        .43752E-05** at limit **
  20  Prefactor     6.4732        29.200        .11190E-06   -.14776E-05
  21  norm          8.2946        2.4466        .10668E-07    .27133E-03
  22  Prefactor     71.799        42.309        .21479E-06    .11412E-03
  23  norm          7.4974        4.4641       -.32032E-07   -.21093E-05
  24  Prefactor     8.4100        7.7128        .11428E-06    .48425E-04
  25  Prefactor     .51639E-01    2.3557        .46975E-06   -.58367E-04
  26  norm          .10000E-03    6.2319        .66458E-08** at limit **
  27  Prefactor     18.746        21.306        .11403E-07    .14534E-05
  28  Prefactor     .65963        41.227       -.49714E-05    .18424E-04
  29  Normalizat    .51381        .20621       -.34548E-06    .44040E-04
  30  Prefactor     1.3238        .24666        .38670E-06    .67155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.16272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0114
  norm       = 0.0001
  Prefactor  = 0.828044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.39163
  Prefactor  = 0.0001
  Prefactor  = 3.23094
  Prefactor  = 4.75784
  norm       = 2.23149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.19183
  Prefactor  = 0.000100001
  Prefactor  = 6.47323
  norm       = 8.29457
  Prefactor  = 71.7991
  norm       = 7.49736
  Prefactor  = 8.40995
  Prefactor  = 0.0516393
  norm       = 0.0001
  Prefactor  = 18.7459
  Prefactor  = 0.659628
  Normalizat = 0.513807
  Prefactor  = 1.32376
 **********
 **   18 **HESSE 
 **********

 FCN=   4067.400     FROM HESSE     STATUS=OK           592 CALLS     4666 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1627        .33786        .19306E-04   -1.5492    
   3  Prefactor     .10000E-03    75.278        .43667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.011        16.503        .10691E-03   -1.4959    
   7  norm          .10000E-03    33.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .82804        1.8061        .13706E-02   -1.5526    
   9  Prefactor     .10000E-03    22.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3916        3.3853        .85542E-04   -1.5244    
  12  Prefactor     .10000E-03    50.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2309        6.5604        .10821E-02   -1.5348    
  14  Prefactor     4.7578        138.08        .18074E-03   -1.5272    
  15  norm          2.2315        1.4722        .54562E-04   -1.5409    
  16  norm          .10000E-03    5.9708        .15207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    95.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1918        6.2606        .53073E-03   -1.5135    
  19  Prefactor     .10000E-03    136.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4732        28.890        .15778E-03   -1.5199    
  21  norm          8.2946        2.4463        .52274E-04   -1.5132    
  22  Prefactor     71.799        42.286        .47365E-04   -1.4011    
  23  norm          7.4974        4.5587        .98162E-04   -1.5160    
  24  Prefactor     8.4100        7.7131        .13824E-03   -1.5128    
  25  Prefactor     .51639E-01    28.520        .18127E-02   -1.5663    
  26  norm          .10000E-03    6.3141        .15534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.746        21.309        .92521E-04   -1.4842    
  28  Prefactor     .65963        236.64        .67823E-02   -1.5546    
  29  Normalizat    .51381        .23677        .30222E-03   -1.1178    
  30  Prefactor     1.3238        .28731        .24855E-03   -.82603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8764e-08
Minuit parameter uncertainties:
  1  0.000108179
  2  0.337859
  3  6.10963e-05
  4  1.07775e-05
  5  4.17316e-05
  6  16.5081
  7  3.23028e-05
  8  1.80627
  9  8.24769e-05
  10  3.41604e-05
  11  3.38539
  12  8.75515e-05
  13  6.56187
  14  51.3934
  15  1.47226
  16  1.09669e-06
  17  0.000241514
  18  6.26114
  19  0.000767245
  20  27.3722
  21  2.4463
  22  42.3039
  23  4.55886
  24  7.71401
  25  2.42593
  26  3.62772e-06
  27  21.3176
  28  25.086
  29  0.237231
  30  0.287655
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  7.672e-04  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.324e+00  2.877e-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.138e-01  2.372e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161909/likelihoodResults_448243201_448502401_4FGL_J1154.0+4037_daily_bin806.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) = 4067.39999544
delta logL = -3.4742482967e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4067.39949452
delta logL = 0.000466170441541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80634E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2849       1.0000          .0000       10.000    
     3 'Normalizat'    .51385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3238       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=   4067.398     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      315 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75195        10.140        .94185E-01    .20783E-03
   2  Index         2.9368        .23221        .50000        .24699E-05
   3  Normalizat    .51128        .51647E-02    .68431E-01    .29682E-04
   4  Prefactor     1.3248        .65845E-02    .56191E-01    .39701E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.751947
  Index      = 2.93684
  Normalizat = 0.51128
  Prefactor  = 1.32479
 **********
 **   18 **HESSE 
 **********

 FCN=   4067.398     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      350 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75195        8437.0        .36457E-02   -1.5535    
   2  Index         2.9368        6.0304        .29191E-02   -.42534    
   3  Normalizat    .51128        .20689        .30291E-03   -1.1190    
   4  Prefactor     1.3248        .22791        .24844E-03   -.82573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60844e-09
Minuit parameter uncertainties:
  1  171.025
  2  65.1874
  3  0.207205
  4  0.22808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161909': 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) = 4067.39805993
delta logL = 0.00190076523268

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  7.519e-01  1.710e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.937e+00  6.519e+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.325e+00  2.281e-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.113e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/161909/cmap_HighResolution_448243201_448502401_4FGL_J1154.0+4037_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-04 15:57:15.585963', job_id='161909', GAL2='1.32', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1630796235.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.90e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='806' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 161909: <4FGL_J1154.0+4037_daily_bin806> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin806 178.514 40.632 448243201 448502401 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            974 sec.

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

