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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1150
RA = 145.586, Dec = -8.0076
tmin = 537408001, tmax = 537667201
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='447452', job_status='RUN', time_executed='2021-08-31 23:12:10.725991', time_epoch_executed='1630476730.73' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447452

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447452/ft1_4FGL_J0942.3-0800_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447452/ft2_4FGL_J0942.3-0800_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447452/ft1_4FGL_J0942.3-0800_daily_bin1150.fits outfile=/scratch/kocevski/447452/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1150.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=537408001.0 tmax=537667201.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.60
user 4.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447452/ft1_filtered_4FGL_J0942.3-0800_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/447452/ft2_4FGL_J0942.3-0800_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/447452/ltcube_537408001_537667201_4FGL_J0942.3-0800_daily_bin1150.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/447452/ft2_4FGL_J0942.3-0800_daily_bin1150.fits
.....................!
real 12.11
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447452/ft1_filtered_4FGL_J0942.3-0800_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/447452/ft2_4FGL_J0942.3-0800_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/447452/ltcube_537408001_537667201_4FGL_J0942.3-0800_daily_bin1150.fits outfile=/scratch/kocevski/447452/expmap_537408001_537667201_4FGL_J0942.3-0800_daily_bin1150.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/447452/ltcube_537408001_537667201_4FGL_J0942.3-0800_daily_bin1150.fits
.....................!
real 192.13
user 185.80
sys 4.66

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/447452/ft1_filtered_4FGL_J0942.3-0800_daily_bin1150.fits scfile=/scratch/kocevski/447452/ft2_4FGL_J0942.3-0800_daily_bin1150.fits outfile=/scratch/kocevski/447452/cmap_537408001_537667201_4FGL_J0942.3-0800_daily_bin1150.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.65
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447452/ft1_filtered_4FGL_J0942.3-0800_daily_bin1150.fits scfile=/scratch/kocevski/447452/ft2_4FGL_J0942.3-0800_daily_bin1150.fits outfile=/scratch/kocevski/447452/cmap_HighResolution_537408001_537667201_4FGL_J0942.3-0800_daily_bin1150.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447452/ft1_filtered_4FGL_J0942.3-0800_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/447452/ft2_4FGL_J0942.3-0800_daily_bin1150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447452/Model_4FGL_J0942.3-0800_daily_bin1150.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/447452/ft1_filtered_4FGL_J0942.3-0800_daily_bin1150.fits....................!
real 72.26
user 70.31
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .79316E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.885       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7367       1.0000         .10000E-03   10000.    
    11 'norm      '    .10527E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12040E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .25686       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.518       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1759       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91697       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1646       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=   7053.247     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     2265 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6277        3.5475        .11255E-03   -.71112E-04
   2  Prefactor     .10000E-03    8.5370        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.3349        .36285E-03** at limit **
   4  norm          .10037E-03    4.8211        .54795E-01** at limit **
   5  Prefactor     18.880        19.786        .92166E-04   -.16862E-03
   6  Prefactor     .10000E-03    27.406        .18142E-02** at limit **
   7  Prefactor     .10000E-03    8.2092        .18142E-02** at limit **
   8  Prefactor     .10000E-03    11.164        .18142E-02** at limit **
   9  Prefactor     .10000E-03    16.333        .18142E-02** at limit **
  10  Prefactor     6.7365        9.0473        .15459E-03   -.95674E-04
  11  norm          .10000E-03    4.7274        .24960E-02** at limit **
  12  norm          .10003E-03    27.739        .21372E-02** at limit **
  13  norm          .25690        .50871        .81207E-04   -.18176E-02
  14  norm          .10000E-03    1.1734        .13307E-02** at limit **
  15  norm          15.517        11.506        .10167E-03   -.16784E-03
  16  Prefactor     24.434        24.987        .81033E-04    .19931E-03
  17  Prefactor     1.0578        279.38        .86936E-02   -.21887E-03
  18  Normalizat    .91718        .22896        .29862E-03   -.60158E-03
  19  Prefactor     1.1644        .15856        .19553E-03   -.86279E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.62768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100366
  Prefactor  = 18.8803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.7365
  norm       = 0.0001
  norm       = 0.000100031
  norm       = 0.256898
  norm       = 0.0001
  norm       = 15.5168
  Prefactor  = 24.4338
  Prefactor  = 1.05784
  Normalizat = 0.917178
  Prefactor  = 1.16441
 **********
 **   18 **HESSE 
 **********

 FCN=   7053.247     FROM HESSE     STATUS=OK           260 CALLS     2525 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6277        3.5471        .45019E-05   -1.5193    
   2  Prefactor     .10000E-03    8.5394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3352        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10037E-03    4.7883        .55067E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.880        19.763        .36866E-05   -1.4839    
   6  Prefactor     .10000E-03    27.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.335        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7365        9.0455        .61838E-05   -1.5189    
  11  norm          .10000E-03    4.7493        .49920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10003E-03    28.641        .85490E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .25690        .50850        .32483E-05   -1.5607    
  14  norm          .10000E-03    1.1754        .26615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.517        11.500        .40669E-05   -1.4920    
  16  Prefactor     24.434        24.891        .16207E-04   -1.4719    
  17  Prefactor     1.0578        279.35        .34775E-03   -1.5502    
  18  Normalizat    .91718        .22731        .59724E-04   -.95859    
  19  Prefactor     1.1644        .15853        .39106E-04   -.87434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46458e-09
