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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin137
RA = 178.514, Dec = 40.632
tmin = 274838401, tmax = 275097601
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='157739', job_status='RUN', time_executed='2021-09-04 15:29:17.656574', time_epoch_executed='1630794557.66' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157739/ft1_4FGL_J1154.0+4037_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157739/ft2_4FGL_J1154.0+4037_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157739/ft1_4FGL_J1154.0+4037_daily_bin137.fits outfile=/scratch/kocevski/157739/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin137.fits ra=178.514 dec=40.632 rad=12.0 tmin=274838401.0 tmax=275097601.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 4.18
user 3.96
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157739/ft1_filtered_4FGL_J1154.0+4037_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/157739/ft2_4FGL_J1154.0+4037_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/157739/ltcube_274838401_275097601_4FGL_J1154.0+4037_daily_bin137.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/157739/ft2_4FGL_J1154.0+4037_daily_bin137.fits
.....................!
real 11.45
user 11.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157739/ft1_filtered_4FGL_J1154.0+4037_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/157739/ft2_4FGL_J1154.0+4037_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/157739/ltcube_274838401_275097601_4FGL_J1154.0+4037_daily_bin137.fits outfile=/scratch/kocevski/157739/expmap_274838401_275097601_4FGL_J1154.0+4037_daily_bin137.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/157739/ltcube_274838401_275097601_4FGL_J1154.0+4037_daily_bin137.fits
.....................!
real 190.31
user 184.79
sys 5.18

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/157739/ft1_filtered_4FGL_J1154.0+4037_daily_bin137.fits scfile=/scratch/kocevski/157739/ft2_4FGL_J1154.0+4037_daily_bin137.fits outfile=/scratch/kocevski/157739/cmap_274838401_275097601_4FGL_J1154.0+4037_daily_bin137.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/157739/ft1_filtered_4FGL_J1154.0+4037_daily_bin137.fits scfile=/scratch/kocevski/157739/ft2_4FGL_J1154.0+4037_daily_bin137.fits outfile=/scratch/kocevski/157739/cmap_HighResolution_274838401_275097601_4FGL_J1154.0+4037_daily_bin137.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.162       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8544       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9837       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5802       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .76943       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.269       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10956E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5615       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11219E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.4296       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15401E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10368E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    35.515       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .15371E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4823       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73607       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=   6375.822     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3962 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.176        91.431        .71667E-06    .43329E-04
   2  norm          1.8544        .44727       -.20725E-06    .17911E-02
   3  Prefactor     5.0944        18.233       -.34990E-05   -.12768E-03
   4  Prefactor     2.7094        25.291        .22243E-04   -.13580E-03
   5  Prefactor     2.8728        498.04       -.29212E-04   -.98963E-04
   6  norm          .10000E-03    17.090       -.56912E-07** at limit **
   7  norm          15.044        37.442       -.66475E-07   -.76742E-05
   8  Prefactor     .10000E-03    1.3411       -.64516E-07** at limit **
   9  Prefactor     .10000E-03    11.583       -.52819E-07** at limit **
  10  Prefactor     3.5770        29.379        .72031E-06    .30804E-05
  11  norm          .10000E-03    1.0301        .17080E-07** at limit **
  12  Prefactor     .10000E-03    13.538        .30937E-06** at limit **
  13  Prefactor     3.0556        7.0850        .71867E-06   -.72111E-04
  14  Prefactor     .10000E-03    23.194       -.46953E-07** at limit **
  15  norm          .76967        .73345        .14833E-07   -.25978E-04
  16  norm          .10000E-03    3.6139        .21271E-07** at limit **
  17  Prefactor     21.018        34.256        .54973E-07    .60168E-04
  18  Prefactor     .10000E-03    1.8434        .77477E-07** at limit **
  19  Prefactor     54.270        40.212       -.18442E-08   -.94532E-05
  20  Prefactor     .10000E-03    22.228        .37754E-06** at limit **
  21  norm          3.5627        1.7006        .21510E-07   -.50584E-04
  22  Prefactor     .10000E-03    14.894       -.30385E-08** at limit **
  23  norm          5.4317        3.2454       -.17944E-06   -.11797E-03
  24  Prefactor     .10000E-03    2.3149        .51649E-07** at limit **
  25  Prefactor     .10000E-03    1.8375        .22331E-06** at limit **
  26  norm          .10000E-03    4.0021       -.12884E-06** at limit **
  27  Prefactor     35.518        22.723       -.78303E-07   -.14343E-03
  28  Prefactor     .10000E-03    41.124        .30063E-06** at limit **
  29  Normalizat    1.4817        .18950       -.53714E-06   -.65113E-04
  30  Prefactor     .73675        .21019       -.41655E-07   -.75610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.1758
  norm       = 1.85445
  Prefactor  = 5.09435
  Prefactor  = 2.70939
  Prefactor  = 2.87279
  norm       = 0.0001
  norm       = 15.0442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.57701
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.05561
  Prefactor  = 0.0001
  norm       = 0.769667
  norm       = 0.0001
  Prefactor  = 21.0184
  Prefactor  = 0.0001
  Prefactor  = 54.2701
  Prefactor  = 0.0001
  norm       = 3.56271
  Prefactor  = 0.0001
  norm       = 5.43174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.5176
  Prefactor  = 0.0001
  Normalizat = 1.48171
  Prefactor  = 0.736754
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.822     FROM HESSE     STATUS=OK           578 CALLS     4540 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.176        91.517        .48266E-04   -1.4043    
   2  norm          1.8544        .45004        .23193E-04   -1.5436    
   3  Prefactor     5.0944        18.282        .17816E-03   -1.5257    
   4  Prefactor     2.7094        25.529        .12370E-02   -1.5379    
   5  Prefactor     2.8728        522.44        .23503E-03   -1.5369    
   6  norm          .10000E-03    17.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.044        37.441        .10325E-03   -1.4932    
   8  Prefactor     .10000E-03    1.3858        .18030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5770        29.199        .21358E-03   -1.5330    
  11  norm          .10000E-03    1.0450        .79095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0556        7.0227        .23253E-03   -1.5358    
  14  Prefactor     .10000E-03    23.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .76967        .73644        .64010E-04   -1.5533    
  16  norm          .10000E-03    3.6201        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.018        34.234        .87120E-04   -1.4791    
  18  Prefactor     .10000E-03    1.8881        .21161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     54.270        40.176        .54448E-04   -1.4233    
  20  Prefactor     .10000E-03    22.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5627        1.6978        .68965E-04   -1.5330    
  22  Prefactor     .10000E-03    14.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.4317        3.1535        .52448E-03   -1.5242    
  24  Prefactor     .10000E-03    2.3179        .11864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.8583        .20468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.0463        .15584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     35.518        22.752        .67246E-04   -1.4515    
  28  Prefactor     .10000E-03    42.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4817        .22363        .22965E-03   -.78294    
  30  Prefactor     .73675        .24486        .35569E-03   -1.0210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52902e-09
