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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin738
RA = 178.514, Dec = 40.632
tmin = 430617601, tmax = 430876801
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='160898', job_status='RUN', time_executed='2021-09-04 15:37:10.893826', time_epoch_executed='1630795030.89' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160898

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160898/ft1_4FGL_J1154.0+4037_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160898/ft2_4FGL_J1154.0+4037_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160898/ft1_4FGL_J1154.0+4037_daily_bin738.fits outfile=/scratch/kocevski/160898/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin738.fits ra=178.514 dec=40.632 rad=12.0 tmin=430617601.0 tmax=430876801.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.77
user 5.06
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160898/ft1_filtered_4FGL_J1154.0+4037_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/160898/ft2_4FGL_J1154.0+4037_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/160898/ltcube_430617601_430876801_4FGL_J1154.0+4037_daily_bin738.fits outfile=/scratch/kocevski/160898/expmap_430617601_430876801_4FGL_J1154.0+4037_daily_bin738.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/160898/ltcube_430617601_430876801_4FGL_J1154.0+4037_daily_bin738.fits
.....................!
real 189.39
user 185.29
sys 3.80

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/160898/ft1_filtered_4FGL_J1154.0+4037_daily_bin738.fits scfile=/scratch/kocevski/160898/ft2_4FGL_J1154.0+4037_daily_bin738.fits outfile=/scratch/kocevski/160898/cmap_430617601_430876801_4FGL_J1154.0+4037_daily_bin738.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160898/ft1_filtered_4FGL_J1154.0+4037_daily_bin738.fits scfile=/scratch/kocevski/160898/ft2_4FGL_J1154.0+4037_daily_bin738.fits outfile=/scratch/kocevski/160898/cmap_HighResolution_430617601_430876801_4FGL_J1154.0+4037_daily_bin738.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21264E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .47609       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14708E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.3094       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0372       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11828E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.167       1.0000         .10000E-03   10000.    
    11 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    116.34       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4420       1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5930       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9314       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.037       1.0000         .10000E-03   10000.    
    23 'norm      '    17.723       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.6538       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1725       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69344       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91607       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=   3884.727     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     3979 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    91.125       -.81400E-05** at limit **
   2  norm          .47606        .26795        .26429E-08    .87788E-03
   3  Prefactor     .10000E-03    40.402       -.24030E-05** at limit **
   4  Prefactor     .10000E-03    6.7328        .10825E-07** at limit **
   5  Prefactor     .10000E-03    178.45        .18949E-04** at limit **
   6  norm          3.3081        9.9764        .25116E-06   -.64414E-05
   7  norm          .10000E-03    21.836       -.10034E-05** at limit **
   8  Prefactor     1.0369        2.5102        .43189E-06    .14870E-03
   9  Prefactor     .10000E-03    123.05       -.45249E-05** at limit **
  10  Prefactor     27.166        24.564        .22240E-06   -.23391E-04
  11  norm          .10000E-03    2.7173       -.43414E-06** at limit **
  12  Prefactor     .10000E-03    18.925        .50889E-06** at limit **
  13  Prefactor     7.0737        6.4453        .18684E-06   -.24176E-04
  14  Prefactor     116.27        68.971       -.25653E-05   -.21376E-04
  15  norm          9.4422        2.4082        .21366E-06   -.24440E-03
  16  norm          .10000E-03    5.4142       -.17653E-08** at limit **
  17  Prefactor     .10000E-03    26.999        .11619E-05** at limit **
  18  Prefactor     6.5911        4.2092        .27965E-06   -.78405E-03
  19  Prefactor     .10000E-03    134.59        .49588E-06** at limit **
  20  Prefactor     .10000E-03    60.707        .63612E-05** at limit **
  21  norm          2.9310        1.7184        .40302E-07   -.28441E-04
  22  Prefactor     16.039        38.241       -.71887E-06   -.19214E-04
  23  norm          17.722        6.4640        .95335E-07    .11236E-05
  24  Prefactor     .10000E-03    14.174       -.40572E-07** at limit **
  25  Prefactor     .10000E-03    1.8143        .19183E-07** at limit **
  26  norm          4.7338        13.711       -.97689E-05   -.16827E-03
  27  Prefactor     1.8093        307.36        .56844E-04   -.24963E-04
  28  Prefactor     .10000E-03    15.358        .11302E-06** at limit **
  29  Normalizat    .69379        .21266       -.74783E-06   -.13910E-03
  30  Prefactor     .91583        .24465       -.88330E-06   -.22852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.476055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.30807
  norm       = 0.0001
  Prefactor  = 1.03694
  Prefactor  = 0.0001
  Prefactor  = 27.1664
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 7.07371
  Prefactor  = 116.267
  norm       = 9.44224
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.59109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93101
  Prefactor  = 16.0391
  norm       = 17.7222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.73381
  Prefactor  = 1.80926
  Prefactor  = 0.0001
  Normalizat = 0.693794
  Prefactor  = 0.915828
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.727     FROM HESSE     STATUS=OK           586 CALLS     4565 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .47606        .26745        .23371E-04   -1.5570    
   3  Prefactor     .10000E-03    41.570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7373        .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    178.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3081        9.9396        .22253E-03   -1.5344    
   7  norm          .10000E-03    21.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0369        2.3505        .13925E-03   -1.5504    
   9  Prefactor     .10000E-03    123.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.166        24.512        .76861E-04   -1.4665    
  11  norm          .10000E-03    4.6520        .18923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0737        6.4062        .14071E-03   -1.5176    
  14  Prefactor     116.27        68.781        .18652E-03   -1.3547    
  15  norm          9.4422        2.4124        .42755E-04   -1.5093    
  16  norm          .10000E-03    5.4164        .14164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5911        4.1925        .97403E-04   -1.5194    
  19  Prefactor     .10000E-03    134.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    61.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9310        1.7175        .60274E-04   -1.5366    
  22  Prefactor     16.039        38.250        .10001E-03   -1.4907    
  23  norm          17.722        6.4578        .91901E-04   -1.4866    
  24  Prefactor     .10000E-03    14.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8172        .81930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.7338        13.817        .18656E-03   -1.5273    
  27  Prefactor     1.8093        314.25        .27937E-03   -1.5439    
  28  Prefactor     .10000E-03    15.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .69379        .24555        .25820E-03   -1.0414    
  30  Prefactor     .91583        .28344        .27266E-03   -.95590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07646e-09
