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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1258
RA = 145.586, Dec = -8.0076
tmin = 565401601, tmax = 565660801
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='447623', job_status='RUN', time_executed='2021-08-31 23:14:11.103298', time_epoch_executed='1630476851.1' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447623/ft1_4FGL_J0942.3-0800_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447623/ft2_4FGL_J0942.3-0800_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447623/ft1_4FGL_J0942.3-0800_daily_bin1258.fits outfile=/scratch/kocevski/447623/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1258.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=565401601.0 tmax=565660801.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 5.13
user 3.39
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447623/ft1_filtered_4FGL_J0942.3-0800_daily_bin1258.fits" evtable="EVENTS" scfile=/scratch/kocevski/447623/ft2_4FGL_J0942.3-0800_daily_bin1258.fits sctable="SC_DATA" outfile=/scratch/kocevski/447623/ltcube_565401601_565660801_4FGL_J0942.3-0800_daily_bin1258.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/447623/ft2_4FGL_J0942.3-0800_daily_bin1258.fits
.....................!
real 13.72
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447623/ft1_filtered_4FGL_J0942.3-0800_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/447623/ft2_4FGL_J0942.3-0800_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/447623/ltcube_565401601_565660801_4FGL_J0942.3-0800_daily_bin1258.fits outfile=/scratch/kocevski/447623/expmap_565401601_565660801_4FGL_J0942.3-0800_daily_bin1258.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/447623/ltcube_565401601_565660801_4FGL_J0942.3-0800_daily_bin1258.fits
.....................!
real 193.57
user 185.37
sys 3.65

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/447623/ft1_filtered_4FGL_J0942.3-0800_daily_bin1258.fits scfile=/scratch/kocevski/447623/ft2_4FGL_J0942.3-0800_daily_bin1258.fits outfile=/scratch/kocevski/447623/cmap_565401601_565660801_4FGL_J0942.3-0800_daily_bin1258.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447623/ft1_filtered_4FGL_J0942.3-0800_daily_bin1258.fits scfile=/scratch/kocevski/447623/ft2_4FGL_J0942.3-0800_daily_bin1258.fits outfile=/scratch/kocevski/447623/cmap_HighResolution_565401601_565660801_4FGL_J0942.3-0800_daily_bin1258.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.59
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15810E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7795       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.5878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11632E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5949       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4676       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .62454       1.0000         .10000E-03   10000.    
    14 'norm      '    .75572       1.0000         .10000E-03   10000.    
    15 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0020       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .86986       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1052       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=   6661.540     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1863 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1.9792        .79964E-06** at limit **
   2  Prefactor     8.7815        13.834        .75082E-06   -.58780E-05
   3  Prefactor     .10000E-03    1.5425        .14086E-07** at limit **
   4  norm          7.5888        6.4413        .11248E-06   -.69448E-04
   5  Prefactor     .10000E-03    13.093        .22364E-05** at limit **
   6  Prefactor     37.891        40.759       -.15668E-05   -.22787E-03
   7  Prefactor     4.2524        15.776        .18318E-05    .82439E-04
   8  Prefactor     .10000E-03    25.033       -.33809E-06** at limit **
   9  Prefactor     .10000E-03    7.4237       -.14861E-06** at limit **
  10  Prefactor     6.5948        13.276        .34817E-05   -.26855E-03
  11  norm          5.4682        5.5155        .10229E-06    .98444E-04
  12  norm          .10000E-03    1.2058        .26036E-07** at limit **
  13  norm          .62476        .63466        .83820E-07   -.22861E-03
  14  norm          .75558        1.1764        .31777E-07    .11062E-03
  15  norm          .10000E-03    11.575       -.17144E-05** at limit **
  16  Prefactor     .10000E-03    11.172       -.16572E-05** at limit **
  17  Prefactor     9.0033        26.044        .98036E-06    .42601E-04
  18  Normalizat    .86953        .19402       -.33472E-07   -.10133E-03
  19  Prefactor     1.1054        .13489       -.58521E-06   -.10093E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100035
  Prefactor  = 8.78147
  Prefactor  = 0.0001
  norm       = 7.58881
  Prefactor  = 0.000100004
  Prefactor  = 37.8913
  Prefactor  = 4.25243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.5948
  norm       = 5.46824
  norm       = 0.0001
  norm       = 0.624758
  norm       = 0.755577
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 9.00335
  Normalizat = 0.869533
  Prefactor  = 1.10543
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.540     FROM HESSE     STATUS=OK           272 CALLS     2135 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    10.260        .20685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7815        13.595        .13528E-03   -1.5115    
   3  Prefactor     .10000E-03    1.5437        .98995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.5888        6.4420        .14559E-03   -1.5157    
   5  Prefactor     .10000E-03    14.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.891        42.344        .65106E-04   -1.4476    
   7  Prefactor     4.2524        15.793        .19550E-03   -1.5296    
   8  Prefactor     .10000E-03    25.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5948        14.411        .78132E-03   -1.5194    
  11  norm          5.4682        5.5220        .17184E-03   -1.5240    
  12  norm          .10000E-03    1.2120        .87520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .62476        .61171        .61251E-03   -1.5550    
  14  norm          .75558        .95834        .10731E-02   -1.5534    
  15  norm          .10000E-03    12.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0033        26.082        .13359E-03   -1.5108    
  18  Normalizat    .86953        .22546        .29900E-03   -.97539    
  19  Prefactor     1.1054        .15672        .19404E-03   -.89293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84385e-09
