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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1083
RA = 145.586, Dec = -8.0076
tmin = 520041601, tmax = 520300801
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='447344', job_status='RUN', time_executed='2021-08-31 23:14:57.816286', time_epoch_executed='1630476897.82' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447344

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447344/ft1_4FGL_J0942.3-0800_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447344/ft2_4FGL_J0942.3-0800_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447344/ft1_4FGL_J0942.3-0800_daily_bin1083.fits outfile=/scratch/kocevski/447344/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1083.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=520041601.0 tmax=520300801.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.98
user 4.05
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447344/ft2_4FGL_J0942.3-0800_daily_bin1083.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/447344/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1083.fits evtable="EVENTS" outfile="/scratch/kocevski/447344/ft1_filtered_4FGL_J0942.3-0800_daily_bin1083.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 3.09
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447344/ft1_filtered_4FGL_J0942.3-0800_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/447344/ft2_4FGL_J0942.3-0800_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/447344/ltcube_520041601_520300801_4FGL_J0942.3-0800_daily_bin1083.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/447344/ft2_4FGL_J0942.3-0800_daily_bin1083.fits
.....................!
real 13.58
user 11.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447344/ft1_filtered_4FGL_J0942.3-0800_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/447344/ft2_4FGL_J0942.3-0800_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/447344/ltcube_520041601_520300801_4FGL_J0942.3-0800_daily_bin1083.fits outfile=/scratch/kocevski/447344/expmap_520041601_520300801_4FGL_J0942.3-0800_daily_bin1083.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/447344/ltcube_520041601_520300801_4FGL_J0942.3-0800_daily_bin1083.fits
.....................!
real 196.55
user 185.30
sys 6.17

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/447344/ft1_filtered_4FGL_J0942.3-0800_daily_bin1083.fits scfile=/scratch/kocevski/447344/ft2_4FGL_J0942.3-0800_daily_bin1083.fits outfile=/scratch/kocevski/447344/cmap_520041601_520300801_4FGL_J0942.3-0800_daily_bin1083.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 0.56
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447344/ft1_filtered_4FGL_J0942.3-0800_daily_bin1083.fits scfile=/scratch/kocevski/447344/ft2_4FGL_J0942.3-0800_daily_bin1083.fits outfile=/scratch/kocevski/447344/cmap_HighResolution_520041601_520300801_4FGL_J0942.3-0800_daily_bin1083.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 0.60
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447344/ft1_filtered_4FGL_J0942.3-0800_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/447344/ft2_4FGL_J0942.3-0800_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447344/Model_4FGL_J0942.3-0800_daily_bin1083.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/447344/ft1_filtered_4FGL_J0942.3-0800_daily_bin1083.fits....................!
real 57.06
user 54.94
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52662E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.452       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.301       1.0000         .10000E-03   10000.    
    11 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8735       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8717       1.0000         .10000E-03   10000.    
    14 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3726       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .59067       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=   4925.298     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1919 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8488       -.37454E-06** at limit **
   2  Prefactor     .10000E-03    10.081       -.22609E-06** at limit **
   3  Prefactor     .10000E-03    3.6316       -.15111E-06** at limit **
   4  norm          5.8338        6.1609        .31337E-06    .71843E-04
   5  Prefactor     1.4298        22.988        .37448E-06   -.23463E-05
   6  Prefactor     .10000E-03    26.180       -.17826E-06** at limit **
   7  Prefactor     61.590        23.702        .34811E-06    .40526E-05
   8  Prefactor     70.468        50.279        .10537E-05    .49299E-04
   9  Prefactor     .10000E-03    53.370       -.57462E-06** at limit **
  10  Prefactor     27.304        19.422       -.19459E-07    .18729E-04
  11  norm          .10000E-03    4.6155       -.16680E-06** at limit **
  12  norm          2.8745        4.6710        .61299E-06    .29732E-03
  13  norm          1.8722        .81158        .84275E-07    .57135E-03
  14  norm          .10000E-03    1.4543       -.46732E-06** at limit **
  15  norm          4.2992        11.972        .18431E-06    .47360E-04
  16  Prefactor     45.293        56.293        .17441E-05    .82711E-04
  17  Prefactor     .10000E-03    16.887        .13944E-05** at limit **
  18  Normalizat    1.3715        .28656       -.55884E-05    .27462E-03
  19  Prefactor     .59123        .17241        .54352E-05    .19289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.83377
  Prefactor  = 1.4298
  Prefactor  = 0.0001
  Prefactor  = 61.5903
  Prefactor  = 70.4683
  Prefactor  = 0.0001
  Prefactor  = 27.3037
  norm       = 0.0001
  norm       = 2.87452
  norm       = 1.87215
  norm       = 0.0001
  norm       = 4.29917
  Prefactor  = 45.2932
  Prefactor  = 0.0001
  Normalizat = 1.37149
  Prefactor  = 0.591232
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.298     FROM HESSE     STATUS=OK           270 CALLS     2189 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.351        .22594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6428        .13061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8338        6.1375        .16619E-03   -1.5225    
   5  Prefactor     1.4298        123.38        .59740E-02   -1.5469    
   6  Prefactor     .10000E-03    26.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.590        23.642        .51127E-04   -1.4137    
   8  Prefactor     70.468        50.195        .47826E-04   -1.4027    
   9  Prefactor     .10000E-03    53.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.304        19.421        .76673E-04   -1.4662    
  11  norm          .10000E-03    4.6519        .14726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8745        4.6830        .18527E-03   -1.5369    
  13  norm          1.8722        .80648        .39594E-04   -1.5434    
  14  norm          .10000E-03    2.4865        .16276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2992        11.957        .19431E-03   -1.5293    
  16  Prefactor     45.293        56.571        .59616E-04   -1.4361    
  17  Prefactor     .10000E-03    17.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3715        .28992        .25141E-03   -.81457    
  19  Prefactor     .59123        .17507        .24207E-03   -1.0796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34829e-08
