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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin614
RA = 178.514, Dec = 40.632
tmin = 398476801, tmax = 398736001
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='160716', job_status='RUN', time_executed='2021-09-04 15:38:32.983585', time_epoch_executed='1630795112.98' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='614'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160716

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160716/ft1_4FGL_J1154.0+4037_daily_bin614.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160716/ft2_4FGL_J1154.0+4037_daily_bin614.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160716/ft1_4FGL_J1154.0+4037_daily_bin614.fits outfile=/scratch/kocevski/160716/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin614.fits ra=178.514 dec=40.632 rad=12.0 tmin=398476801.0 tmax=398736001.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 7.60
user 7.16
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160716/ft1_filtered_4FGL_J1154.0+4037_daily_bin614.fits" evtable="EVENTS" scfile=/scratch/kocevski/160716/ft2_4FGL_J1154.0+4037_daily_bin614.fits sctable="SC_DATA" outfile=/scratch/kocevski/160716/ltcube_398476801_398736001_4FGL_J1154.0+4037_daily_bin614.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/160716/ft2_4FGL_J1154.0+4037_daily_bin614.fits
.....................!
real 11.99
user 11.43
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160716/ft1_filtered_4FGL_J1154.0+4037_daily_bin614.fits evtable="EVENTS" scfile=/scratch/kocevski/160716/ft2_4FGL_J1154.0+4037_daily_bin614.fits sctable="SC_DATA" expcube=/scratch/kocevski/160716/ltcube_398476801_398736001_4FGL_J1154.0+4037_daily_bin614.fits outfile=/scratch/kocevski/160716/expmap_398476801_398736001_4FGL_J1154.0+4037_daily_bin614.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/160716/ltcube_398476801_398736001_4FGL_J1154.0+4037_daily_bin614.fits
.....................!
real 189.90
user 185.02
sys 4.48

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/160716/ft1_filtered_4FGL_J1154.0+4037_daily_bin614.fits scfile=/scratch/kocevski/160716/ft2_4FGL_J1154.0+4037_daily_bin614.fits outfile=/scratch/kocevski/160716/cmap_398476801_398736001_4FGL_J1154.0+4037_daily_bin614.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160716/ft1_filtered_4FGL_J1154.0+4037_daily_bin614.fits scfile=/scratch/kocevski/160716/ft2_4FGL_J1154.0+4037_daily_bin614.fits outfile=/scratch/kocevski/160716/cmap_HighResolution_398476801_398736001_4FGL_J1154.0+4037_daily_bin614.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=178.514 yref=40.632 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5582       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8040       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.615       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.162       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.198       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48592E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .59341       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.033       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6481       1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.499       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.341       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.606       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7672       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .19086E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.7212       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.728       1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.581       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .63933       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4177       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=   4474.602     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     4084 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5383        406.02       -.85684E-06   -.89000E-05
   2  norm          2.8037        .53674        .31987E-07   -.79129E-03
   3  Prefactor     .10000E-03    6.0647       -.12214E-06** at limit **
   4  Prefactor     .10000E-03    15.894       -.16585E-06** at limit **
   5  Prefactor     51.613        58.017        .52868E-07   -.57658E-05
   6  norm          .10000E-03    6.3829        .73332E-07** at limit **
   7  norm          .10000E-03    24.290        .79320E-06** at limit **
   8  Prefactor     6.0642        3.8561       -.90165E-06   -.16619E-02
   9  Prefactor     .10000E-03    72.521        .25933E-05** at limit **
  10  Prefactor     20.186        27.737       -.12043E-05   -.25333E-03
  11  norm          2.0750        3.2513        .14316E-06   -.55451E-03
  12  Prefactor     13.201        14.774       -.83287E-06   -.29877E-03
  13  Prefactor     .10027E-03    6.3292        .38045E-05** at limit **
  14  Prefactor     .10000E-03    31.504       -.84597E-06** at limit **
  15  norm          .59526        1.4415        .38857E-06   -.14679E-03
  16  norm          .10000E-03    5.6410       -.15990E-06** at limit **
  17  Prefactor     37.108        41.781        .54213E-06   -.27499E-03
  18  Prefactor     5.6478        4.2845        .20825E-06   -.23189E-04
  19  Prefactor     51.475        55.007       -.18312E-05   -.11070E-03
  20  Prefactor     35.341        23.587        .36669E-06   -.10451E-04
  21  norm          .10000E-03    .84066        .93400E-06** at limit **
  22  Prefactor     .10000E-03    32.334        .65419E-06** at limit **
  23  norm          11.606        5.3061        .43905E-07   -.32750E-03
  24  Prefactor     8.7629        13.540        .80046E-06   -.71377E-04
  25  Prefactor     .10000E-03    3.0185        .47719E-07** at limit **
  26  norm          3.7115        11.091        .10762E-05    .89971E-05
  27  Prefactor     18.724        29.380        .36080E-06   -.11573E-04
  28  Prefactor     22.581        23.663        .18602E-06    .52073E-07
  29  Normalizat    .63956        .24107       -.65889E-05   -.56404E-03
  30  Prefactor     1.4175        .27083        .17700E-05   -.73124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.53834
  norm       = 2.80375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.6131
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.06422
  Prefactor  = 0.000100001
  Prefactor  = 20.1856
  norm       = 2.07499
  Prefactor  = 13.2008
  Prefactor  = 0.00010027
  Prefactor  = 0.0001
  norm       = 0.595262
  norm       = 0.0001
  Prefactor  = 37.1084
  Prefactor  = 5.64783
  Prefactor  = 51.4746
  Prefactor  = 35.3408
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6056
  Prefactor  = 8.7629
  Prefactor  = 0.0001
  norm       = 3.71149
  Prefactor  = 18.724
  Prefactor  = 22.5813
  Normalizat = 0.639563
  Prefactor  = 1.41748
 **********
 **   18 **HESSE 
 **********

 FCN=   4474.602     FROM HESSE     STATUS=OK           584 CALLS     4668 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5383        408.35        .17041E-03   -1.5237    
   2  norm          2.8037        .53729        .20643E-04   -1.5373    
   3  Prefactor     .10000E-03    6.0690        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.613        58.018        .55824E-04   -1.4270    
   6  norm          .10000E-03    6.3944        .16508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    24.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0642        3.8496        .95329E-04   -1.5215    
   9  Prefactor     .10000E-03    72.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.186        27.676        .89200E-04   -1.4809    
  11  norm          2.0750        3.1911        .13589E-03   -1.5420    
  12  Prefactor     13.201        14.776        .11026E-03   -1.4981    
  13  Prefactor     .10027E-03    31.135        .27879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .59526        1.3936        .11047E-03   -1.5554    
  16  norm          .10000E-03    5.6438        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.108        41.900        .65859E-04   -1.4489    
  18  Prefactor     5.6478        4.2823        .11308E-03   -1.5233    
  19  Prefactor     51.475        54.761        .27943E-03   -1.4272    
  20  Prefactor     35.341        23.592        .67411E-04   -1.4518    
  21  norm          .10000E-03    1.2637        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.606        5.0196        .95627E-04   -1.5026    
  24  Prefactor     8.7629        13.542        .13537E-03   -1.5116    
  25  Prefactor     .10000E-03    5.3672        .21433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.7115        10.999        .20933E-03   -1.5323    
  27  Prefactor     18.724        29.163        .92550E-04   -1.4842    
  28  Prefactor     22.581        23.671        .84291E-04   -1.4757    
  29  Normalizat    .63956        .27599        .31620E-03   -1.0633    
  30  Prefactor     1.4175        .32025        .27168E-03   -.79878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01016e-08
