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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin740
RA = 178.514, Dec = 40.632
tmin = 431136001, tmax = 431395201
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='160900', job_status='RUN', time_executed='2021-09-04 15:39:09.468181', time_epoch_executed='1630795149.47' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160900

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160900/ft1_4FGL_J1154.0+4037_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160900/ft2_4FGL_J1154.0+4037_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160900/ft1_4FGL_J1154.0+4037_daily_bin740.fits outfile=/scratch/kocevski/160900/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin740.fits ra=178.514 dec=40.632 rad=12.0 tmin=431136001.0 tmax=431395201.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.56
user 5.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160900/ft1_filtered_4FGL_J1154.0+4037_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/160900/ft2_4FGL_J1154.0+4037_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/160900/ltcube_431136001_431395201_4FGL_J1154.0+4037_daily_bin740.fits outfile=/scratch/kocevski/160900/expmap_431136001_431395201_4FGL_J1154.0+4037_daily_bin740.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/160900/ltcube_431136001_431395201_4FGL_J1154.0+4037_daily_bin740.fits
.....................!
real 191.48
user 186.10
sys 5.07

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/160900/ft1_filtered_4FGL_J1154.0+4037_daily_bin740.fits scfile=/scratch/kocevski/160900/ft2_4FGL_J1154.0+4037_daily_bin740.fits outfile=/scratch/kocevski/160900/cmap_431136001_431395201_4FGL_J1154.0+4037_daily_bin740.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160900/ft1_filtered_4FGL_J1154.0+4037_daily_bin740.fits scfile=/scratch/kocevski/160900/ft2_4FGL_J1154.0+4037_daily_bin740.fits outfile=/scratch/kocevski/160900/cmap_HighResolution_431136001_431395201_4FGL_J1154.0+4037_daily_bin740.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    154.58       1.0000         .10000E-03   10000.    
     2 'norm      '    .81516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    34.791       1.0000         .10000E-03   10000.    
     7 'norm      '    28.924       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.372       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9874       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.495       1.0000         .10000E-03   10000.    
    15 'norm      '    8.8668       1.0000         .10000E-03   10000.    
    16 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.987       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.1200       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29088E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.4778       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .26640E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2895       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .58361       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=   4598.937     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3986 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     154.81        122.12        .16174E-05    .77622E-04
   2  norm          .81517        .30992        .14308E-07   -.10719E-03
   3  Prefactor     .10000E-03    37.073       -.89812E-07** at limit **
   4  Prefactor     .10000E-03    12.908       -.33671E-07** at limit **
   5  Prefactor     .10000E-03    43.531        .96468E-07** at limit **
   6  norm          34.791        18.895       -.40016E-07   -.13710E-04
   7  norm          28.921        34.803        .12395E-07   -.42407E-05
   8  Prefactor     .10000E-03    1.2588       -.54808E-07** at limit **
   9  Prefactor     .10000E-03    27.045       -.13916E-06** at limit **
  10  Prefactor     18.371        17.527        .16802E-06   -.59393E-05
  11  norm          3.9882        3.8948        .85398E-07   -.30237E-04
  12  Prefactor     .10000E-03    6.8381       -.78696E-07** at limit **
  13  Prefactor     6.9381        5.2363        .58084E-07   -.25944E-04
  14  Prefactor     30.490        82.967        .12058E-05   -.11529E-04
  15  norm          8.8663        2.4708        .57302E-07   -.12412E-03
  16  norm          .10000E-03    7.4040       -.12013E-06** at limit **
  17  Prefactor     .10000E-03    39.448       -.69748E-06** at limit **
  18  Prefactor     .10000E-03    1.5681       -.12411E-06** at limit **
  19  Prefactor     .10000E-03    70.148       -.39851E-07** at limit **
  20  Prefactor     .10000E-03    8.1790       -.91237E-07** at limit **
  21  norm          .10000E-03    .58029       -.11041E-06** at limit **
  22  Prefactor     .10000E-03    22.826       -.24033E-06** at limit **
  23  norm          14.985        5.7303        .50353E-06    .80743E-03
  24  Prefactor     7.1187        9.9515        .29862E-05    .20824E-05
  25  Prefactor     .10000E-03    3.0278       -.88970E-06** at limit **
  26  norm          6.4769        8.2515        .26124E-05   -.30517E-04
  27  Prefactor     .10000E-03    9.4645       -.22082E-06** at limit **
  28  Prefactor     .10000E-03    136.44       -.61933E-05** at limit **
  29  Normalizat    1.2897        .22490       -.36763E-05    .21157E-03
  30  Prefactor     .58335        .24555        .36999E-05   -.38704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 154.812
  norm       = 0.815169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.7906
  norm       = 28.9213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3707
  norm       = 3.98819
  Prefactor  = 0.0001
  Prefactor  = 6.93808
  Prefactor  = 30.4895
  norm       = 8.86628
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.9847
  Prefactor  = 7.11874
  Prefactor  = 0.000100003
  norm       = 6.47691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28972
  Prefactor  = 0.583346
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.937     FROM HESSE     STATUS=OK           580 CALLS     4566 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     154.81        122.43        .16212E-03   -1.3213    
   2  norm          .81517        .30999        .22529E-04   -1.5527    
   3  Prefactor     .10000E-03    37.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          34.791        18.860        .67940E-04   -1.4528    
   7  norm          28.921        34.803        .74494E-04   -1.4632    
   8  Prefactor     .10000E-03    1.2716        .74150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.371        17.523        .93443E-04   -1.4850    
  11  norm          3.9882        3.8624        .11890E-03   -1.5309    
  12  Prefactor     .10000E-03    6.8476        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9381        5.2336        .13009E-03   -1.5181    
  14  Prefactor     30.490        83.150        .72555E-04   -1.4603    
  15  norm          8.8663        2.4774        .47461E-04   -1.5112    
  16  norm          .10000E-03    7.4241        .18022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5794        .82892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    70.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .58934        .50422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.985        5.3260        .90610E-04   -1.4934    
  24  Prefactor     7.1187        9.9518        .75167E-03   -1.5174    
  25  Prefactor     .10000E-03    12.958        .20846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.4769        8.2316        .78843E-03   -1.5199    
  27  Prefactor     .10000E-03    9.4730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    141.74        .39907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2897        .24805        .22904E-03   -.83874    
  30  Prefactor     .58335        .27259        .37197E-03   -1.0829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39638e-10
