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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin671
RA = 178.514, Dec = 40.632
tmin = 413251201, tmax = 413510401
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='160807', job_status='RUN', time_executed='2021-09-04 15:38:58.557539', time_epoch_executed='1630795138.56' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160807/ft1_4FGL_J1154.0+4037_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160807/ft2_4FGL_J1154.0+4037_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160807/ft1_4FGL_J1154.0+4037_daily_bin671.fits outfile=/scratch/kocevski/160807/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin671.fits ra=178.514 dec=40.632 rad=12.0 tmin=413251201.0 tmax=413510401.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.76
user 5.47
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160807/ft1_filtered_4FGL_J1154.0+4037_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/160807/ft2_4FGL_J1154.0+4037_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/160807/ltcube_413251201_413510401_4FGL_J1154.0+4037_daily_bin671.fits outfile=/scratch/kocevski/160807/expmap_413251201_413510401_4FGL_J1154.0+4037_daily_bin671.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/160807/ltcube_413251201_413510401_4FGL_J1154.0+4037_daily_bin671.fits
.....................!
real 191.14
user 186.09
sys 4.61

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/160807/ft1_filtered_4FGL_J1154.0+4037_daily_bin671.fits scfile=/scratch/kocevski/160807/ft2_4FGL_J1154.0+4037_daily_bin671.fits outfile=/scratch/kocevski/160807/cmap_413251201_413510401_4FGL_J1154.0+4037_daily_bin671.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160807/ft1_filtered_4FGL_J1154.0+4037_daily_bin671.fits scfile=/scratch/kocevski/160807/ft2_4FGL_J1154.0+4037_daily_bin671.fits outfile=/scratch/kocevski/160807/cmap_HighResolution_413251201_413510401_4FGL_J1154.0+4037_daily_bin671.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8585       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7392       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    49.035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14434E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.743       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0607       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.957       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7666       1.0000         .10000E-03   10000.    
    16 'norm      '    16.053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15995E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.096       1.0000         .10000E-03   10000.    
    21 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.791       1.0000         .10000E-03   10000.    
    23 'norm      '    50.256       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0734       1.0000         .10000E-03   10000.    
    26 'norm      '    15.848       1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.105       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95145       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95684       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=   5235.358     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3965 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.528       -.13305E-05** at limit **
   2  norm          1.8584        .45405       -.13720E-07   -.97950E-03
   3  Prefactor     2.7437        32.107        .18699E-06   -.59874E-04
   4  Prefactor     .10000E-03    15.998        .12276E-05** at limit **
   5  Prefactor     .10000E-03    161.36        .34490E-07** at limit **
   6  norm          .10000E-03    7.3295       -.38165E-07** at limit **
   7  norm          49.035        47.072       -.18421E-07    .15439E-05
   8  Prefactor     .10000E-03    2.0568        .12814E-05** at limit **
   9  Prefactor     12.791        33.002       -.32154E-05   -.15392E-03
  10  Prefactor     8.0553        23.821        .64594E-06    .70145E-05
  11  norm          .10000E-03    .85936        .41320E-07** at limit **
  12  Prefactor     .10000E-03    19.443       -.14465E-05** at limit **
  13  Prefactor     .10000E-03    5.0804        .35852E-07** at limit **
  14  Prefactor     16.948        49.945        .10785E-05   -.41240E-04
  15  norm          7.7663        2.1063       -.26650E-07   -.37520E-03
  16  norm          16.054        14.382       -.23262E-07   -.16376E-04
  17  Prefactor     .10000E-03    13.168       -.49949E-06** at limit **
  18  Prefactor     .10000E-03    3.7545        .18028E-07** at limit **
  19  Prefactor     .10000E-03    30.779        .16595E-05** at limit **
  20  Prefactor     52.084        28.748       -.25032E-07   -.77861E-07
  21  norm          .10000E-03    .82185       -.48657E-08** at limit **
  22  Prefactor     38.788        39.564        .25399E-06   -.13830E-04
  23  norm          50.255        10.552       -.38668E-06    .10824E-04
  24  Prefactor     .10000E-03    2.6699        .33397E-09** at limit **
  25  Prefactor     5.0735        6.6616        .16185E-05   -.79565E-04
  26  norm          15.847        12.189       -.11927E-06    .30933E-05
  27  Prefactor     37.089        36.066        .52296E-06   -.33233E-04
  28  Prefactor     .10000E-03    9.9595        .52033E-07** at limit **
  29  Normalizat    .95193        .20456       -.12245E-06   -.14881E-03
  30  Prefactor     .95634        .22779       -.66283E-07   -.11170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.85844
  Prefactor  = 2.74369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 49.0353
  Prefactor  = 0.0001
  Prefactor  = 12.791
  Prefactor  = 8.05531
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9476
  norm       = 7.76634
  norm       = 16.0535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.0838
  norm       = 0.0001
  Prefactor  = 38.7879
  norm       = 50.2555
  Prefactor  = 0.0001
  Prefactor  = 5.07355
  norm       = 15.8475
  Prefactor  = 37.0892
  Prefactor  = 0.0001
  Normalizat = 0.951928
  Prefactor  = 0.956344
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.358     FROM HESSE     STATUS=OK           584 CALLS     4549 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8584        .45438        .22362E-04   -1.5435    
   3  Prefactor     2.7437        31.809        .24600E-03   -1.5377    
   4  Prefactor     .10000E-03    15.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    161.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.3383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          49.035        47.078        .57266E-04   -1.4306    
   8  Prefactor     .10000E-03    3.3691        .18041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.791        32.959        .11221E-03   -1.4993    
  10  Prefactor     8.0553        23.784        .14122E-03   -1.5140    
  11  norm          .10000E-03    .86215        .65449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1541        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.948        50.037        .97263E-04   -1.4884    
  15  norm          7.7663        2.1173        .47844E-04   -1.5151    
  16  norm          16.054        14.390        .99964E-04   -1.4906    
  17  Prefactor     .10000E-03    13.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8297        .27221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     52.084        28.672        .55566E-04   -1.4263    
  21  norm          .10000E-03    .84794        .12800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.788        39.569        .64354E-04   -1.4462    
  23  norm          50.255        10.549        .56569E-04   -1.4289    
  24  Prefactor     .10000E-03    2.6718        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.0735        6.6822        .89256E-03   -1.5257    
  26  norm          15.847        12.181        .10061E-03   -1.4912    
  27  Prefactor     37.089        36.093        .65795E-04   -1.4489    
  28  Prefactor     .10000E-03    9.9632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95193        .23820        .27123E-03   -.94659    
  30  Prefactor     .95634        .26447        .31542E-03   -.94199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18997e-10