Minuit parameter uncertainties:
  1  0.000247019
  2  1.35039e-05
  3  4.1997e-06
  4  6.13821
  5  26.6198
  6  1.0641e-05
  7  23.6452
  8  50.2255
  9  0.000193651
  10  19.4256
  11  1.13713e-05
  12  4.68363
  13  0.806484
  14  3.48203e-06
  15  11.9635
  16  56.6381
  17  0.000145556
  18  0.290268
  19  0.175234
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  2.875e+00  4.684e+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:  5.912e-01  1.752e-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.371e+00  2.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447344/likelihoodResults_520041601_520300801_4FGL_J0942.3-0800_daily_bin1083.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) = 4925.03041785
delta logL = 0.267408192506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4924.99776333
delta logL = 0.300062706646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8892       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1022       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61116       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.

 FCN=   4924.998     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8862        48.759        .75687E-02    .65150E-03
   2  alpha         3.1027        3.9175        .32140        .53049E-04
   3  Normalizat    1.3209        .66580E-01    .57735E-01    .25621E-04
   4  Prefactor     .61116        .42074E-01    .41206E-01    .49620E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88617
  alpha      = 3.10274
  Normalizat = 1.3209
  Prefactor  = 0.611157
 **********
 **   18 **HESSE 
 **********

 FCN=   4924.998     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8862        9.4323        .97774E-04   -1.5433    
   2  alpha         3.1027        3.8629        .15939E-01    .24350    
   3  Normalizat    1.3209        .28002        .25532E-03   -.82945    
   4  Prefactor     .61116        .18231        .23833E-03   -1.0712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00996e-10
Minuit parameter uncertainties:
  1  8.43777
  2  3.05206
  3  0.280341
  4  0.182485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447344': 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) = 4924.99776294
delta logL = 0.300063101142

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.886e+00  8.438e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  3.103e+00  3.052e+00  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:  6.112e-01  1.825e-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.321e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 3.10 +/- 3.05
Photon Flux (Free Index): 5.96e-08 +/- 7.93e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.62e-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/447344/cmap_HighResolution_520041601_520300801_4FGL_J0942.3-0800_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-05', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='3.00e-01', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-08-31 23:24:13.966650', photon_index_error2='3.05', photon_index2='3.10', ts='0.47', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='9.17e-08', energy_flux_error2='1.62e-05', EG='1.37', time_epoch_completed='1630477453.97', return_code='0', job_id='447344', GAL2='0.61', EG2='1.32', return_code2='0', photon_flux_error2='7.93e-08', ts2='1.09', photon_index='2.01' WHERE bin_id='1083' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:24:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 447344: <4FGL_J0942.3-0800_daily_bin1083> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1083> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:11:32 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:11:33 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:33 2021
Terminated at Tue Aug 31 23:24:14 2021
Results reported at Tue Aug 31 23:24:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1083 145.586 -8.0076 520041601 520300801 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 :                                   521.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            762 sec.

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

