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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin199
RA = 178.514, Dec = 40.632
tmin = 290908801, tmax = 291168001
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='158782', job_status='RUN', time_executed='2021-09-04 15:33:46.258450', time_epoch_executed='1630794826.26' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158782/ft1_4FGL_J1154.0+4037_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158782/ft2_4FGL_J1154.0+4037_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158782/ft1_4FGL_J1154.0+4037_daily_bin199.fits outfile=/scratch/kocevski/158782/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin199.fits ra=178.514 dec=40.632 rad=12.0 tmin=290908801.0 tmax=291168001.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 3.45
user 3.20
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158782/ft1_filtered_4FGL_J1154.0+4037_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/158782/ft2_4FGL_J1154.0+4037_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/158782/ltcube_290908801_291168001_4FGL_J1154.0+4037_daily_bin199.fits outfile=/scratch/kocevski/158782/expmap_290908801_291168001_4FGL_J1154.0+4037_daily_bin199.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/158782/ltcube_290908801_291168001_4FGL_J1154.0+4037_daily_bin199.fits
.....................!
real 190.79
user 184.91
sys 5.45

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/158782/ft1_filtered_4FGL_J1154.0+4037_daily_bin199.fits scfile=/scratch/kocevski/158782/ft2_4FGL_J1154.0+4037_daily_bin199.fits outfile=/scratch/kocevski/158782/cmap_290908801_291168001_4FGL_J1154.0+4037_daily_bin199.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158782/ft1_filtered_4FGL_J1154.0+4037_daily_bin199.fits scfile=/scratch/kocevski/158782/ft2_4FGL_J1154.0+4037_daily_bin199.fits outfile=/scratch/kocevski/158782/cmap_HighResolution_290908801_291168001_4FGL_J1154.0+4037_daily_bin199.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6257       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.028       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.332       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .63707       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.498       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1348       1.0000         .10000E-03   10000.    
    16 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.283       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.4066       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.8547       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7415       1.0000         .10000E-03   10000.    
    26 'norm      '    4.9378       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82298       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96440       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=   5518.660     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3378 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.892       -.41439E-05** at limit **
   2  norm          1.6257        .37061        .38421E-08    .24102E-04
   3  Prefactor     .10000E-03    6.1248       -.12393E-07** at limit **
   4  Prefactor     .10000E-03    4.4320       -.47021E-08** at limit **
   5  Prefactor     .10000E-03    55.936        .21339E-05** at limit **
   6  norm          19.028        13.077       -.15010E-06   -.47241E-04
   7  norm          .10000E-03    28.324       -.18657E-06** at limit **
   8  Prefactor     .10000E-03    1.1384        .22538E-06** at limit **
   9  Prefactor     32.345        30.389       -.10996E-04   -.58850E-04
  10  Prefactor     .10000E-03    5.5571       -.10479E-07** at limit **
  11  norm          .63535        1.9290        .10363E-05   -.76327E-03
  12  Prefactor     20.898        13.328       -.30755E-06   -.45518E-04
  13  Prefactor     .10000E-03    3.1501        .48636E-06** at limit **
  14  Prefactor     14.510        25.511       -.11593E-04   -.17763E-04
  15  norm          3.1354        1.4211        .42375E-06   -.61463E-03
  16  norm          .10000E-03    3.7729        .36844E-07** at limit **
  17  Prefactor     .10000E-03    15.142       -.55043E-06** at limit **
  18  Prefactor     .10000E-03    1.8414       -.95767E-07** at limit **
  19  Prefactor     21.092        51.814       -.52898E-05    .23096E-05
  20  Prefactor     .10000E-03    15.360        .57186E-06** at limit **
  21  norm          9.4064        2.1152       -.15924E-07   -.11545E-04
  22  Prefactor     .10000E-03    7.7959        .11236E-06** at limit **
  23  norm          6.8546        3.3326       -.16120E-07    .21354E-04
  24  Prefactor     .10000E-03    1.7287       -.57371E-08** at limit **
  25  Prefactor     3.7413        2.7249       -.10655E-07    .29531E-04
  26  norm          4.9375        4.8012        .17699E-07   -.42509E-04
  27  Prefactor     .10000E-03    7.1975       -.49343E-06** at limit **
  28  Prefactor     .10000E-03    7.5054       -.10003E-06** at limit **
  29  Normalizat    .82300        .16448        .86377E-06   -.11058E-03
  30  Prefactor     .96447        .20088        .37783E-06   -.52500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.62567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0284
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3451
  Prefactor  = 0.0001
  norm       = 0.635349
  Prefactor  = 20.8985
  Prefactor  = 0.0001
  Prefactor  = 14.5102
  norm       = 3.13538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0918
  Prefactor  = 0.0001
  norm       = 9.40637
  Prefactor  = 0.0001
  norm       = 6.8546
  Prefactor  = 0.0001
  Prefactor  = 3.74133
  norm       = 4.93753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.822997
  Prefactor  = 0.964468
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.660     FROM HESSE     STATUS=OK           586 CALLS     3964 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6257        .37079        .20904E-04   -1.5453    
   3  Prefactor     .10000E-03    6.1494        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4340        .15274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.028        13.070        .91817E-04   -1.4835    
   7  norm          .10000E-03    28.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1794        .15472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.345        29.847        .70469E-04   -1.4570    
  10  Prefactor     .10000E-03    5.5616        .17100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63535        1.8535        .16333E-03   -1.5549    
  12  Prefactor     20.898        13.311        .87616E-04   -1.4793    
  13  Prefactor     .10000E-03    7.0700        .25433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.510        25.428        .10519E-03   -1.4946    
  15  norm          3.1354        1.4228        .51486E-04   -1.5354    
  16  norm          .10000E-03    3.7767        .14091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3468        .19492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.092        51.956        .86822E-04   -1.4789    
  20  Prefactor     .10000E-03    15.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.4064        2.1155        .49602E-04   -1.5094    
  22  Prefactor     .10000E-03    7.8016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.8546        3.3380        .89449E-04   -1.5184    
  24  Prefactor     .10000E-03    1.7306        .95386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7413        2.7304        .99122E-04   -1.5321    
  26  norm          4.9375        4.7988        .15599E-03   -1.5264    
  27  Prefactor     .10000E-03    7.2065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.5140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82300        .18985        .23931E-03   -.99221    
  30  Prefactor     .96447        .23192        .27371E-03   -.93923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40139e-10