Minuit parameter uncertainties:
  1  3.54717
  2  2.81909e-05
  3  3.62701e-05
  4  0.00264866
  5  19.7696
  6  0.000121936
  7  3.62369e-05
  8  5.34575e-05
  9  2.95148e-05
  10  9.04736
  11  4.19297e-06
  12  0.00189482
  13  0.508512
  14  4.22252e-06
  15  11.5015
  16  24.9012
  17  34.543
  18  0.227547
  19  0.158598
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  1.895e-03  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.164e+00  1.586e-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.172e-01  2.275e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447452/likelihoodResults_537408001_537667201_4FGL_J0942.3-0800_daily_bin1150.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) = 7053.24754233
delta logL = -0.000170847472873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7053.19118388
delta logL = 0.0561875998665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36274       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2613       1.0000          .0000       5.0000    
     3 'Normalizat'    .90123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1687       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=   7053.191     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      382 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36101        8.3399        .31613E-01    .14816E-02
   2  alpha         3.2664        4.0907        .43868        .46512E-04
   3  Normalizat    .90122        .20156E-01    .68052E-01    .21231E-04
   4  Prefactor     1.1687        .14734E-01    .35417E-01   -.18774E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.361012
  alpha      = 3.26636
  Normalizat = 0.901225
  Prefactor  = 1.16866
 **********
 **   18 **HESSE 
 **********

 FCN=   7053.191     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      415 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36101        143.00        .11200E-02   -1.5588    
   2  alpha         3.2664        2.9105        .41565E-01    .31156    
   3  Normalizat    .90122        .13821        .30106E-03   -.96417    
   4  Prefactor     1.1687        .97559E-01    .19523E-03   -.87301    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.04505e-10
Minuit parameter uncertainties:
  1  14.403
  2  24.806
  3  0.138266
  4  0.097574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447452': 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) = 7053.19118268
delta logL = 0.0561888033526

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  3.610e-01  1.440e+01  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  3.266e+00  2.481e+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.169e+00  9.757e-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:  9.012e-01  1.383e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/447452/cmap_HighResolution_537408001_537667201_4FGL_J0942.3-0800_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-08-31 23:22:55.214701', job_id='447452', GAL2='1.17', fit_tolerance='1e-08', EG2='0.90', EG='0.92', time_epoch_completed='1630477375.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.62e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1150' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:22:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 447452: <4FGL_J0942.3-0800_daily_bin1150> in cluster <slac> Done

Job <4FGL_J0942.3-0800_daily_bin1150> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 23:11:42 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:11:45 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:45 2021
Terminated at Tue Aug 31 23:22:56 2021
Results reported at Tue Aug 31 23:22:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1150 145.586 -8.0076 537408001 537667201 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 :                                   633.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            674 sec.

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

