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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin680
RA = 178.514, Dec = 40.632
tmin = 415584001, tmax = 415843201
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='160821', job_status='RUN', time_executed='2021-09-04 15:37:03.229644', time_epoch_executed='1630795023.23' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160821/ft1_4FGL_J1154.0+4037_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160821/ft2_4FGL_J1154.0+4037_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160821/ft1_4FGL_J1154.0+4037_daily_bin680.fits outfile=/scratch/kocevski/160821/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin680.fits ra=178.514 dec=40.632 rad=12.0 tmin=415584001.0 tmax=415843201.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.37
user 6.08
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160821/ft1_filtered_4FGL_J1154.0+4037_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/160821/ft2_4FGL_J1154.0+4037_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/160821/ltcube_415584001_415843201_4FGL_J1154.0+4037_daily_bin680.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/160821/ft2_4FGL_J1154.0+4037_daily_bin680.fits
.....................!
real 12.04
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160821/ft1_filtered_4FGL_J1154.0+4037_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/160821/ft2_4FGL_J1154.0+4037_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/160821/ltcube_415584001_415843201_4FGL_J1154.0+4037_daily_bin680.fits outfile=/scratch/kocevski/160821/expmap_415584001_415843201_4FGL_J1154.0+4037_daily_bin680.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/160821/ltcube_415584001_415843201_4FGL_J1154.0+4037_daily_bin680.fits
.....................!
real 193.00
user 187.66
sys 4.82

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160821/ft1_filtered_4FGL_J1154.0+4037_daily_bin680.fits scfile=/scratch/kocevski/160821/ft2_4FGL_J1154.0+4037_daily_bin680.fits outfile=/scratch/kocevski/160821/cmap_HighResolution_415584001_415843201_4FGL_J1154.0+4037_daily_bin680.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.224       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6911       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    110.67       1.0000         .10000E-03   10000.    
     6 'norm      '    21.750       1.0000         .10000E-03   10000.    
     7 'norm      '    81.073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.578       1.0000         .10000E-03   10000.    
    11 'norm      '    .24547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.610       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2021       1.0000         .10000E-03   10000.    
    14 'Prefactor '    100.87       1.0000         .10000E-03   10000.    
    15 'norm      '    14.986       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6428       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27529E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0176       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25186       1.0000         .10000E-03   10000.    
    23 'norm      '    15.132       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2989       1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.928       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .47007       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4538       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=   4627.454     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4916 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.943        167.34        .75795E-06   -.20903E-04
   2  norm          1.6911        .49930        .36671E-08    .68650E-04
   3  Prefactor     .10000E-03    7.0552        .63916E-07** at limit **
   4  Prefactor     .10000E-03    8.2931        .14464E-07** at limit **
   5  Prefactor     110.75        122.23        .39762E-06    .47411E-05
   6  norm          21.749        16.918        .12136E-06    .30977E-04
   7  norm          80.969        104.98        .51779E-06   -.12984E-04
   8  Prefactor     .10000E-03    1.2933        .48882E-07** at limit **
   9  Prefactor     .10000E-03    17.441       -.12448E-07** at limit **
  10  Prefactor     18.562        36.270       -.77550E-06    .13240E-04
  11  norm          .24517        2.7337        .14577E-05   -.38077E-03
  12  Prefactor     11.609        33.997        .11269E-05   -.50340E-04
  13  Prefactor     3.2036        8.4031        .59386E-06   -.24622E-04
  14  Prefactor     100.86        100.19       -.57576E-06   -.33794E-04
  15  norm          14.986        3.2789        .24738E-07   -.24162E-03
  16  norm          .10000E-03    11.884        .83366E-07** at limit **
  17  Prefactor     49.346        40.260       -.19970E-05    .20653E-03
  18  Prefactor     3.6442        6.5238       -.21728E-05   -.80901E-03
  19  Prefactor     .10000E-03    35.035        .94205E-07** at limit **
  20  Prefactor     .10035E-03    38.463        .70688E-05** at limit **
  21  norm          3.0181        1.9615       -.96903E-07    .36378E-03
  22  Prefactor     .18312E-03    45.152        .26049E-05** at limit **
  23  norm          15.134        5.4809       -.19826E-06    .31202E-03
  24  Prefactor     .10000E-03    2.9376        .15299E-06** at limit **
  25  Prefactor     2.2990        2.2548       -.44807E-07    .14263E-03
  26  norm          .10000E-03    3.2467        .10230E-06** at limit **
  27  Prefactor     .10000E-03    13.456        .25611E-06** at limit **
  28  Prefactor     31.923        25.444        .43257E-06    .32657E-04
  29  Normalizat    .46990        .23169       -.11319E-05   -.45445E-04
  30  Prefactor     1.4542        .26521       -.17678E-05   -.54274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.9435
  norm       = 1.69113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.753
  norm       = 21.749
  norm       = 80.9695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5621
  norm       = 0.245169
  Prefactor  = 11.6089
  Prefactor  = 3.20356
  Prefactor  = 100.855
  norm       = 14.9858
  norm       = 0.0001
  Prefactor  = 49.3458
  Prefactor  = 3.64417
  Prefactor  = 0.0001
  Prefactor  = 0.000100347
  norm       = 3.01811
  Prefactor  = 0.000183119
  norm       = 15.1337
  Prefactor  = 0.0001
  Prefactor  = 2.29898
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9233
  Normalizat = 0.469904
  Prefactor  = 1.45423
 **********
 **   18 **HESSE 
 **********

 FCN=   4627.454     FROM HESSE     STATUS=OK           600 CALLS     5516 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.943        167.72        .29487E-03   -1.4351    
   2  norm          1.6911        .49976        .25287E-04   -1.5448    
   3  Prefactor     .10000E-03    7.0604        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     110.75        122.22        .19118E-03   -1.3599    
   6  norm          21.749        16.895        .85885E-04   -1.4775    
   7  norm          80.969        105.04        .22303E-03   -1.3906    
   8  Prefactor     .10000E-03    2.1649        .14900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.562        35.989        .92922E-04   -1.4846    
  11  norm          .24517        2.6565        .21236E-03   -1.5609    
  12  Prefactor     11.609        33.746        .11757E-03   -1.5026    
  13  Prefactor     3.2036        8.2762        .22642E-03   -1.5350    
  14  Prefactor     100.86        100.53        .40031E-04   -1.3696    
  15  norm          14.986        3.3032        .46843E-04   -1.4934    
  16  norm          .10000E-03    11.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.346        40.068        .57103E-04   -1.4302    
  18  Prefactor     3.6442        6.2129        .20753E-03   -1.5326    
  19  Prefactor     .10000E-03    35.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10035E-03    236.70        .69203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0181        1.9547        .72283E-04   -1.5360    
  22  Prefactor     .18312E-03    52.687        .11690       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.134        5.4665        .90081E-04   -1.4930    
  24  Prefactor     .10000E-03    2.9450        .11386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2990        2.2648        .97213E-04   -1.5405    
  26  norm          .10000E-03    3.2533        .11971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.923        25.423        .70912E-04   -1.4577    
  29  Normalizat    .46990        .25926        .37175E-03   -1.1383    
  30  Prefactor     1.4542        .30249        .26927E-03   -.78830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21817e-09