Minuit parameter uncertainties:
  1  1.25702e-05
  2  0.370795
  3  4.41405e-06
  4  1.69828e-06
  5  1.23874e-05
  6  13.0719
  7  5.04461e-06
  8  2.57351e-05
  9  29.8603
  10  1.66392e-06
  11  1.85369
  12  13.3129
  13  9.9505e-06
  14  25.4471
  15  1.42283
  16  5.22986e-06
  17  2.05089e-06
  18  1.79056e-05
  19  52.0673
  20  1.40838e-05
  21  2.11552
  22  1.61243e-06
  23  3.33813
  24  7.95402e-07
  25  2.7305
  26  4.79922
  27  4.00862e-06
  28  2.393e-06
  29  0.190006
  30  0.232161
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  2.109e+01  5.207e+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:  9.645e-01  2.322e-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:  8.230e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158782/likelihoodResults_290908801_291168001_4FGL_J1154.0+4037_daily_bin199.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) = 5518.44823103
delta logL = 0.212209165506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5518.43829988
delta logL = 0.22214031964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9985       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8925       1.0000          .0000       10.000    
     3 'Normalizat'    .80151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97713       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=   5518.438     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      285 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9985        417.02        .31681E-02    .26416E-03
   2  Index         2.8925        3.5005        .11396        .13572E-03
   3  Normalizat    .80119        .52354E-01    .43630E-01    .14499E-04
   4  Prefactor     .97750        .59131E-01    .45981E-01    .10340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99851
  Index      = 2.89255
  Normalizat = 0.801194
  Prefactor  = 0.977505
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.438     FROM HESSE     STATUS=OK            33 CALLS      318 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9985        94.937        .12672E-03   -1.5075    
   2  Index         2.8925        2.4852        .63011E-02   -.43509    
   3  Normalizat    .80119        .19613        .24203E-03   -1.0002    
   4  Prefactor     .97750        .23709        .27189E-03   -.93483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59623e-08
Minuit parameter uncertainties:
  1  61.7479
  2  2.63024
  3  0.196305
  4  0.237343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158782': 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) = 5518.43829846
delta logL = 0.222141739931

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  9.999e+00  6.175e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.893e+00  2.630e+00  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.775e-01  2.373e-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:  8.012e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/158782/cmap_HighResolution_290908801_291168001_4FGL_J1154.0+4037_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-04 15:47:52.035125', job_id='158782', GAL2='0.98', fit_tolerance='1e-08', EG2='0.80', EG='0.82', time_epoch_completed='1630795672.04', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.22e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='199' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:47:52 PDT 2021


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

Job <4FGL_J1154.0+4037_daily_bin199> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 15:31:13 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:31:17 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:31:17 2021
Terminated at Sat Sep  4 15:47:52 2021
Results reported at Sat Sep  4 15:47:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin199 178.514 40.632 290908801 291168001 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 :                                   845.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