Minuit parameter uncertainties:
  1  0.000243402
  2  0.267447
  3  0.000130881
  4  4.15308e-06
  5  0.000541366
  6  9.94452
  7  1.75663e-05
  8  2.35069
  9  3.47739e-05
  10  24.521
  11  0.000255955
  12  8.30491e-07
  13  6.40686
  14  68.8283
  15  2.41241
  16  2.50871e-06
  17  7.2872e-05
  18  4.19265
  19  8.79625e-05
  20  0.000225038
  21  1.71755
  22  38.3089
  23  6.45809
  24  3.61383e-05
  25  2.13912e-07
  26  13.8268
  27  47.9454
  28  1.33742e-07
  29  0.245944
  30  0.283895
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.158e-01  2.839e-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.938e-01  2.459e-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: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160898/likelihoodResults_430617601_430876801_4FGL_J1154.0+4037_daily_bin738.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) = 3884.72654794
delta logL = -3.51824669451e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3884.72651643
delta logL = -3.67523034583e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10404E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1925       1.0000          .0000       10.000    
     3 'Normalizat'    .69379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91583       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=   3884.727     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      223 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.266        .10368E-01** at limit **
   2  Index         2.1905        8.1164        .50000        .15785E-05
   3  Normalizat    .69379        .29376E-02    .42208E-01    .42790E-05
   4  Prefactor     .91583        .35471E-02    .45206E-01    .11553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.19054
  Normalizat = 0.693794
  Prefactor  = 0.915829
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.727     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      256 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    307.55        .20736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1905        5.4975        .50000       -.59667    
   3  Normalizat    .69379        .74372E-02    .25819E-03   -1.0414    
   4  Prefactor     .91583        .89815E-02    .27267E-03   -.95590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.23664e-09
Minuit parameter uncertainties:
  1  0.00122783
  2  183.022
  3  0.00743724
  4  0.00898155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160898': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3884.72651277
delta logL = -1.91053004528e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.158e-01  8.982e-03  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.938e-01  7.437e-03  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/160898/cmap_HighResolution_430617601_430876801_4FGL_J1154.0+4037_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-04 15:49:13.604372', job_id='160898', GAL2='0.92', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630795753.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-1.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='738' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:49:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 160898: <4FGL_J1154.0+4037_daily_bin738> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin738> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 15:36:57 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:36:59 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:59 2021
Terminated at Sat Sep  4 15:49:14 2021
Results reported at Sat Sep  4 15:49:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin738 178.514 40.632 430617601 430876801 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