Minuit parameter uncertainties:
  1  0.00120231
  2  13.5998
  3  2.3495e-07
  4  6.44255
  5  0.000463829
  6  42.3774
  7  15.8089
  8  7.61787e-05
  9  2.03585e-05
  10  14.4188
  11  5.52252
  12  2.03283e-06
  13  0.611721
  14  0.958358
  15  0.000266986
  16  0.000276141
  17  26.1148
  18  0.225708
  19  0.156788
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  2.033e-06  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.105e+00  1.568e-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:  8.695e-01  2.257e-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: 3.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447623/likelihoodResults_565401601_565660801_4FGL_J0942.3-0800_daily_bin1258.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) = 6661.54383177
delta logL = -0.00386748992696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6661.49086909
delta logL = 0.049095192293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62368E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2841       1.0000          .0000       5.0000    
     3 'Normalizat'    .84887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1134       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=   6661.491     FROM MIGRAD    STATUS=FAILED        96 CALLS      347 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61955E-01    28.298        .54017E-03    .16798E-01
   2  alpha         4.2853        2.7629        .70391E-01    .25668E-03
   3  Normalizat    .84915        .12429        .30231E-03   -.87246E-04
   4  Prefactor     1.1133        .85384E-01    .19344E-03   -.20569E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6661.491     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      438 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61955E-01    28.298        .80817E-04    .16798E-01
   2  alpha         4.2853        2.7629        .38814E-02    .25668E-03
   3  Normalizat    .84915        .12429        .14832E-03   -.87246E-04
   4  Prefactor     1.1133        .85384E-01    .41077E-04   -.20569E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6661.491     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      473 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61955E-01    .91520        .10803E-03    .63783E-03
   2  alpha         4.2853        4.5731        .14078E-01    .97648E-05
   3  Normalizat    .84915        .22276        .12092E-04   -.87246E-04
   4  Prefactor     1.1133        .15717        .38688E-04   -.20570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0619547
  alpha      = 4.28528
  Normalizat = 0.849145
  Prefactor  = 1.11335
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.491     FROM HESSE     STATUS=OK            27 CALLS      500 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61955E-01    .50888        .21607E-04   -1.5658    
   2  alpha         4.2853        4.2159        .28156E-02    .79535    
   3  Normalizat    .84915        .22276        .24185E-05   -.98271    
   4  Prefactor     1.1133        .15723        .77376E-05   -.89041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95646e-11
Minuit parameter uncertainties:
  1  0.354838
  2  2.65012
  3  0.222997
  4  0.157293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447623': 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) = 6661.49086604
delta logL = 0.0490982368547

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  6.195e-02  3.548e-01  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  4.285e+00  2.650e+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.113e+00  1.573e-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:  8.491e-01  2.230e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/447623/cmap_HighResolution_565401601_565660801_4FGL_J0942.3-0800_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='3.90e-08', time_completed='2021-08-31 23:25:30.450634', job_id='447623', GAL2='1.11', fit_tolerance='1e-08', EG2='0.85', EG='0.87', time_epoch_completed='1630477530.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.91e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1258' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:25:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 447623: <4FGL_J0942.3-0800_daily_bin1258> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1258 145.586 -8.0076 565401601 565660801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0942.3-0800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   577.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