Minuit parameter uncertainties:
  1  91.7039
  2  0.450044
  3  18.3021
  4  16.6426
  5  78.1833
  6  1.52831e-05
  7  37.4997
  8  3.9971e-06
  9  1.55232e-05
  10  20.4531
  11  1.47474e-06
  12  4.68203e-05
  13  7.02457
  14  5.04376e-05
  15  0.736447
  16  3.36057e-07
  17  34.266
  18  2.63135e-06
  19  40.1956
  20  9.21575e-05
  21  1.69781
  22  6.85844e-05
  23  3.15358
  24  8.82676e-07
  25  7.61506e-06
  26  3.42833e-06
  27  22.7576
  28  2.34361e-05
  29  0.223779
  30  0.245224
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  5.427e+01  4.020e+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:  7.368e-01  2.452e-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.482e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.07
Ra Dec: 178.514 40.632
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.98e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.17e-05

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) = 6374.88865002
delta logL = 0.933586337618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6374.81346849
delta logL = 1.00876786945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.627       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4070       1.0000          .0000       10.000    
     3 'Normalizat'    1.4948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73253       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=   6374.813     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      253 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.617        60.044        .46172E-04    .12065E-04
   2  Index         1.4070        .47740        .90280E-02    .28224E-04
   3  Normalizat    1.4948        .21304        .22881E-03    .54108E-03
   4  Prefactor     .73255        .24293        .35670E-03    .30093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.617
  Index      = 1.40703
  Normalizat = 1.4948
  Prefactor  = 0.732553
 **********
 **   18 **HESSE 
 **********

 FCN=   6374.813     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.617        60.458        .92344E-05   -1.3967    
   2  Index         1.4070        .48075        .36112E-03   -.80178    
   3  Normalizat    1.4948        .21320        .45763E-04   -.77925    
   4  Prefactor     .73255        .24311        .14268E-04   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63947e-10
Minuit parameter uncertainties:
  1  60.5074
  2  0.482292
  3  0.213324
  4  0.243467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157739': 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) = 6374.81346846
delta logL = 1.00876789521

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  7.562e+01  6.051e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.407e+00  4.823e-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:  7.326e-01  2.435e-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.495e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.09
Ra Dec: 178.514 40.632
Photon Index (Free Index): 1.41 +/- 0.48
Photon Flux (Free Index): 1.25e-08 +/- 1.30e-08
Energy Flux (Free Index): 5.38e-05 +/- 6.39e-05

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/157739/cmap_HighResolution_274838401_275097601_4FGL_J1154.0+4037_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.98e-08', energy_flux2='5.38e-05', photon_flux_error='2.20e-08', dlogl='1.01e+00', energy_flux='1.58e-05', photon_flux2='1.25e-08', job_status='DONE', time_completed='2021-09-04 15:43:05.278718', photon_index_error2='0.48', photon_index2='1.41', ts='8.07', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='6.39e-05', EG='1.48', time_epoch_completed='1630795385.28', return_code='0', job_id='157739', GAL2='0.73', EG2='1.49', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='1.30e-08', ts2='10.09', photon_index='2.11' WHERE bin_id='137' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:43:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 157739: <4FGL_J1154.0+4037_daily_bin137> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin137> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:26:40 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:26:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:26:41 2021
Terminated at Sat Sep  4 15:43:06 2021
Results reported at Sat Sep  4 15:43:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin137 178.514 40.632 274838401 275097601 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 :                                   826.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

