/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 69 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 = 7443
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1044
RA = 145.586, Dec = -8.0076
tmin = 509932801, tmax = 510192001
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='447282', job_status='RUN', time_executed='2021-08-31 23:13:07.958977', time_epoch_executed='1630476787.96' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447282/ft1_4FGL_J0942.3-0800_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447282/ft2_4FGL_J0942.3-0800_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447282/ft1_4FGL_J0942.3-0800_daily_bin1044.fits outfile=/scratch/kocevski/447282/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1044.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=509932801.0 tmax=510192001.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.60
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447282/ft2_4FGL_J0942.3-0800_daily_bin1044.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/447282/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/447282/ft1_filtered_4FGL_J0942.3-0800_daily_bin1044.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.54
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447282/ft1_filtered_4FGL_J0942.3-0800_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/447282/ft2_4FGL_J0942.3-0800_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/447282/ltcube_509932801_510192001_4FGL_J0942.3-0800_daily_bin1044.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/447282/ft2_4FGL_J0942.3-0800_daily_bin1044.fits
.....................!
real 14.93
user 14.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447282/ft1_filtered_4FGL_J0942.3-0800_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/447282/ft2_4FGL_J0942.3-0800_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/447282/ltcube_509932801_510192001_4FGL_J0942.3-0800_daily_bin1044.fits outfile=/scratch/kocevski/447282/expmap_509932801_510192001_4FGL_J0942.3-0800_daily_bin1044.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/447282/ltcube_509932801_510192001_4FGL_J0942.3-0800_daily_bin1044.fits
.....................!
real 191.14
user 185.41
sys 4.55

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/447282/ft1_filtered_4FGL_J0942.3-0800_daily_bin1044.fits scfile=/scratch/kocevski/447282/ft2_4FGL_J0942.3-0800_daily_bin1044.fits outfile=/scratch/kocevski/447282/cmap_509932801_510192001_4FGL_J0942.3-0800_daily_bin1044.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447282/ft1_filtered_4FGL_J0942.3-0800_daily_bin1044.fits scfile=/scratch/kocevski/447282/ft2_4FGL_J0942.3-0800_daily_bin1044.fits outfile=/scratch/kocevski/447282/cmap_HighResolution_509932801_510192001_4FGL_J0942.3-0800_daily_bin1044.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.65
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447282/ft1_filtered_4FGL_J0942.3-0800_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/447282/ft2_4FGL_J0942.3-0800_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447282/Model_4FGL_J0942.3-0800_daily_bin1044.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/447282/ft1_filtered_4FGL_J0942.3-0800_daily_bin1044.fits.....................!
real 69.31
user 67.10
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.7437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.878       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4152       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .55316       1.0000         .10000E-03   10000.    
    14 'norm      '    .10918E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1428       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82140       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=   6595.123     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1895 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .85175        .54880E-07** at limit **
   2  Prefactor     .10000E-03    6.7257        .47785E-07** at limit **
   3  Prefactor     .10000E-03    26.353        .77851E-05** at limit **
   4  norm          8.7452        6.3310       -.85104E-07   -.45921E-04
   5  Prefactor     .10000E-03    8.2613       -.35751E-06** at limit **
   6  Prefactor     38.442        36.041        .14760E-06   -.46264E-04
   7  Prefactor     16.881        12.982       -.18221E-06   -.26930E-04
   8  Prefactor     .10000E-03    58.607        .57353E-06** at limit **
   9  Prefactor     .10000E-03    6.3393        .16810E-06** at limit **
  10  Prefactor     .10000E-03    2.5745        .55473E-07** at limit **
  11  norm          5.4142        5.6331       -.14700E-05    .64670E-04
  12  norm          .10000E-03    3.1968        .13791E-06** at limit **
  13  norm          .55337        .64268       -.12156E-06   -.45564E-03
  14  norm          .10000E-03    1.3135        .17032E-06** at limit **
  15  norm          .10000E-03    8.1413        .40712E-06** at limit **
  16  Prefactor     7.9703        33.741        .15347E-05   -.99433E-06
  17  Prefactor     .10000E-03    15.047       -.85058E-06** at limit **
  18  Normalizat    1.1425        .18455        .13386E-05   -.16174E-03
  19  Prefactor     .82157        .12376       -.95074E-06   -.26075E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.74516
  Prefactor  = 0.0001
  Prefactor  = 38.4423
  Prefactor  = 16.8813
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.41419
  norm       = 0.0001
  norm       = 0.553374
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.9703
  Prefactor  = 0.0001
  Normalizat = 1.1425
  Prefactor  = 0.821572
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.123     FROM HESSE     STATUS=OK           268 CALLS     2163 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .85725        .73204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.344        .29974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.7452        6.3312        .13556E-03   -1.5116    
   5  Prefactor     .10000E-03    8.3096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.442        36.139        .64649E-04   -1.4467    
   7  Prefactor     16.881        12.966        .97488E-04   -1.4886    
   8  Prefactor     .10000E-03    59.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5767        .12727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4142        5.6777        .86341E-03   -1.5243    
  12  norm          .10000E-03    3.3113        .28345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55337        .62566        .65349E-04   -1.5559    
  14  norm          .10000E-03    2.5140        .17925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.2463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9703        33.906        .14211E-03   -1.5143    
  17  Prefactor     .10000E-03    15.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1425        .21693        .24932E-03   -.88399    
  19  Prefactor     .82157        .14790        .20474E-03   -.98938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37553e-10