Minuit parameter uncertainties:
  1  0.000196056
  2  0.454381
  3  18.6963
  4  0.000141627
  5  1.91883e-05
  6  4.7228e-06
  7  47.1138
  8  2.26325e-05
  9  33.0061
  10  23.8123
  11  9.38659e-07
  12  0.000157332
  13  3.90282e-06
  14  50.1616
  15  2.11732
  16  14.3934
  17  3.8481e-05
  18  1.61825e-06
  19  0.000215475
  20  28.68
  21  1.21615e-07
  22  39.5962
  23  10.5495
  24  2.60124e-07
  25  6.68316
  26  12.1828
  27  36.1147
  28  3.87781e-06
  29  0.238465
  30  0.264827
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.155e-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:  9.563e-01  2.648e-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.519e-01  2.385e-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: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160807/likelihoodResults_413251201_413510401_4FGL_J1154.0+4037_daily_bin671.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) = 5235.35772005
delta logL = -0.000155632606038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5235.35756446
delta logL = -4.27762643085e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1878       1.0000          .0000       10.000    
     3 'Normalizat'    .95192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95635       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=   5235.358     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.714        .90712E-02** at limit **
   2  Index         2.1796        5.8909        .50000        .22641E-05
   3  Normalizat    .95193        .19248        .45562E-01    .36215E-05
   4  Prefactor     .95634        .22537        .71298E-01    .62555E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17963
  Normalizat = 0.951928
  Prefactor  = 0.956344
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.358     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    325.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1796        8.1912        .50000       -.59931    
   3  Normalizat    .95193        .22279        .27123E-03   -.94659    
   4  Prefactor     .95634        .26059        .31543E-03   -.94199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68988e-11
Minuit parameter uncertainties:
  1  9.44585e-05
  2  13.7698
  3  0.223003
  4  0.26093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160807': 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) = 5235.35756445
delta logL = -3.37358869729e-08

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.446e-05  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.180e+00  1.377e+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.563e-01  2.609e-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.519e-01  2.230e-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/160807/cmap_HighResolution_413251201_413510401_4FGL_J1154.0+4037_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-04 15:53:23.445833', job_id='160807', GAL2='0.96', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630796003.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-3.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='671' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:53:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 160807: <4FGL_J1154.0+4037_daily_bin671> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin671 178.514 40.632 413251201 413510401 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 :                                   863.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