Minuit parameter uncertainties:
  1  169.489
  2  0.499764
  3  1.59754e-06
  4  1.67946e-06
  5  122.496
  6  16.8992
  7  105.284
  8  2.55693e-06
  9  3.362e-06
  10  36.031
  11  1.61383
  12  33.8014
  13  8.27918
  14  100.697
  15  3.30319
  16  6.54368e-06
  17  40.09
  18  6.21402
  19  5.20672e-07
  20  0.0182111
  21  1.95474
  22  0.132469
  23  5.46664
  24  1.50423e-06
  25  2.26489
  26  8.34518e-07
  27  6.27955e-06
  28  25.4314
  29  0.259928
  30  0.302858
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.207e-07  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.454e+00  3.029e-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:  4.699e-01  2.599e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160821/likelihoodResults_415584001_415843201_4FGL_J1154.0+4037_daily_bin680.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) = 4627.45415153
delta logL = -0.000134970057843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4627.45401661
delta logL = -4.49508661404e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1826       1.0000          .0000       10.000    
     3 'Normalizat'    .46990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4542       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=   4627.454     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7382.3        .90712E-02** at limit **
   2  Index         2.1719        5.8570        .50000        .25687E-05
   3  Normalizat    .46990        .93882E-01    .83905E-01    .22558E-05
   4  Prefactor     1.4542        .11459        .60898E-01   -.89117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17194
  Normalizat = 0.469904
  Prefactor  = 1.45423
 **********
 **   18 **HESSE 
 **********

 FCN=   4627.454     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1719        6.0819        .50000       -.60118    
   3  Normalizat    .46990        .23962        .37174E-03   -1.1383    
   4  Prefactor     1.4542        .29352        .26928E-03   -.78830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59942e-11
Minuit parameter uncertainties:
  1  0.000195964
  2  4.23472
  3  0.240143
  4  0.293862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160821': 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) = 4627.4540166
delta logL = -3.36567609338e-08

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.960e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.172e+00  4.235e+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:  1.454e+00  2.939e-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:  4.699e-01  2.401e-01  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/160821/cmap_HighResolution_415584001_415843201_4FGL_J1154.0+4037_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.23e-08', time_completed='2021-09-04 15:51:32.499353', job_id='160821', GAL2='1.45', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1630795892.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='-3.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='680' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 160821: <4FGL_J1154.0+4037_daily_bin680> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin680 178.514 40.632 415584001 415843201 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 :                                   867.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

