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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1514
RA = 145.586, Dec = -8.0076
tmin = 631756801, tmax = 632016001
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='448006', job_status='RUN', time_executed='2021-08-31 23:14:36.446660', time_epoch_executed='1630476876.45' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448006

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448006/ft1_4FGL_J0942.3-0800_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448006/ft1_4FGL_J0942.3-0800_daily_bin1514.fits outfile=/scratch/kocevski/448006/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1514.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=631756801.0 tmax=632016001.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 2.40
user 2.21
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.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/448006/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/448006/ltcube_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.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/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits
.....................!
real 12.35
user 11.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/448006/ltcube_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.fits outfile=/scratch/kocevski/448006/expmap_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.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/448006/ltcube_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.fits
.....................!
real 194.85
user 188.08
sys 4.43

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/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.fits scfile=/scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits outfile=/scratch/kocevski/448006/cmap_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.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.58
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.fits scfile=/scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits outfile=/scratch/kocevski/448006/cmap_HighResolution_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.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.51
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448006/Model_4FGL_J0942.3-0800_daily_bin1514.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/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.fits.....................!
real 84.80
user 82.85
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.fits', '/scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits', expMap='/scratch/kocevski/448006/expmap_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.fits', expCube='/scratch/kocevski/448006/ltcube_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/448006/Model_4FGL_J0942.3-0800_daily_bin1514.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/448006/ft1_filtered_4FGL_J0942.3-0800_daily_bin1514.fits
Spacecraft file(s): /scratch/kocevski/448006/ft2_4FGL_J0942.3-0800_daily_bin1514.fits
Exposure map: /scratch/kocevski/448006/expmap_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.fits
Exposure cube: /scratch/kocevski/448006/ltcube_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/448006/Model_4FGL_J0942.3-0800_daily_bin1514.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8867.84649006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6411       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0126       1.0000         .10000E-03   10000.    
     4 'norm      '    .12268E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9141       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.208       1.0000         .10000E-03   10000.    
    11 'norm      '    .23382       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0105       1.0000         .10000E-03   10000.    
    13 'norm      '    .17065       1.0000         .10000E-03   10000.    
    14 'norm      '    .88798       1.0000         .10000E-03   10000.    
    15 'norm      '    .22948E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.015       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0235       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99418       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=   8867.732     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1697 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6410        2.9883        .77906E-07   -.17822E-03
   2  Prefactor     8.4890        8.6281       -.96490E-07   -.20056E-04
   3  Prefactor     6.0123        6.0920       -.27398E-05    .12481E-03
   4  norm          .10000E-03    16.268       -.27528E-05** at limit **
   5  Prefactor     7.9486        19.546        .53661E-05   -.53911E-04
   6  Prefactor     .10000E-03    23.537        .56626E-06** at limit **
   7  Prefactor     5.9223        17.347        .47749E-06   -.90430E-05
   8  Prefactor     .10000E-03    13.237        .26364E-05** at limit **
   9  Prefactor     .10000E-03    12.064       -.12373E-05** at limit **
  10  Prefactor     13.206        12.252        .37401E-06    .25210E-04
  11  norm          .23380        3.9212       -.10794E-05   -.12827E-03
  12  norm          4.0106        2.5974       -.46577E-07   -.86522E-04
  13  norm          .17141        .44796       -.33129E-06   -.16910E-02
  14  norm          .88805        .79062        .26967E-07    .31011E-03
  15  norm          .10000E-03    5.3471        .48039E-07** at limit **
  16  Prefactor     25.010        24.831       -.25102E-05    .73278E-04
  17  Prefactor     .10000E-03    23.544        .12598E-05** at limit **
  18  Normalizat    1.0229        .16921        .14235E-06    .29053E-03
  19  Prefactor     .99447        .11240        .15747E-06    .34868E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64096
  Prefactor  = 8.48901
  Prefactor  = 6.01228
  norm       = 0.0001
  Prefactor  = 7.94863
  Prefactor  = 0.0001
  Prefactor  = 5.92227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2063
  norm       = 0.233795
  norm       = 4.0106
  norm       = 0.171406
  norm       = 0.888047
  norm       = 0.0001
  Prefactor  = 25.0103
  Prefactor  = 0.0001
  Normalizat = 1.02295
  Prefactor  = 0.994466
 **********
 **   18 **HESSE 
 **********

 FCN=   8867.732     FROM HESSE     STATUS=OK           278 CALLS     1975 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6410        2.9811        .14114E-03   -1.5326    
   2  Prefactor     8.4890        8.6216        .13758E-03   -1.5125    
   3  Prefactor     6.0123        6.0996        .16375E-03   -1.5218    
   4  norm          .10000E-03    17.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9486        19.226        .14233E-03   -1.5144    
   6  Prefactor     .10000E-03    23.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9223        17.231        .16513E-03   -1.5221    
   8  Prefactor     .10000E-03    13.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.206        12.224        .11021E-03   -1.4981    
  11  norm          .23380        22.829        .35113E-02   -1.5611    
  12  norm          4.0106        2.5961        .11853E-03   -1.5307    
  13  norm          .17141        .57462        .95569E-03   -1.5625    
  14  norm          .88805        .83033        .76916E-03   -1.5519    
  15  norm          .10000E-03    45.809        .40650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.010        24.790        .80093E-04   -1.4707    
  17  Prefactor     .10000E-03    23.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0229        .20116        .27836E-03   -.92266    
  19  Prefactor     .99447        .13517        .19861E-03   -.92914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46807e-08
