/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 18 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 = 7389
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1154.0+4037_daily_bin76
RA = 178.514, Dec = 40.632
tmin = 259027201, tmax = 259286401
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='157651', job_status='RUN', time_executed='2021-09-04 15:27:02.991189', time_epoch_executed='1630794422.99' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157651/ft1_4FGL_J1154.0+4037_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157651/ft2_4FGL_J1154.0+4037_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157651/ft1_4FGL_J1154.0+4037_daily_bin76.fits outfile=/scratch/kocevski/157651/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin76.fits ra=178.514 dec=40.632 rad=12.0 tmin=259027201.0 tmax=259286401.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.44
user 1.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/157651/ft2_4FGL_J1154.0+4037_daily_bin76.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/157651/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/157651/ft1_filtered_4FGL_J1154.0+4037_daily_bin76.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/157651/ft1_filtered_4FGL_J1154.0+4037_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/157651/ft2_4FGL_J1154.0+4037_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/157651/ltcube_259027201_259286401_4FGL_J1154.0+4037_daily_bin76.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/157651/ft2_4FGL_J1154.0+4037_daily_bin76.fits
.....................!
real 12.75
user 12.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157651/ft1_filtered_4FGL_J1154.0+4037_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/157651/ft2_4FGL_J1154.0+4037_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/157651/ltcube_259027201_259286401_4FGL_J1154.0+4037_daily_bin76.fits outfile=/scratch/kocevski/157651/expmap_259027201_259286401_4FGL_J1154.0+4037_daily_bin76.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/157651/ltcube_259027201_259286401_4FGL_J1154.0+4037_daily_bin76.fits
.....................!
real 190.75
user 185.21
sys 5.11

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/157651/ft1_filtered_4FGL_J1154.0+4037_daily_bin76.fits scfile=/scratch/kocevski/157651/ft2_4FGL_J1154.0+4037_daily_bin76.fits outfile=/scratch/kocevski/157651/cmap_259027201_259286401_4FGL_J1154.0+4037_daily_bin76.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.59
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .62364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.863       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13115E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.554       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.418       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1788       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0662       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.6103       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15077       1.0000         .10000E-03   10000.    
    23 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7311       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9954       1.0000         .10000E-03   10000.    
    26 'norm      '    17.026       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.788       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0543       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96292       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=   5473.220     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     3938 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.172       -.26236E-05** at limit **
   2  norm          .62364        .25327        .12833E-08    .11362E-04
   3  Prefactor     .10000E-03    3.7970       -.89725E-08** at limit **
   4  Prefactor     22.864        14.342        .48961E-07    .17805E-05
   5  Prefactor     .10001E-03    217.36       -.24156E-04** at limit **
   6  norm          .10000E-03    10.873        .15951E-07** at limit **
   7  norm          .10000E-03    19.167       -.63056E-06** at limit **
   8  Prefactor     .10000E-03    .71597        .41759E-07** at limit **
   9  Prefactor     .10000E-03    10.207        .66586E-08** at limit **
  10  Prefactor     22.555        23.535        .83663E-06    .14631E-03
  11  norm          .10000E-03    .75279       -.64154E-08** at limit **
  12  Prefactor     .10000E-03    45.150       -.21578E-05** at limit **
  13  Prefactor     13.419        6.3971       -.30196E-06    .84550E-04
  14  Prefactor     .10000E-03    60.367        .53466E-05** at limit **
  15  norm          1.1790        .98598       -.39598E-07   -.33103E-03
  16  norm          4.1121        8.4397        .86210E-07   -.39081E-05
  17  Prefactor     .10000E-03    13.276       -.36507E-07** at limit **
  18  Prefactor     2.0662        2.4988        .30268E-07   -.88239E-06
  19  Prefactor     .10000E-03    21.527        .11567E-05** at limit **
  20  Prefactor     .10000E-03    15.284        .36051E-06** at limit **
  21  norm          4.6103        1.5694        .41760E-08    .45464E-03
  22  Prefactor     .11458E-03    33.348       -.82445E-05** at limit **
  23  norm          .10000E-03    2.0036        .18635E-08** at limit **
  24  Prefactor     2.7315        6.0515        .41614E-05    .82407E-03
  25  Prefactor     1.9952        1.9596       -.40636E-07    .77869E-04
  26  norm          17.028        8.7800        .11686E-06    .53307E-04
  27  Prefactor     .10000E-03    18.940       -.81492E-06** at limit **
  28  Prefactor     15.788        15.087        .20458E-07    .38182E-05
  29  Normalizat    1.0543        .17761       -.81838E-06    .29611E-03
  30  Prefactor     .96302        .20878        .51107E-06    .22909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.623639
  Prefactor  = 0.0001
  Prefactor  = 22.864
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4189
  Prefactor  = 0.0001
  norm       = 1.17904
  norm       = 4.11214
  Prefactor  = 0.0001
  Prefactor  = 2.06618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.61033
  Prefactor  = 0.000114582
  norm       = 0.0001
  Prefactor  = 2.73145
  Prefactor  = 1.99521
  norm       = 17.0285
  Prefactor  = 0.0001
  Prefactor  = 15.7878
  Normalizat = 1.05426
  Prefactor  = 0.963017
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.220     FROM HESSE     STATUS=OK           590 CALLS     4528 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .62364        .25525        .22883E-04   -1.5550    
   3  Prefactor     .10000E-03    3.7997        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.864        14.345        .83770E-04   -1.4751    
   5  Prefactor     .10001E-03    218.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .72288        .61098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.555        23.478        .84342E-04   -1.4758    
  11  norm          .10000E-03    .75819        .62652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.419        6.3970        .10935E-03   -1.4975    
  14  Prefactor     .10000E-03    60.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1790        .96287        .63809E-04   -1.5491    
  16  norm          4.1121        8.4247        .19880E-03   -1.5302    
  17  Prefactor     .10000E-03    13.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0662        2.4841        .12422E-03   -1.5420    
  19  Prefactor     .10000E-03    21.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6103        1.5704        .52473E-04   -1.5279    
  22  Prefactor     .11458E-03    25.061        .10581       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0872        .20426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.7315        6.1153        .12320E-02   -1.5377    
  25  Prefactor     1.9952        1.9706        .99920E-04   -1.5425    
  26  norm          17.028        8.7767        .97066E-04   -1.4882    
  27  Prefactor     .10000E-03    19.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.788        15.089        .10080E-03   -1.4913    
  29  Normalizat    1.0543        .20678        .23124E-03   -.91234    
  30  Prefactor     .96302        .24359        .28984E-03   -.93973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20665e-09
