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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1049
RA = 145.586, Dec = -8.0076
tmin = 511228801, tmax = 511488001
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='447290', job_status='RUN', time_executed='2021-08-31 23:11:53.106330', time_epoch_executed='1630476713.11' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447290/ft1_4FGL_J0942.3-0800_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447290/ft1_4FGL_J0942.3-0800_daily_bin1049.fits outfile=/scratch/kocevski/447290/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1049.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=511228801.0 tmax=511488001.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.54
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.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/447290/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.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/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/447290/ltcube_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.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/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits
.....................!
real 11.85
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/447290/ltcube_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.fits outfile=/scratch/kocevski/447290/expmap_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.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/447290/ltcube_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.fits
.....................!
real 191.17
user 185.70
sys 4.61

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/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.fits scfile=/scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits outfile=/scratch/kocevski/447290/cmap_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.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 2.29
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.fits scfile=/scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits outfile=/scratch/kocevski/447290/cmap_HighResolution_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.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 1.93
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447290/Model_4FGL_J0942.3-0800_daily_bin1049.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/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.fits.....................!
real 59.79
user 54.42
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.fits', '/scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits', expMap='/scratch/kocevski/447290/expmap_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.fits', expCube='/scratch/kocevski/447290/ltcube_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447290/Model_4FGL_J0942.3-0800_daily_bin1049.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/447290/ft1_filtered_4FGL_J0942.3-0800_daily_bin1049.fits
Spacecraft file(s): /scratch/kocevski/447290/ft2_4FGL_J0942.3-0800_daily_bin1049.fits
Exposure map: /scratch/kocevski/447290/expmap_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.fits
Exposure cube: /scratch/kocevski/447290/ltcube_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447290/Model_4FGL_J0942.3-0800_daily_bin1049.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) = 4998.8053665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.161       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.461       1.0000         .10000E-03   10000.    
    12 'norm      '    5.1251       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7836       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.931       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8716       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .67081       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1521       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=   4998.705     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1949 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2914        .25620E-07** at limit **
   2  Prefactor     .10000E-03    9.9210        .10497E-06** at limit **
   3  Prefactor     .10000E-03    2.0672        .35883E-07** at limit **
   4  norm          1.3979        7.1373        .25169E-05   -.42508E-04
   5  Prefactor     .10000E-03    11.156        .19476E-07** at limit **
   6  Prefactor     .10000E-03    14.483        .69699E-09** at limit **
   7  Prefactor     21.152        18.053        .20251E-06   -.59242E-04
   8  Prefactor     1.1655        226.51        .81339E-05   -.26674E-06
   9  Prefactor     44.113        41.516        .77244E-07   -.17108E-04
  10  Prefactor     .10000E-03    11.917        .80352E-08** at limit **
  11  norm          13.464        11.420        .43959E-06   -.69952E-04
  12  norm          5.1261        4.3509        .21517E-06   -.76705E-04
  13  norm          .10000E-03    .39234        .49959E-07** at limit **
  14  norm          2.7836        2.4495        .29068E-07   -.44543E-04
  15  norm          .10000E-03    7.8356        .12171E-07** at limit **
  16  Prefactor     31.947        45.144       -.45606E-05    .10341E-04
  17  Prefactor     1.6849        221.93        .16348E-04   -.68316E-05
  18  Normalizat    .67109        .22790       -.13610E-05   -.11220E-03
  19  Prefactor     1.1520        .15469       -.21389E-06   -.17427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1519
  Prefactor  = 1.16548
  Prefactor  = 44.1133
  Prefactor  = 0.0001
  norm       = 13.4642
  norm       = 5.12608
  norm       = 0.0001
  norm       = 2.78355
  norm       = 0.0001
  Prefactor  = 31.9469
  Prefactor  = 1.68493
  Normalizat = 0.671086
  Prefactor  = 1.15196
 **********
 **   18 **HESSE 
 **********

 FCN=   4998.705     FROM HESSE     STATUS=OK           268 CALLS     2217 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2970        .78462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.0692        .99276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3979        7.0828        .35772E-03   -1.5472    
   5  Prefactor     .10000E-03    11.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.152        18.026        .87072E-04   -1.4788    
   8  Prefactor     1.1655        223.12        .39166E-03   -1.5492    
   9  Prefactor     44.113        41.514        .60361E-04   -1.4379    
  10  Prefactor     .10000E-03    11.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.464        11.385        .10917E-03   -1.4974    
  12  norm          5.1261        4.3373        .13023E-03   -1.5255    
  13  norm          .10000E-03    1.6556        .83303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7836        2.4437        .99536E-04   -1.5374    
  15  norm          .10000E-03    7.8843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.947        44.889        .70909E-04   -1.4577    
  17  Prefactor     1.6849        226.94        .30443E-03   -1.5448    
  18  Normalizat    .67109        .25748        .32836E-03   -1.0505    
  19  Prefactor     1.1520        .17802        .18568E-03   -.87823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48712e-10
