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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin717
RA = 178.514, Dec = 40.632
tmin = 425174401, tmax = 425433601
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='160877', job_status='RUN', time_executed='2021-09-04 15:40:15.259674', time_epoch_executed='1630795215.26' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160877/ft1_4FGL_J1154.0+4037_daily_bin717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160877/ft2_4FGL_J1154.0+4037_daily_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160877/ft1_4FGL_J1154.0+4037_daily_bin717.fits outfile=/scratch/kocevski/160877/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin717.fits ra=178.514 dec=40.632 rad=12.0 tmin=425174401.0 tmax=425433601.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.22
user 4.97
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/160877/ft2_4FGL_J1154.0+4037_daily_bin717.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/160877/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/160877/ft1_filtered_4FGL_J1154.0+4037_daily_bin717.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/160877/ft1_filtered_4FGL_J1154.0+4037_daily_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/160877/ft2_4FGL_J1154.0+4037_daily_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/160877/ltcube_425174401_425433601_4FGL_J1154.0+4037_daily_bin717.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/160877/ft2_4FGL_J1154.0+4037_daily_bin717.fits
.....................!
real 11.88
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160877/ft1_filtered_4FGL_J1154.0+4037_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/160877/ft2_4FGL_J1154.0+4037_daily_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/160877/ltcube_425174401_425433601_4FGL_J1154.0+4037_daily_bin717.fits outfile=/scratch/kocevski/160877/expmap_425174401_425433601_4FGL_J1154.0+4037_daily_bin717.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/160877/ltcube_425174401_425433601_4FGL_J1154.0+4037_daily_bin717.fits
.....................!
real 192.32
user 187.44
sys 4.54

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/160877/ft1_filtered_4FGL_J1154.0+4037_daily_bin717.fits scfile=/scratch/kocevski/160877/ft2_4FGL_J1154.0+4037_daily_bin717.fits outfile=/scratch/kocevski/160877/cmap_425174401_425433601_4FGL_J1154.0+4037_daily_bin717.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160877/ft1_filtered_4FGL_J1154.0+4037_daily_bin717.fits scfile=/scratch/kocevski/160877/ft2_4FGL_J1154.0+4037_daily_bin717.fits outfile=/scratch/kocevski/160877/cmap_HighResolution_425174401_425433601_4FGL_J1154.0+4037_daily_bin717.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20819E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5888       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17611E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20733E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.598       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2922       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13720E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2158       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6905       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.216       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25995       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.481       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.534       1.0000         .10000E-03   10000.    
    21 'norm      '    11.413       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.278       1.0000         .10000E-03   10000.    
    23 'norm      '    4.3210       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4954       1.0000         .10000E-03   10000.    
    26 'norm      '    13.652       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.739       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0773       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93331       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=   4040.329     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4015 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    167.68       -.37079E-05** at limit **
   2  norm          1.5887        .49701        .44570E-07   -.82938E-03
   3  Prefactor     24.967        26.361        .21275E-06    .50651E-05
   4  Prefactor     .10000E-03    17.991       -.50930E-06** at limit **
   5  Prefactor     .10000E-03    47.636       -.57458E-06** at limit **
   6  norm          .10000E-03    10.303       -.91372E-07** at limit **
   7  norm          .10326E-03    598.37       -.92606E-04** at limit **
   8  Prefactor     4.6227        4.0496        .17867E-06    .39185E-04
   9  Prefactor     .10000E-03    24.372        .14855E-07** at limit **
  10  Prefactor     28.591        34.074        .97042E-06    .50499E-04
  11  norm          3.1775        3.3664        .51046E-07    .19567E-03
  12  Prefactor     16.401        21.599        .12286E-05    .10099E-03
  13  Prefactor     6.2867        8.4410        .40161E-06    .15551E-03
  14  Prefactor     .10000E-03    35.712        .53202E-06** at limit **
  15  norm          4.2165        1.7202        .13235E-06   -.37638E-03
  16  norm          7.6871        7.7343       -.13703E-06   -.13378E-03
  17  Prefactor     12.252        27.766        .53179E-06   -.24156E-04
  18  Prefactor     .28307        10.639        .12775E-04    .73001E-03
  19  Prefactor     28.460        45.750       -.45947E-06   -.21664E-04
  20  Prefactor     18.488        24.452       -.58863E-05    .21650E-03
  21  norm          11.413        2.8932        .46056E-07   -.15884E-03
  22  Prefactor     22.279        36.547        .51401E-06   -.31766E-04
  23  norm          4.3212        3.8902        .11633E-06   -.24301E-04
  24  Prefactor     .10000E-03    3.9987        .37761E-08** at limit **
  25  Prefactor     2.4954        2.9849        .73712E-07    .22637E-04
  26  norm          13.653        10.414       -.15483E-06    .28736E-04
  27  Prefactor     .10000E-03    21.827        .64303E-06** at limit **
  28  Prefactor     24.737        36.582        .10032E-05   -.18160E-04
  29  Normalizat    1.0773        .22426       -.31272E-05   -.81741E-04
  30  Prefactor     .93312        .26168       -.18644E-05   -.30630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.58872
  Prefactor  = 24.9672
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000103263
  Prefactor  = 4.62268
  Prefactor  = 0.0001
  Prefactor  = 28.5905
  norm       = 3.17751
  Prefactor  = 16.4011
  Prefactor  = 6.28673
  Prefactor  = 0.0001
  norm       = 4.21654
  norm       = 7.68709
  Prefactor  = 12.2518
  Prefactor  = 0.283068
  Prefactor  = 28.4602
  Prefactor  = 18.4876
  norm       = 11.4126
  Prefactor  = 22.2789
  norm       = 4.32121
  Prefactor  = 0.0001
  Prefactor  = 2.49539
  norm       = 13.6534
  Prefactor  = 0.000100001
  Prefactor  = 24.7373
  Normalizat = 1.07734
  Prefactor  = 0.933124
 **********
 **   18 **HESSE 
 **********

 FCN=   4040.329     FROM HESSE     STATUS=OK           608 CALLS     4623 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    167.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5887        .49959        .23288E-04   -1.5456    
   3  Prefactor     24.967        26.486        .80219E-04   -1.4708    
   4  Prefactor     .10000E-03    17.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10326E-03    62.925        .17460       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6227        4.0319        .10953E-03   -1.5278    
   9  Prefactor     .10000E-03    24.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.591        34.081        .74918E-04   -1.4638    
  11  norm          3.1775        3.3486        .11205E-03   -1.5351    
  12  Prefactor     16.401        21.592        .98814E-04   -1.4898    
  13  Prefactor     6.2867        8.4199        .16002E-03   -1.5206    
  14  Prefactor     .10000E-03    35.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2165        1.7218        .49689E-04   -1.5297    
  16  norm          7.6871        7.7393        .14460E-03   -1.5153    
  17  Prefactor     12.252        27.751        .11461E-03   -1.5008    
  18  Prefactor     .28307        22.681        .19743E-02   -1.5602    
  19  Prefactor     28.460        45.777        .75070E-04   -1.4640    
  20  Prefactor     18.488        25.518        .93033E-04   -1.4848    
  21  norm          11.413        2.8932        .52775E-04   -1.5032    
  22  Prefactor     22.279        36.547        .84862E-04   -1.4764    
  23  norm          4.3212        3.9013        .11366E-03   -1.5292    
  24  Prefactor     .10000E-03    4.0050        .12412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.4954        2.9882        .11507E-03   -1.5392    
  26  norm          13.653        10.417        .10840E-03   -1.4969    
  27  Prefactor     .10000E-03    21.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     24.737        36.610        .80537E-04   -1.4713    
  29  Normalizat    1.0773        .26690        .25158E-03   -.90483    
  30  Prefactor     .93312        .30845        .32179E-03   -.94993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37629e-09