Minuit parameter uncertainties:
  1  95.7981
  2  0.537294
  3  6.47882e-06
  4  2.70549e-05
  5  58.0813
  6  1.73351e-05
  7  7.22747e-05
  8  3.84979
  9  0.000628024
  10  27.6931
  11  3.1914
  12  14.78
  13  0.00579887
  14  2.11894e-05
  15  1.39367
  16  3.19098e-06
  17  41.9328
  18  4.28253
  19  54.8148
  20  23.5978
  21  3.86404e-05
  22  4.62472e-05
  23  5.01983
  24  13.5471
  25  3.82251e-06
  26  11.0052
  27  29.1857
  28  23.6811
  29  0.276587
  30  0.320706
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  5.147e+01  5.481e+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:  1.417e+00  3.207e-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:  6.396e-01  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.02
Ra Dec: 178.514 40.632
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.60e-05

TS (Fixed Index): 3.02
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160716/likelihoodResults_398476801_398736001_4FGL_J1154.0+4037_daily_bin614.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) = 4474.56624058
delta logL = 0.0355402223695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4474.55872336
delta logL = 0.0430574371148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.832       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8324       1.0000          .0000       10.000    
     3 'Normalizat'    .65088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4114       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=   4474.559     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      272 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.837        64.704        .52306E-04   -.39284E-03
   2  Index         1.8325        .93400        .11517E-01   -.17666E-03
   3  Normalizat    .65066        .25948        .31363E-03    .20346E-03
   4  Prefactor     1.4117        .31884        .27214E-03    .26215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.8372
  Index      = 1.8325
  Normalizat = 0.650659
  Prefactor  = 1.4117
 **********
 **   18 **HESSE 
 **********

 FCN=   4474.559     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.837        64.128        .10461E-04   -1.4172    
   2  Index         1.8325        .92481        .46068E-03   -.68607    
   3  Normalizat    .65066        .25950        .12545E-04   -1.0587    
   4  Prefactor     1.4117        .31909        .54428E-04   -.80044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65489e-09
Minuit parameter uncertainties:
  1  64.2035
  2  0.933855
  3  0.259987
  4  0.319534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160716': 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) = 4474.55872298
delta logL = 0.0430578161777

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  5.884e+01  6.420e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.832e+00  9.339e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.412e+00  3.195e-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:  6.507e-01  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 178.514 40.632
Photon Index (Free Index): 1.83 +/- 0.93
Photon Flux (Free Index): 1.83e-08 +/- 3.38e-08
Energy Flux (Free Index): 1.99e-05 +/- 3.24e-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/160716/cmap_HighResolution_398476801_398736001_4FGL_J1154.0+4037_daily_bin614.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.67e-03', comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='1.99e-05', photon_flux_error='3.00e-08', dlogl='4.31e-02', energy_flux='1.50e-05', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-09-04 15:51:53.919618', photon_index_error2='0.93', photon_index2='1.83', ts='3.02', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='3.24e-05', EG='0.64', time_epoch_completed='1630795913.92', return_code='0', job_id='160716', GAL2='1.41', EG2='0.65', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='3.38e-08', ts2='3.10', photon_index='2.11' WHERE bin_id='614' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:51:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 160716: <4FGL_J1154.0+4037_daily_bin614> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin614 178.514 40.632 398476801 398736001 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 :                                   797.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

