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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1618
RA = 145.586, Dec = -8.0076
tmin = 658713601, tmax = 658972801
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='287263', job_status='RUN', time_executed='2021-12-07 20:33:31.999350', time_epoch_executed='1638938012.0' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287263/ft1_4FGL_J0942.3-0800_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287263/ft2_4FGL_J0942.3-0800_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287263/ft1_4FGL_J0942.3-0800_daily_bin1618.fits outfile=/scratch/kocevski/287263/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1618.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=658713601.0 tmax=658972801.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.11
user 2.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287263/ft1_filtered_4FGL_J0942.3-0800_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/287263/ft2_4FGL_J0942.3-0800_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/287263/ltcube_658713601_658972801_4FGL_J0942.3-0800_daily_bin1618.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/287263/ft2_4FGL_J0942.3-0800_daily_bin1618.fits
.....................!
real 18.31
user 17.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287263/ft1_filtered_4FGL_J0942.3-0800_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/287263/ft2_4FGL_J0942.3-0800_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/287263/ltcube_658713601_658972801_4FGL_J0942.3-0800_daily_bin1618.fits outfile=/scratch/kocevski/287263/expmap_658713601_658972801_4FGL_J0942.3-0800_daily_bin1618.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/287263/ltcube_658713601_658972801_4FGL_J0942.3-0800_daily_bin1618.fits
.....................!
real 193.63
user 188.08
sys 5.15

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/287263/ft1_filtered_4FGL_J0942.3-0800_daily_bin1618.fits scfile=/scratch/kocevski/287263/ft2_4FGL_J0942.3-0800_daily_bin1618.fits outfile=/scratch/kocevski/287263/cmap_658713601_658972801_4FGL_J0942.3-0800_daily_bin1618.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287263/ft1_filtered_4FGL_J0942.3-0800_daily_bin1618.fits scfile=/scratch/kocevski/287263/ft2_4FGL_J0942.3-0800_daily_bin1618.fits outfile=/scratch/kocevski/287263/cmap_HighResolution_658713601_658972801_4FGL_J0942.3-0800_daily_bin1618.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.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287263/ft1_filtered_4FGL_J0942.3-0800_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/287263/ft2_4FGL_J0942.3-0800_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287263/Model_4FGL_J0942.3-0800_daily_bin1618.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/287263/ft1_filtered_4FGL_J0942.3-0800_daily_bin1618.fits.....................!
real 78.14
user 76.59
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.567       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.485       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.567       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.595       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4721       1.0000         .10000E-03   10000.    
    11 'norm      '    10.606       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3941       1.0000         .10000E-03   10000.    
    13 'norm      '    .33206       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0172       1.0000         .10000E-03   10000.    
    15 'norm      '    16.518       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.018       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93283       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0247       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=   7625.350     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1875 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51914        1.6621        .61357E-06   -.28858E-03
   2  Prefactor     .10000E-03    4.9109        .52948E-07** at limit **
   3  Prefactor     10.568        6.7601       -.12537E-06   -.15375E-03
   4  norm          4.8833        4.9054        .32928E-05   -.83821E-03
   5  Prefactor     12.479        15.099       -.15540E-05   -.32241E-03
   6  Prefactor     18.558        28.537       -.19700E-05   -.23476E-03
   7  Prefactor     .10000E-03    3.2798        .96620E-08** at limit **
   8  Prefactor     9.4913        22.789       -.12676E-05   -.12323E-03
   9  Prefactor     34.591        35.258       -.48065E-06   -.71954E-04
  10  Prefactor     6.4699        16.022       -.11675E-06   -.64457E-04
  11  norm          10.605        7.2917        .13919E-06    .19833E-04
  12  norm          2.3939        3.2246        .20030E-06   -.78053E-04
  13  norm          .33231        .49284        .21443E-06    .12346E-03
  14  norm          4.0171        2.0979        .25424E-07    .23763E-05
  15  norm          16.517        10.022       -.22860E-07   -.41267E-04
  16  Prefactor     .10000E-03    15.560       -.15520E-06** at limit **
  17  Prefactor     11.001        21.594       -.41840E-05   -.44712E-03
  18  Normalizat    .93311        .18257        .13975E-05   -.18466E-03
  19  Prefactor     1.0245        .12619       -.12223E-05    .16561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.519141
  Prefactor  = 0.0001
  Prefactor  = 10.5679
  norm       = 4.88327
  Prefactor  = 12.4789
  Prefactor  = 18.5584
  Prefactor  = 0.0001
  Prefactor  = 9.49132
  Prefactor  = 34.5914
  Prefactor  = 6.46986
  norm       = 10.6052
  norm       = 2.39386
  norm       = 0.332306
  norm       = 4.01714
  norm       = 16.517
  Prefactor  = 0.0001
  Prefactor  = 11.0006
  Normalizat = 0.933112
  Prefactor  = 1.02454
 **********
 **   18 **HESSE 
 **********

 FCN=   7625.350     FROM HESSE     STATUS=OK           278 CALLS     2153 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51914        1.7912        .19512E-02   -1.5564    
   2  Prefactor     .10000E-03    4.9241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.568        6.7527        .12326E-03   -1.5058    
   4  norm          4.8833        5.0028        .91005E-03   -1.5266    
   5  Prefactor     12.479        15.148        .11337E-03   -1.5001    
   6  Prefactor     18.558        28.744        .92949E-04   -1.4846    
   7  Prefactor     .10000E-03    3.2849        .15443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4913        22.876        .13004E-03   -1.5092    
   9  Prefactor     34.591        35.266        .68132E-04   -1.4531    
  10  Prefactor     6.4699        16.015        .15776E-03   -1.5199    
  11  norm          10.605        7.2862        .12303E-03   -1.5057    
  12  norm          2.3939        3.2069        .17456E-03   -1.5399    
  13  norm          .33231        .46547        .68762E-03   -1.5593    
  14  norm          4.0171        2.0940        .87713E-04   -1.5307    
  15  norm          16.517        10.022        .98547E-04   -1.4895    
  16  Prefactor     .10000E-03    15.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.001        22.606        .12070E-03   -1.5045    
  18  Normalizat    .93311        .20854        .28949E-03   -.95306    
  19  Prefactor     1.0245        .14615        .20251E-03   -.91916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90176e-08