Minuit parameter uncertainties:
  1  2.59878e-06
  2  4.69752e-05
  3  6.2764e-05
  4  6.3317
  5  7.257e-05
  6  36.1597
  7  12.9686
  8  0.000451872
  9  2.68731e-06
  10  4.91818e-06
  11  5.67823
  12  1.29451e-05
  13  0.625669
  14  2.32182e-06
  15  4.60906e-05
  16  32.9093
  17  8.62529e-05
  18  0.217102
  19  0.147974
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  1.295e-05  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:  8.216e-01  1.480e-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.143e+00  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447282/likelihoodResults_509932801_510192001_4FGL_J0942.3-0800_daily_bin1044.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): 102
logL (Free Index) = 6595.12431033
delta logL = -0.00144129382807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6595.12286085
delta logL = 8.17884847493e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18589E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1676       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82157       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6595.123     FROM MIGRAD    STATUS=FAILED       107 CALLS      292 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10029E-03    36.442        .15546E-01** at limit **
   2  alpha         3.4926        3.1086        .50000       -.26487E-06
   3  Normalizat    1.1425        .28434E-01    .24932E-03    .51020E-03
   4  Prefactor     .82157        .19247E-01    .20474E-03    .41583E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6595.123     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      419 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10029E-03    36.442        .71986E-03** at limit **
   2  alpha         3.4926        3.1086        .49077E-03   -.26487E-06
   3  Normalizat    1.1425        .28434E-01    .66386E-05    .51020E-03
   4  Prefactor     .82157        .19247E-01    .50665E-05    .41583E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6595.123     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      462 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.818        .20122E-01** at limit **
   2  alpha         3.4914        3.1536        .50000       -.28447E-06
   3  Normalizat    1.1425        .22573E-01    .49864E-04   -.55540E-04
   4  Prefactor     .82157        .15659E-01    .40948E-04   -.25281E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.49145
  Normalizat = 1.1425
  Prefactor  = 0.821573
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.123     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      501 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.874        .17873E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4914        3.2538        .50000        .40779    
   3  Normalizat    1.1425        .24923E-01    .99727E-05   -.88399    
   4  Prefactor     .82157        .17129E-01    .81897E-05   -.98938    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49674e-12
Minuit parameter uncertainties:
  1  5.48174e-05
  2  11.6896
  3  0.0249228
  4  0.0171293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447282': 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): 102
logL (Free Index) = 6595.12285715
delta logL = 1.18843254313e-05

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  5.482e-05  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  3.491e+00  1.169e+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:  8.216e-01  1.713e-02  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.142e+00  2.492e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.586 -8.008

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/447282/cmap_HighResolution_509932801_510192001_4FGL_J0942.3-0800_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-08-31 23:23:44.588841', job_id='447282', GAL2='0.82', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630477424.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.19e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1044' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:23:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 447282: <4FGL_J0942.3-0800_daily_bin1044> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1044> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:11:27 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:11:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 23:11:29 2021
Terminated at Tue Aug 31 23:23:44 2021
Results reported at Tue Aug 31 23:23:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1044 145.586 -8.0076 509932801 510192001 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 :                                   592.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

