/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7647
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1137
RA = 145.586, Dec = -8.0076
tmin = 534038401, tmax = 534297601
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='447432', job_status='RUN', time_executed='2021-08-31 23:12:52.439475', time_epoch_executed='1630476772.44' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447432

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447432/ft1_4FGL_J0942.3-0800_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447432/ft1_4FGL_J0942.3-0800_daily_bin1137.fits outfile=/scratch/kocevski/447432/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1137.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=534038401.0 tmax=534297601.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.68
user 3.41
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.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/447432/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1137.fits evtable="EVENTS" outfile="/scratch/kocevski/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.fits" evtable="EVENTS" scfile=/scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits sctable="SC_DATA" outfile=/scratch/kocevski/447432/ltcube_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.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/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits
.....................!
real 14.55
user 14.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/447432/ltcube_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.fits outfile=/scratch/kocevski/447432/expmap_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.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/447432/ltcube_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.fits
.....................!
real 191.35
user 186.22
sys 4.24

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J0942.3-0800 @ 145.586 -8.0076

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.fits scfile=/scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits outfile=/scratch/kocevski/447432/cmap_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.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=145.586 yref=-8.0076 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 4.49
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.fits scfile=/scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits outfile=/scratch/kocevski/447432/cmap_HighResolution_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.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=145.586 yref=-8.0076 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 2.90
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447432/Model_4FGL_J0942.3-0800_daily_bin1137.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/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.fits.....................!
real 64.51
user 59.89
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.fits', '/scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits', expMap='/scratch/kocevski/447432/expmap_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.fits', expCube='/scratch/kocevski/447432/ltcube_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447432/Model_4FGL_J0942.3-0800_daily_bin1137.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0942.3-0800'

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.319e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.008e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/447432/ft1_filtered_4FGL_J0942.3-0800_daily_bin1137.fits
Spacecraft file(s): /scratch/kocevski/447432/ft2_4FGL_J0942.3-0800_daily_bin1137.fits
Exposure map: /scratch/kocevski/447432/expmap_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.fits
Exposure cube: /scratch/kocevski/447432/ltcube_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447432/Model_4FGL_J0942.3-0800_daily_bin1137.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) = 5831.27727013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6437       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.998       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.1012       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .31820       1.0000         .10000E-03   10000.    
    14 'norm      '    .73477       1.0000         .10000E-03   10000.    
    15 'norm      '    .68518E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.230       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0350       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1351       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5831.276     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1884 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6440        2.6865        .16036E-07   -.19741E-04
   2  Prefactor     16.000        13.297       -.14447E-07    .17875E-05
   3  Prefactor     .10000E-03    3.3277        .19454E-07** at limit **
   4  norm          5.1019        5.7010       -.94733E-06    .53280E-03
   5  Prefactor     .10000E-03    9.3303        .69510E-07** at limit **
   6  Prefactor     .10001E-03    29.564        .40770E-06** at limit **
   7  Prefactor     .10000E-03    8.1769        .99488E-08** at limit **
   8  Prefactor     .10000E-03    77.545        .52640E-06** at limit **
   9  Prefactor     .10000E-03    8.2783        .92664E-08** at limit **
  10  Prefactor     .10000E-03    7.6300        .36549E-07** at limit **
  11  norm          .10000E-03    1.6958        .89606E-08** at limit **
  12  norm          .10000E-03    1.8186       -.13919E-07** at limit **
  13  norm          .31837        .63215       -.89792E-07    .27836E-03
  14  norm          .73509        1.2047        .74547E-06    .11354E-02
  15  norm          .10000E-03    38.828        .32286E-05** at limit **
  16  Prefactor     .10000E-03    16.418        .65094E-07** at limit **
  17  Prefactor     31.226        38.075       -.14577E-06    .62286E-04
  18  Normalizat    1.0350        .21208        .15541E-07   -.68436E-05
  19  Prefactor     1.1350        .14894        .10988E-06    .24638E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.64398
  Prefactor  = 15.9998
  Prefactor  = 0.0001
  norm       = 5.10186
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.31837
  norm       = 0.735093
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 31.2257
  Normalizat = 1.035
  Prefactor  = 1.13499
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.276     FROM HESSE     STATUS=OK           266 CALLS     2150 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6440        2.6909        .12251E-03   -1.5383    
   2  Prefactor     16.000        13.289        .10013E-03   -1.4908    
   3  Prefactor     .10000E-03    3.3389        .13603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.1019        5.9130        .89007E-03   -1.5256    
   5  Prefactor     .10000E-03    9.3524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    31.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    78.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6975        .97113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8307        .10056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .31837        .63391        .79753E-04   -1.5595    
  14  norm          .73509        1.2465        .13491E-02   -1.5536    
  15  norm          .10000E-03    39.092        .35116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.226        38.252        .71699E-04   -1.4590    
  18  Normalizat    1.0350        .24631        .29270E-03   -.91867    
  19  Prefactor     1.1350        .17364        .20223E-03   -.88356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51509e-10
Minuit parameter uncertainties:
  1  2.69098
  2  13.2917
  3  1.72295e-06
  4  5.91367
  5  2.6791e-05
  6  0.000849789
  7  1.7367e-05
  8  0.000708919
  9  1.23096e-06
  10  5.98378e-06
  11  3.22326e-07
  12  3.01721e-06
  13  0.633919
  14  1.24655
  15  0.000641986
  16  4.75096e-05
  17  38.282
  18  0.246586
  19  0.173728
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  3.017e-06  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.008e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.135e+00  1.737e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.035e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.586 -8.008
Photon Flux Upper Limit: 5.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447432/likelihoodResults_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.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) = 5831.2784186
delta logL = -0.00258177388059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5831.23431487
delta logL = 0.0415219638007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17593E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5831.234     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      370 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17659E-01    .71352E-01    .27778E-03    .25483E-01
   2  alpha         5.0000        4.9637        .50000    ** at limit **
   3  Normalizat    1.0108        .25655        .29591E-03   -.17673E-05
   4  Prefactor     1.1453        .17796        .20145E-03   -.56999E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0176591
  alpha      = 5
  Normalizat = 1.01078
  Prefactor  = 1.14532
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17659E-01    .66496E-01    .55556E-04   -1.5681    
   2  alpha         5.0000        4.9984        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0108        .25748        .11836E-04   -.92670    
   4  Prefactor     1.1453        .17834        .80579E-05   -.88031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58742e-11
Minuit parameter uncertainties:
  1  0.0664964
  2  1.87364e-05
  3  0.2578
  4  0.178438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447432': 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) = 5831.23431423
delta logL = 0.0415226032001

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.766e-02  6.650e-02  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  5.000e+00  1.874e-05  0.000e+00  5.000e+00 ( 1.000e+00)
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.145e+00  1.784e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.011e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.586 -8.008

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/447432/cmap_HighResolution_534038401_534297601_4FGL_J0942.3-0800_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='5.27e-08', time_completed='2021-08-31 23:22:30.734701', job_id='447432', GAL2='1.15', fit_tolerance='1e-08', EG2='1.01', EG='1.04', time_epoch_completed='1630477350.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='4.15e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1137' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:22:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 447432: <4FGL_J0942.3-0800_daily_bin1137> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1137> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:11:39 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:11:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 23:11:42 2021
Terminated at Tue Aug 31 23:22:31 2021
Results reported at Tue Aug 31 23:22:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1137 145.586 -8.0076 534038401 534297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0942.3-0800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   552.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            652 sec.

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