Minuit parameter uncertainties:
  1  0.00042515
  2  0.49959
  3  26.498
  4  0.000223489
  5  4.08882e-05
  6  8.87852e-05
  7  0.0286872
  8  4.03215
  9  2.01126e-05
  10  34.1046
  11  3.34876
  12  21.6021
  13  8.42147
  14  0.000167481
  15  1.72179
  16  7.74032
  17  27.7806
  18  5.0687
  19  45.8331
  20  25.5335
  21  2.89325
  22  36.5839
  23  3.90156
  24  3.54581e-05
  25  2.98839
  26  10.4182
  27  0.000244071
  28  36.643
  29  0.267234
  30  0.309032
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  2.846e+01  4.583e+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:  9.331e-01  3.090e-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.077e+00  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/160877/likelihoodResults_425174401_425433601_4FGL_J1154.0+4037_daily_bin717.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) = 4040.32294473
delta logL = 0.00569191844534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4040.31909528
delta logL = 0.00954136346672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.745       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2499       1.0000          .0000       10.000    
     3 'Normalizat'    1.0759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93390       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=   4040.319     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      266 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.767        55.882        .82202E-04    .14488E-03
   2  Index         2.2496        1.0721        .71561E-02    .10194E-03
   3  Normalizat    1.0758        .25485        .25173E-03    .95922E-03
   4  Prefactor     .93403        .30637        .32163E-03    .79640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7673
  Index      = 2.2496
  Normalizat = 1.07579
  Prefactor  = 0.934032
 **********
 **   18 **HESSE 
 **********

 FCN=   4040.319     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.767        51.452        .16440E-04   -1.4733    
   2  Index         2.2496        .98871        .28625E-03   -.58246    
   3  Normalizat    1.0758        .25499        .50346E-04   -.90533    
   4  Prefactor     .93403        .30657        .64326E-04   -.94962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88401e-09
Minuit parameter uncertainties:
  1  51.5485
  2  0.998193
  3  0.255277
  4  0.307139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160877': 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) = 4040.31909509
delta logL = 0.009541555125

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  2.377e+01  5.155e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.250e+00  9.982e-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:  9.340e-01  3.071e-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.076e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/160877/cmap_HighResolution_425174401_425433601_4FGL_J1154.0+4037_daily_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', job_status='DONE', photon_flux_upper_limit='9.03e-08', time_completed='2021-09-04 15:53:04.937944', job_id='160877', GAL2='0.93', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630795984.94', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.54e-03', ts2='0.63', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='717' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:53:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 160877: <4FGL_J1154.0+4037_daily_bin717> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin717> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 15:36:54 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:36:56 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:36:56 2021
Terminated at Sat Sep  4 15:53:05 2021
Results reported at Sat Sep  4 15:53:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin717 178.514 40.632 425174401 425433601 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 :                                   761.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

