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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin732
RA = 178.514, Dec = 40.632
tmin = 429062401, tmax = 429321601
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='160892', job_status='RUN', time_executed='2021-09-04 15:39:38.804396', time_epoch_executed='1630795178.8' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160892/ft1_4FGL_J1154.0+4037_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160892/ft2_4FGL_J1154.0+4037_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160892/ft1_4FGL_J1154.0+4037_daily_bin732.fits outfile=/scratch/kocevski/160892/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin732.fits ra=178.514 dec=40.632 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.35
user 6.10
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/160892/ft2_4FGL_J1154.0+4037_daily_bin732.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/160892/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/160892/ft1_filtered_4FGL_J1154.0+4037_daily_bin732.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160892/ft1_filtered_4FGL_J1154.0+4037_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/160892/ft2_4FGL_J1154.0+4037_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/160892/ltcube_429062401_429321601_4FGL_J1154.0+4037_daily_bin732.fits outfile=/scratch/kocevski/160892/expmap_429062401_429321601_4FGL_J1154.0+4037_daily_bin732.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/160892/ltcube_429062401_429321601_4FGL_J1154.0+4037_daily_bin732.fits
.....................!
real 191.35
user 186.27
sys 4.70

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/160892/ft1_filtered_4FGL_J1154.0+4037_daily_bin732.fits scfile=/scratch/kocevski/160892/ft2_4FGL_J1154.0+4037_daily_bin732.fits outfile=/scratch/kocevski/160892/cmap_429062401_429321601_4FGL_J1154.0+4037_daily_bin732.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/160892/ft1_filtered_4FGL_J1154.0+4037_daily_bin732.fits scfile=/scratch/kocevski/160892/ft2_4FGL_J1154.0+4037_daily_bin732.fits outfile=/scratch/kocevski/160892/cmap_HighResolution_429062401_429321601_4FGL_J1154.0+4037_daily_bin732.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21788E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .77284E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.579       1.0000         .10000E-03   10000.    
     6 'norm      '    7.8705       1.0000         .10000E-03   10000.    
     7 'norm      '    95.002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4799       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.038       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4674       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .89421E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8450       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8070       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.4135       1.0000         .10000E-03   10000.    
    26 'norm      '    13.339       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.812       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2659       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78794       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=   3043.773     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3887 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    249.19       -.97060E-07** at limit **
   2  norm          .77687E-01    .16719        .88965E-07    .27740E-02
   3  Prefactor     .10000E-03    5.8711        .12860E-06** at limit **
   4  Prefactor     .10000E-03    9.5711        .15859E-06** at limit **
   5  Prefactor     16.172        362.12        .86757E-05    .64637E-05
   6  norm          7.8721        12.958       -.34013E-06   -.44755E-04
   7  norm          94.970        92.053       -.61824E-06   -.56329E-05
   8  Prefactor     8.4810        4.0764        .52452E-07   -.17228E-03
   9  Prefactor     .10000E-03    32.736        .14615E-06** at limit **
  10  Prefactor     13.037        22.040        .37613E-06   -.12410E-04
  11  norm          .10000E-03    1.2354        .14049E-06** at limit **
  12  Prefactor     .10000E-03    5.7775        .55483E-07** at limit **
  13  Prefactor     .10000E-03    2.0925        .76852E-07** at limit **
  14  Prefactor     .10000E-03    41.461        .27529E-06** at limit **
  15  norm          5.4682        2.1177        .42235E-07   -.19555E-03
  16  norm          .10000E-03    6.0764        .43548E-07** at limit **
  17  Prefactor     .10036E-03    220.73        .38069E-04** at limit **
  18  Prefactor     .10000E-03    5.6363        .70962E-07** at limit **
  19  Prefactor     .10000E-03    42.536        .17297E-06** at limit **
  20  Prefactor     .10000E-03    16.466        .52188E-07** at limit **
  21  norm          .10000E-03    .69636        .11535E-06** at limit **
  22  Prefactor     .10000E-03    41.839        .10937E-05** at limit **
  23  norm          1.8455        4.7920        .51626E-07    .29898E-04
  24  Prefactor     5.8099        9.9772       -.12223E-05   -.18044E-03
  25  Prefactor     5.4131        4.3318        .42448E-07    .57721E-05
  26  norm          13.347        13.352        .23668E-07   -.84792E-05
  27  Prefactor     .10000E-03    24.531        .17011E-06** at limit **
  28  Prefactor     11.816        21.635       -.35225E-06   -.81707E-05
  29  Normalizat    1.2654        .24426       -.57417E-05   -.73236E-03
  30  Prefactor     .78803        .29655        .74247E-05   -.36619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0776872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1721
  norm       = 7.87206
  norm       = 94.9697
  Prefactor  = 8.48104
  Prefactor  = 0.0001
  Prefactor  = 13.0374
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.46823
  norm       = 0.0001
  Prefactor  = 0.000100365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.8455
  Prefactor  = 5.8099
  Prefactor  = 5.41315
  norm       = 13.3468
  Prefactor  = 0.0001
  Prefactor  = 11.8159
  Normalizat = 1.26535
  Prefactor  = 0.788033
 **********
 **   18 **HESSE 
 **********

 FCN=   3043.773     FROM HESSE     STATUS=OK           586 CALLS     4473 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    249.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .77687E-01    .14442        .32474E-03   -1.5652    
   3  Prefactor     .10000E-03    5.8776        .13057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5959        .16671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.172        352.90        .50737E-03   -1.4903    
   6  norm          7.8721        12.935        .71464E-03   -1.5147    
   7  norm          94.970        92.101        .41236E-04   -1.3756    
   8  Prefactor     8.4810        4.0765        .74143E-04   -1.5125    
   9  Prefactor     .10000E-03    32.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.037        22.061        .11093E-03   -1.4986    
  11  norm          .10000E-03    1.2424        .59891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7809        .12951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0968        .77941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4682        2.1193        .47879E-04   -1.5240    
  16  norm          .10000E-03    6.0774        .13283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10036E-03    243.80        .64257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.7562        .12785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .70752        .44957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8455        4.7552        .17393E-03   -1.5436    
  24  Prefactor     5.8099        9.9173        .83332E-03   -1.5226    
  25  Prefactor     5.4131        4.3213        .92740E-04   -1.5243    
  26  norm          13.347        13.350        .10967E-03   -1.4977    
  27  Prefactor     .10000E-03    24.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.816        21.660        .11656E-03   -1.5020    
  29  Normalizat    1.2654        .29684        .22343E-03   -.84607    
  30  Prefactor     .78803        .34865        .32561E-03   -1.0017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33254e-09