Minuit parameter uncertainties:
  1  122.636
  2  0.309992
  3  3.67444e-05
  4  1.61056e-06
  5  5.40801e-05
  6  18.8633
  7  34.8271
  8  1.57644e-06
  9  4.01224e-05
  10  17.528
  11  3.86269
  12  5.71213e-06
  13  5.23396
  14  83.4685
  15  2.47746
  16  8.62118e-06
  17  1.25562e-05
  18  2.46627e-06
  19  0.0001412
  20  1.02731e-05
  21  7.65013e-07
  22  2.32386e-05
  23  5.32618
  24  9.95407
  25  0.000363405
  26  8.23308
  27  2.26267e-05
  28  6.49971e-06
  29  0.248276
  30  0.273213
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.412e-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:  5.833e-01  2.732e-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.290e+00  2.483e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160900/likelihoodResults_431136001_431395201_4FGL_J1154.0+4037_daily_bin740.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) = 4598.93686359
delta logL = -6.77393281876e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4598.9367959
delta logL = -4.82350515085e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0653       1.0000          .0000       10.000    
     3 'Normalizat'    1.2897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58335       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=   4598.937     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      240 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7302.1        .90712E-02** at limit **
   2  Index         2.0582        6.8288        .50000        .77162E-06
   3  Normalizat    1.2897        .50931E-01    .51806E-01    .10731E-04
   4  Prefactor     .58335        .58007E-01    .83965E-01    .23634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05819
  Normalizat = 1.28971
  Prefactor  = 0.583351
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.937     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8965.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0582        5.8816        .50000       -.62903    
   3  Normalizat    1.2897        .94553E-01    .22904E-03   -.83874    
   4  Prefactor     .58335        .10740        .37196E-03   -1.0829    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41191e-10
Minuit parameter uncertainties:
  1  0.00119318
  2  53.2174
  3  0.0945652
  4  0.107439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160900': 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) = 4598.93679584
delta logL = 1.28993633552e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  5.834e-01  1.074e-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.290e+00  9.457e-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/160900/cmap_HighResolution_431136001_431395201_4FGL_J1154.0+4037_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 15:52:29.255689', job_id='160900', GAL2='0.58', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630795949.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='740' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:52:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 160900: <4FGL_J1154.0+4037_daily_bin740> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin740> 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) <bullet0290>, 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:52:30 2021
Results reported at Sat Sep  4 15:52:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin740 178.514 40.632 431136001 431395201 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 :                                   799.00 sec.
    Max Memory :                                 1216 MB
    Average Memory :                             320.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

