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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin750
RA = 178.514, Dec = 40.632
tmin = 433728001, tmax = 433987201
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='160910', job_status='RUN', time_executed='2021-09-04 15:39:34.730555', time_epoch_executed='1630795174.73' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160910/ft1_4FGL_J1154.0+4037_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160910/ft2_4FGL_J1154.0+4037_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160910/ft1_4FGL_J1154.0+4037_daily_bin750.fits outfile=/scratch/kocevski/160910/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin750.fits ra=178.514 dec=40.632 rad=12.0 tmin=433728001.0 tmax=433987201.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.12
user 5.81
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160910/ft1_filtered_4FGL_J1154.0+4037_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/160910/ft2_4FGL_J1154.0+4037_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/160910/ltcube_433728001_433987201_4FGL_J1154.0+4037_daily_bin750.fits outfile=/scratch/kocevski/160910/expmap_433728001_433987201_4FGL_J1154.0+4037_daily_bin750.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/160910/ltcube_433728001_433987201_4FGL_J1154.0+4037_daily_bin750.fits
.....................!
real 190.94
user 186.75
sys 3.79

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/160910/ft1_filtered_4FGL_J1154.0+4037_daily_bin750.fits scfile=/scratch/kocevski/160910/ft2_4FGL_J1154.0+4037_daily_bin750.fits outfile=/scratch/kocevski/160910/cmap_433728001_433987201_4FGL_J1154.0+4037_daily_bin750.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160910/ft1_filtered_4FGL_J1154.0+4037_daily_bin750.fits scfile=/scratch/kocevski/160910/ft2_4FGL_J1154.0+4037_daily_bin750.fits outfile=/scratch/kocevski/160910/cmap_HighResolution_433728001_433987201_4FGL_J1154.0+4037_daily_bin750.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4237       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23849E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11091E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.055       1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12961E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.849       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.936       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7479       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.956       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.553       1.0000         .10000E-03   10000.    
    23 'norm      '    8.2822       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8604       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.207       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88951       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3263       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=   3964.919     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     3957 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.049        .83446E-05** at limit **
   2  norm          2.4233        .54617       -.11372E-07   -.15397E-02
   3  Prefactor     .10000E-03    5.4996        .46097E-07** at limit **
   4  Prefactor     .10000E-03    148.57        .21753E-05** at limit **
   5  Prefactor     .10000E-03    162.52       -.31729E-05** at limit **
   6  norm          12.055        13.322       -.58653E-06   -.20513E-03
   7  norm          .10000E-03    55.314       -.46681E-05** at limit **
   8  Prefactor     .10016E-03    3.1967        .25154E-05** at limit **
   9  Prefactor     42.930        54.044       -.52798E-05   -.43723E-03
  10  Prefactor     .10000E-03    63.673       -.21841E-05** at limit **
  11  norm          .10000E-03    1.9747        .13284E-05** at limit **
  12  Prefactor     2.5349        18.710        .14291E-05   -.61870E-04
  13  Prefactor     .49413        7.5859        .17016E-05   -.86934E-03
  14  Prefactor     44.951        73.401        .62798E-06   -.12192E-03
  15  norm          6.7487        2.5829       -.14260E-06   -.12138E-02
  16  norm          .10000E-03    6.4194       -.16956E-08** at limit **
  17  Prefactor     3.7861        144.67       -.54128E-05   -.11091E-03
  18  Prefactor     .10000E-03    3.4582       -.43960E-08** at limit **
  19  Prefactor     .10000E-03    37.138        .25866E-05** at limit **
  20  Prefactor     29.963        33.496        .77059E-06   -.72170E-05
  21  norm          .10000E-03    .89187       -.11613E-06** at limit **
  22  Prefactor     29.613        59.103        .57963E-05    .77971E-05
  23  norm          8.2822        4.1784        .15265E-07   -.23357E-04
  24  Prefactor     .10000E-03    2.7677        .17646E-06** at limit **
  25  Prefactor     1.8604        2.1447        .18464E-07   -.15423E-04
  26  norm          .10000E-03    6.5859       -.17924E-07** at limit **
  27  Prefactor     24.209        31.660        .52687E-06   -.49381E-05
  28  Prefactor     .10000E-03    10.994       -.77677E-07** at limit **
  29  Normalizat    .88926        .24624       -.19697E-05   -.54075E-03
  30  Prefactor     1.3265        .28782       -.10889E-05   -.47019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.42331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.055
  norm       = 0.0001
  Prefactor  = 0.000100159
  Prefactor  = 42.9303
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.5349
  Prefactor  = 0.494131
  Prefactor  = 44.9511
  norm       = 6.74871
  norm       = 0.0001
  Prefactor  = 3.78611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9626
  norm       = 0.0001
  Prefactor  = 29.6129
  norm       = 8.28222
  Prefactor  = 0.0001
  Prefactor  = 1.86036
  norm       = 0.0001
  Prefactor  = 24.2092
  Prefactor  = 0.0001
  Normalizat = 0.889256
  Prefactor  = 1.32647
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.919     FROM HESSE     STATUS=OK           580 CALLS     4537 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4233        .54470        .21352E-04   -1.5397    
   3  Prefactor     .10000E-03    5.5026        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    154.54        .36567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    162.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.055        13.324        .11538E-03   -1.5013    
   7  norm          .10000E-03    55.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10016E-03    12.329        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.930        55.768        .30621E-03   -1.4397    
  10  Prefactor     .10000E-03    64.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0019        .86482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5349        18.545        .25637E-03   -1.5390    
  13  Prefactor     .49413        48.209        .28096E-02   -1.5567    
  14  Prefactor     44.951        73.851        .59809E-04   -1.4366    
  15  norm          6.7487        2.5970        .53149E-04   -1.5188    
  16  norm          .10000E-03    6.4216        .15582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7861        145.67        .20580E-03   -1.5319    
  18  Prefactor     .10000E-03    3.4766        .11411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.963        33.456        .73203E-04   -1.4613    
  21  norm          .10000E-03    1.5177        .11525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.613        59.203        .73699E-04   -1.4619    
  23  norm          8.2822        4.1777        .88069E-04   -1.5132    
  24  Prefactor     .10000E-03    2.7686        .10229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.8604        2.1446        .95972E-04   -1.5435    
  26  norm          .10000E-03    6.5946        .15775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.209        31.664        .81416E-04   -1.4724    
  28  Prefactor     .10000E-03    10.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88926        .29703        .28085E-03   -.96839    
  30  Prefactor     1.3265        .34656        .28710E-03   -.82523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27645e-08