Minuit parameter uncertainties:
  1  0.000334869
  2  0.144416
  3  1.73666e-05
  4  2.48633e-05
  5  152.119
  6  12.9395
  7  92.24
  8  4.07662
  9  4.7519e-05
  10  22.0745
  11  8.66115e-06
  12  7.51279e-06
  13  4.47378e-06
  14  9.53451e-05
  15  2.1193
  16  5.56751e-06
  17  0.0189365
  18  3.71119e-06
  19  6.39699e-05
  20  8.45441e-09
  21  3.00346e-06
  22  0.000378707
  23  4.75618
  24  9.92015
  25  4.32159
  26  13.3526
  27  3.40442e-05
  28  21.6741
  29  0.297234
  30  0.349626
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.397e-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:  7.880e-01  3.496e-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.265e+00  2.972e-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: 9.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160892/likelihoodResults_429062401_429321601_4FGL_J1154.0+4037_daily_bin732.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) = 3043.7726702
delta logL = -0.000110389692054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3043.7725613
delta logL = -1.49542393046e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13572E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4407       1.0000          .0000       10.000    
     3 'Normalizat'    1.2656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78772       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=   3043.773     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10352E-03    6.0522        .18142E-01** at limit **
   2  Index         2.3518        8.0301        .50000        .81949E-05
   3  Normalizat    1.2654        .26257E-02    .22344E-03   -.23904E-03
   4  Prefactor     .78801        .31085E-02    .32561E-03   -.21053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103516
  Index      = 2.35182
  Normalizat = 1.26537
  Prefactor  = 0.788012
 **********
 **   18 **HESSE 
 **********

 FCN=   3043.773     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10352E-03    131.50        .30967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3518        5.2405        .50000       -.55817    
   3  Normalizat    1.2654        .12292E-01    .44688E-04   -.84606    
   4  Prefactor     .78801        .14552E-01    .65121E-04   -1.0017    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2853e-09
Minuit parameter uncertainties:
  1  0.043096
  2  346.922
  3  0.012292
  4  0.0145522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160892': 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) = 3043.77256019
delta logL = -3.86683041143e-07

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.035e-04  4.310e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.352e+00  3.469e+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:  7.880e-01  1.455e-02  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.265e+00  1.229e-02  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/160892/cmap_HighResolution_429062401_429321601_4FGL_J1154.0+4037_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', job_status='DONE', photon_flux_upper_limit='9.95e-08', time_completed='2021-09-04 15:50:22.135098', job_id='160892', GAL2='0.79', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630795822.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-3.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='732' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 160892: <4FGL_J1154.0+4037_daily_bin732> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin732 178.514 40.632 429062401 429321601 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 :                                   641.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