Minuit parameter uncertainties:
  1  2.98126
  2  8.62282
  3  6.10022
  4  5.57499e-05
  5  19.2405
  6  0.000118845
  7  17.2452
  8  5.78774e-05
  9  3.59272e-05
  10  12.2263
  11  4.62137
  12  2.59619
  13  0.574639
  14  0.830345
  15  2.69671e-05
  16  24.8005
  17  4.61782e-06
  18  0.201305
  19  0.135215
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  4.011e+00  2.596e+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:  9.945e-01  1.352e-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.023e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.36
Ra Dec: 145.586 -8.008
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 9.46e-06

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) = 8867.71192254
delta logL = 0.0199617771505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8867.71171504
delta logL = 0.0201692768096

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8867.712     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      235 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0503        2.6519        .12070E-03   -.14524E-02
   2  alpha         1.8889        .58764        .18321E-01   -.10063E-03
   3  Normalizat    1.0261        .18836        .27798E-03   -.66306E-03
   4  Prefactor     .99350        .13316        .19870E-03   -.98709E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.05033
  alpha      = 1.88893
  Normalizat = 1.02611
  Prefactor  = 0.993497
 **********
 **   18 **HESSE 
 **********

 FCN=   8867.712     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0503        2.6513        .48278E-05   -1.5305    
   2  alpha         1.8889        .58749        .73282E-03   -.24693    
   3  Normalizat    1.0261        .18848        .55596E-04   -.92161    
   4  Prefactor     .99350        .13327        .39740E-04   -.92947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29151e-09
Minuit parameter uncertainties:
  1  2.65139
  2  0.593398
  3  0.188605
  4  0.13331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448006': 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) = 8867.71171503
delta logL = 0.0201692900118

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  4.050e+00  2.651e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  1.889e+00  5.934e-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:  9.935e-01  1.333e-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.026e+00  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 1.89 +/- 0.59
Photon Flux (Free Index): 2.29e-08 +/- 2.06e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/448006/cmap_HighResolution_631756801_632016001_4FGL_J0942.3-0800_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='1.56e-05', photon_flux_error='1.67e-08', dlogl='2.02e-02', energy_flux='1.46e-05', photon_flux2='2.29e-08', job_status='DONE', time_completed='2021-08-31 23:25:50.785232', photon_index_error2='0.59', photon_index2='1.89', ts='5.36', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='1.02', time_epoch_completed='1630477550.79', return_code='0', job_id='448006', GAL2='0.99', EG2='1.03', return_code2='0', energy_flux_error='9.46e-06', photon_flux_error2='2.06e-08', ts2='5.40', photon_index='2.01' WHERE bin_id='1514' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:25:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 448006: <4FGL_J0942.3-0800_daily_bin1514> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1514> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:12:29 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:12:30 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:12:30 2021
Terminated at Tue Aug 31 23:25:51 2021
Results reported at Tue Aug 31 23:25:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1514 145.586 -8.0076 631756801 632016001 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 :                                   577.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