Minuit parameter uncertainties:
  1  0.000640174
  2  0.544702
  3  1.86401e-06
  4  0.000398139
  5  0.000179408
  6  13.3275
  7  0.000234116
  8  0.00280399
  9  55.8358
  10  0.000146687
  11  3.24389e-06
  12  13.7185
  13  9.76857
  14  74.0018
  15  2.59703
  16  3.76009e-06
  17  47.092
  18  3.06231e-06
  19  0.000138772
  20  33.4772
  21  1.73659e-05
  22  59.321
  23  4.17782
  24  8.13354e-07
  25  2.14472
  26  4.37225e-06
  27  31.6858
  28  6.24104e-06
  29  0.297574
  30  0.347171
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.388e-04  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.326e+00  3.472e-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.893e-01  2.976e-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: 8.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160910/likelihoodResults_433728001_433987201_4FGL_J1154.0+4037_daily_bin750.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) = 3964.91920885
delta logL = -0.000127607906506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3964.9190816
delta logL = -3.61610091204e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3487       1.0000          .0000       10.000    
     3 'Normalizat'    .88926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3265       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=   3964.919     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.566        .90712E-02** at limit **
   2  Index         2.3227        6.1271        .50000        .69971E-05
   3  Normalizat    .88926        .48180E-02    .44764E-01    .11238E-04
   4  Prefactor     1.3265        .59024E-02    .64909E-01    .15143E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32268
  Normalizat = 0.889259
  Prefactor  = 1.32647
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.919     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    141.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3227        5.4893        .50000       -.56506    
   3  Normalizat    .88926        .12401E-01    .28085E-03   -.96839    
   4  Prefactor     1.3265        .15188E-01    .28710E-03   -.82523    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29451e-07
Minuit parameter uncertainties:
  1  0.000391791
  2  213.338
  3  0.0124009
  4  0.0151877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160910': 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) = 3964.9190815
delta logL = -2.6246152629e-07

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.918e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.323e+00  2.133e+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:  1.326e+00  1.519e-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:  8.893e-01  1.240e-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/160910/cmap_HighResolution_433728001_433987201_4FGL_J1154.0+4037_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.99e-08', time_completed='2021-09-04 15:51:39.752001', job_id='160910', GAL2='1.33', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630795899.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='-2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='750' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 160910: <4FGL_J1154.0+4037_daily_bin750> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin750 178.514 40.632 433728001 433987201 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 :                                   724.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             254.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

