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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1560
RA = 145.586, Dec = -8.0076
tmin = 643680001, tmax = 643939201
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='448079', job_status='RUN', time_executed='2021-08-31 23:17:15.140839', time_epoch_executed='1630477035.14' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448079

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448079/ft1_4FGL_J0942.3-0800_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448079/ft2_4FGL_J0942.3-0800_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448079/ft1_4FGL_J0942.3-0800_daily_bin1560.fits outfile=/scratch/kocevski/448079/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1560.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=643680001.0 tmax=643939201.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 4.49
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448079/ft1_filtered_4FGL_J0942.3-0800_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/448079/ft2_4FGL_J0942.3-0800_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/448079/ltcube_643680001_643939201_4FGL_J0942.3-0800_daily_bin1560.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/448079/ft2_4FGL_J0942.3-0800_daily_bin1560.fits
.....................!
real 13.67
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448079/ft1_filtered_4FGL_J0942.3-0800_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/448079/ft2_4FGL_J0942.3-0800_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/448079/ltcube_643680001_643939201_4FGL_J0942.3-0800_daily_bin1560.fits outfile=/scratch/kocevski/448079/expmap_643680001_643939201_4FGL_J0942.3-0800_daily_bin1560.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/448079/ltcube_643680001_643939201_4FGL_J0942.3-0800_daily_bin1560.fits
.....................!
real 193.07
user 185.50
sys 4.00

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/448079/ft1_filtered_4FGL_J0942.3-0800_daily_bin1560.fits scfile=/scratch/kocevski/448079/ft2_4FGL_J0942.3-0800_daily_bin1560.fits outfile=/scratch/kocevski/448079/cmap_643680001_643939201_4FGL_J0942.3-0800_daily_bin1560.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.80
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448079/ft1_filtered_4FGL_J0942.3-0800_daily_bin1560.fits scfile=/scratch/kocevski/448079/ft2_4FGL_J0942.3-0800_daily_bin1560.fits outfile=/scratch/kocevski/448079/cmap_HighResolution_643680001_643939201_4FGL_J0942.3-0800_daily_bin1560.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.71
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/448079/ft1_filtered_4FGL_J0942.3-0800_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/448079/ft2_4FGL_J0942.3-0800_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448079/Model_4FGL_J0942.3-0800_daily_bin1560.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/448079/ft1_filtered_4FGL_J0942.3-0800_daily_bin1560.fits.....................!
real 58.25
user 55.54
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8371       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0894       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17007E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    17.779       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.864       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4645       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0537       1.0000         .10000E-03   10000.    
    13 'norm      '    .63241       1.0000         .10000E-03   10000.    
    14 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.885       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98089       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0906       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=   5137.137     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     1943 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8374        2.9525        .10159E-06    .12910E-03
   2  Prefactor     8.0896        19.195       -.45399E-06   -.33726E-04
   3  Prefactor     .10082E-03    5.3033       -.10502E-06** at limit **
   4  norm          17.780        8.1695        .43299E-05   -.97233E-05
   5  Prefactor     9.4942        24.910        .57102E-05   -.26201E-04
   6  Prefactor     .10001E-03    160.74       -.21656E-05** at limit **
   7  Prefactor     .10000E-03    9.9621        .26314E-07** at limit **
   8  Prefactor     .10000E-03    33.575        .54050E-06** at limit **
   9  Prefactor     .10000E-03    44.616       -.12041E-05** at limit **
  10  Prefactor     28.864        19.495        .18262E-05   -.26034E-04
  11  norm          3.4662        10.127        .44820E-05   -.18604E-03
  12  norm          4.0539        3.8494        .71183E-07   -.98179E-05
  13  norm          .63247        .66831        .48626E-07   -.82988E-03
  14  norm          .10000E-03    1.5520        .14243E-06** at limit **
  15  norm          .10000E-03    5.5542       -.30823E-08** at limit **
  16  Prefactor     71.892        52.743       -.19746E-05   -.10355E-04
  17  Prefactor     .10000E-03    14.182        .64890E-07** at limit **
  18  Normalizat    .98053        .24222       -.29359E-05   -.98410E-05
  19  Prefactor     1.0909        .16376       -.14213E-06   -.11718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83736
  Prefactor  = 8.08959
  Prefactor  = 0.000100825
  norm       = 17.7803
  Prefactor  = 9.49415
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8639
  norm       = 3.46617
  norm       = 4.05385
  norm       = 0.632469
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 71.8923
  Prefactor  = 0.0001
  Normalizat = 0.980535
  Prefactor  = 1.09089
 **********
 **   18 **HESSE 
 **********

 FCN=   5137.137     FROM HESSE     STATUS=OK           280 CALLS     2223 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8374        2.9545        .12113E-03   -1.5371    
   2  Prefactor     8.0896        19.168        .14097E-03   -1.5139    
   3  Prefactor     .10082E-03    9.9370        .55901E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.780        8.1922        .94986E-04   -1.4864    
   5  Prefactor     9.4942        24.978        .12990E-03   -1.5092    
   6  Prefactor     .10001E-03    162.93        .21375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.864        19.491        .74572E-04   -1.4633    
  11  norm          3.4662        9.9772        .21727E-03   -1.5336    
  12  norm          4.0539        3.8439        .13234E-03   -1.5305    
  13  norm          .63247        .63696        .56694E-03   -1.5549    
  14  norm          .10000E-03    3.2825        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.5630        .16496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     71.892        52.893        .47350E-04   -1.4010    
  17  Prefactor     .10000E-03    14.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .98053        .28199        .30785E-03   -.93685    
  19  Prefactor     1.0909        .19220        .20717E-03   -.89758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45925e-10