Minuit parameter uncertainties:
  1  1.79135
  2  3.74047e-06
  3  6.75322
  4  5.00326
  5  15.1523
  6  28.7657
  7  3.38432e-06
  8  22.8969
  9  35.2874
  10  16.0254
  11  7.28676
  12  3.20713
  13  0.46547
  14  2.09407
  15  10.0234
  16  2.05497e-05
  17  22.6235
  18  0.20872
  19  0.146207
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  2.394e+00  3.207e+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.025e+00  1.462e-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.331e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287263/likelihoodResults_658713601_658972801_4FGL_J0942.3-0800_daily_bin1618.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) = 7624.79418259
delta logL = 0.555564815181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7624.54056855
delta logL = 0.809178853767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24935       1.0000         .10000E-03   10000.    
     2 'alpha     '    .18933       1.0000          .0000       5.0000    
     3 'Normalizat'    .92747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0350       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=   7624.541     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      282 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24897        .94236        .53698E-03   -.33182E-03
   2  alpha         .18855        2.9291        .46768E-01    .15354E-04
   3  Normalizat    .92756        .19695        .29008E-03    .38408E-05
   4  Prefactor     1.0349        .14483        .20167E-03    .16911E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.248973
  alpha      = 0.188553
  Normalizat = 0.92756
  Prefactor  = 1.03495
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.541     FROM HESSE     STATUS=OK            27 CALLS      309 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24897        .87790        .21479E-04   -1.5608    
   2  alpha         .18855        2.8355        .18707E-02   -1.1799    
   3  Normalizat    .92756        .19710        .11603E-04   -.95498    
   4  Prefactor     1.0349        .14493        .80670E-05   -.91574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9576e-12
Minuit parameter uncertainties:
  1  0.877942
  2  1.1867
  3  0.19725
  4  0.144984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287263': 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) = 7624.540568
delta logL = 0.809179405225

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  2.490e-01  8.779e-01  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  1.886e-01  1.187e+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:  1.035e+00  1.450e-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.276e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 0.19 +/- 1.19
Photon Flux (Free Index): 2.87e-09 +/- 3.72e-09
Energy Flux (Free Index): 5.88e-05 +/- 8.82e-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/287263/cmap_HighResolution_658713601_658972801_4FGL_J0942.3-0800_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-05', comment='SUCCESS', energy_flux2='5.88e-05', dlogl='8.09e-01', photon_flux2='2.87e-09', job_status='DONE', time_completed='2021-12-07 20:44:03.890203', photon_index_error2='1.19', photon_index2='0.19', ts='0.81', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='6.77e-08', energy_flux_error2='8.82e-05', EG='0.93', time_epoch_completed='1638938643.89', return_code='0', job_id='287263', GAL2='1.03', EG2='0.93', return_code2='0', photon_flux_error2='3.72e-09', ts2='2.43', photon_index='2.01' WHERE bin_id='1618' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 20:44:03 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 287263: <4FGL_J0942.3-0800_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1618> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 20:30:18 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:30:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:30:31 2021
Terminated at Tue Dec  7 20:44:04 2021
Results reported at Tue Dec  7 20:44:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1618 145.586 -8.0076 658713601 658972801 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 :                                   631.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            826 sec.

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