Minuit parameter uncertainties:
  1  0.000197364
  2  0.255251
  3  5.63895e-09
  4  14.3475
  5  0.00262456
  6  5.7212e-07
  7  2.11369e-05
  8  2.20937e-06
  9  3.65391e-06
  10  23.4872
  11  4.39074e-07
  12  2.96758e-06
  13  6.39734
  14  0.000328145
  15  0.962882
  16  8.42708
  17  2.51469e-05
  18  2.48427
  19  4.29022e-05
  20  6.71808e-06
  21  1.57046
  22  0.0382491
  23  1.19146e-06
  24  6.11672
  25  1.97064
  26  8.77737
  27  3.53774e-05
  28  15.0931
  29  0.206943
  30  0.243871
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.290e-05  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:  9.630e-01  2.439e-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.054e+00  2.069e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157651/likelihoodResults_259027201_259286401_4FGL_J1154.0+4037_daily_bin76.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) = 5473.22024592
delta logL = -0.000221075072659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5473.22002558
delta logL = -7.38453309168e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3333       1.0000          .0000       10.000    
     3 'Normalizat'    1.0543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96302       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=   5473.220     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10150E-03    84.710        .18142E-02** at limit **
   2  Index         2.2745        8.5056        .50000        .16306E-04
   3  Normalizat    1.0543        .95953E-02    .23124E-03   -.10816E-05
   4  Prefactor     .96302        .11597E-01    .28984E-03   -.51776E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101496
  Index      = 2.27455
  Normalizat = 1.05426
  Prefactor  = 0.963017
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.220     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10150E-03    373.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2745        7.0900        .50000       -.57650    
   3  Normalizat    1.0543        .20597E-01    .92497E-05   -.91234    
   4  Prefactor     .96302        .24893E-01    .11593E-04   -.93973    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08601e-08
Minuit parameter uncertainties:
  1  0.0475583
  2  365.083
  3  0.020597
  4  0.0248933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157651': 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) = 5473.22002538
delta logL = -5.34490027349e-07

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.015e-04  4.756e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.275e+00  3.651e+02  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:  9.630e-01  2.489e-02  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.054e+00  2.060e-02  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/157651/cmap_HighResolution_259027201_259286401_4FGL_J1154.0+4037_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-04 15:41:44.833634', job_id='157651', GAL2='0.96', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630795304.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-5.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='76' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:41:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 157651: <4FGL_J1154.0+4037_daily_bin76> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin76 178.514 40.632 259027201 259286401 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 :                                   879.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