Minuit parameter uncertainties:
  1  2.95466
  2  19.1828
  3  0.00572707
  4  8.19272
  5  25.0054
  6  0.00188325
  7  4.82676e-06
  8  1.75335e-05
  9  0.000283401
  10  19.4948
  11  9.98202
  12  3.84411
  13  0.636965
  14  9.85599e-06
  15  1.57799e-06
  16  52.9274
  17  2.2512e-05
  18  0.282423
  19  0.192322
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  4.054e+00  3.844e+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.091e+00  1.923e-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:  9.805e-01  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.60
Ra Dec: 145.586 -8.008
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.61e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.40e-05

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) = 5136.570881
delta logL = 0.565648836488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5136.3176278
delta logL = 0.818902029537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7187       1.0000         .10000E-03   10000.    
     2 'alpha     '    .75107       1.0000          .0000       5.0000    
     3 'Normalizat'    .99945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0865       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=   5136.318     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7124        1.7044        .80119E-02    .22091E-03
   2  alpha         .74892        .51010        .41337       -.59594E-04
   3  Normalizat    .99956        .22621        .68951E-01    .18896E-04
   4  Prefactor     1.0865        .16051        .38122E-01   -.67823E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71241
  alpha      = 0.748925
  Normalizat = 0.999561
  Prefactor  = 1.08653
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.318     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7124        2.3630        .83954E-04   -1.5446    
   2  alpha         .74892        .67901        .18691E-02   -.77600    
   3  Normalizat    .99956        .26374        .30502E-03   -.93045    
   4  Prefactor     1.0865        .18745        .20745E-03   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6481e-11
Minuit parameter uncertainties:
  1  2.36314
  2  0.69657
  3  0.264088
  4  0.187562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448079': 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) = 5136.31762269
delta logL = 0.81890714341

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.712e+00  2.363e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  7.489e-01  6.966e-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.087e+00  1.876e-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:  9.996e-01  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.23
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 0.75 +/- 0.70
Photon Flux (Free Index): 7.84e-09 +/- 7.74e-09
Energy Flux (Free Index): 6.10e-05 +/- 8.77e-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/448079/cmap_HighResolution_643680001_643939201_4FGL_J0942.3-0800_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.61e-08', energy_flux2='6.10e-05', photon_flux_error='2.47e-08', dlogl='8.19e-01', energy_flux='1.48e-05', photon_flux2='7.84e-09', job_status='DONE', time_completed='2021-08-31 23:25:29.836081', photon_index_error2='0.70', photon_index2='0.75', ts='4.60', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='8.77e-05', EG='0.98', time_epoch_completed='1630477529.84', return_code='0', job_id='448079', GAL2='1.09', EG2='1.00', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='7.74e-09', ts2='6.23', photon_index='2.01' WHERE bin_id='1560' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:25:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 448079: <4FGL_J0942.3-0800_daily_bin1560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1560 145.586 -8.0076 643680001 643939201 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 :                                   478.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             218.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            774 sec.

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