Minuit parameter uncertainties:
  1  6.88236e-07
  2  4.75367e-06
  3  2.99986e-07
  4  6.29407
  5  3.47441e-07
  6  3.64253e-07
  7  18.0305
  8  32.3734
  9  41.541
  10  4.58411e-06
  11  11.3873
  12  4.33757
  13  3.45261e-05
  14  2.44375
  15  5.04845e-06
  16  44.9362
  17  39.2608
  18  0.257946
  19  0.17811
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  5.126e+00  4.338e+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

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.152e+00  1.781e-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:  6.711e-01  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 145.586 -8.008
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/447290/likelihoodResults_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.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) = 4998.68502937
delta logL = 0.0198591800163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4998.68459823
delta logL = 0.0202903167365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1114       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8567       1.0000          .0000       5.0000    
     3 'Normalizat'    .67525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1511       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=   4998.685     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      260 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0988        4.4173        .66468E-03   -.70965E-04
   2  alpha         1.8540        .76099        .17034E-01    .37445E-04
   3  Normalizat    .67534        .24162        .32743E-03   -.13750E-03
   4  Prefactor     1.1511        .17580        .18575E-03   -.24146E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.09883
  alpha      = 1.854
  Normalizat = 0.675345
  Prefactor  = 1.15111
 **********
 **   18 **HESSE 
 **********

 FCN=   4998.685     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0988        4.4440        .26587E-04   -1.5256    
   2  alpha         1.8540        .76546        .68137E-03   -.26136    
   3  Normalizat    .67534        .24174        .13097E-04   -1.0487    
   4  Prefactor     1.1511        .17591        .37150E-04   -.87849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0389e-10
Minuit parameter uncertainties:
  1  4.44426
  2  0.778888
  3  0.242124
  4  0.175995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447290': 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) = 4998.68458957
delta logL = 0.0202989825148

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  5.099e+00  4.444e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  1.854e+00  7.789e-01  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.151e+00  1.760e-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:  6.753e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 1.85 +/- 0.78
Photon Flux (Free Index): 2.78e-08 +/- 3.51e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.91e-05

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/447290/cmap_HighResolution_511228801_511488001_4FGL_J0942.3-0800_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-05', comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='2.02e-05', photon_flux_error='2.79e-08', dlogl='2.03e-02', energy_flux='1.87e-05', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-08-31 23:20:34.433745', photon_index_error2='0.78', photon_index2='1.85', ts='2.46', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='9.91e-08', energy_flux_error2='1.91e-05', EG='0.67', time_epoch_completed='1630477234.43', return_code='0', job_id='447290', GAL2='1.15', EG2='0.68', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='3.51e-08', ts2='2.50', photon_index='2.01' WHERE bin_id='1049' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:20:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 447290: <4FGL_J0942.3-0800_daily_bin1049> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1049> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:11:27 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:11:29 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:29 2021
Terminated at Tue Aug 31 23:20:35 2021
Results reported at Tue Aug 31 23:20:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1049 145.586 -8.0076 511228801 511488001 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 :                                   506.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            548 sec.

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

