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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1325
RA = 145.586, Dec = -8.0076
tmin = 582768001, tmax = 583027201
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='447712', job_status='RUN', time_executed='2021-08-31 23:12:57.637680', time_epoch_executed='1630476777.64' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447712/ft1_4FGL_J0942.3-0800_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447712/ft2_4FGL_J0942.3-0800_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447712/ft1_4FGL_J0942.3-0800_daily_bin1325.fits outfile=/scratch/kocevski/447712/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1325.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=582768001.0 tmax=583027201.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.61
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447712/ft2_4FGL_J0942.3-0800_daily_bin1325.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/447712/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1325.fits evtable="EVENTS" outfile="/scratch/kocevski/447712/ft1_filtered_4FGL_J0942.3-0800_daily_bin1325.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.69
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447712/ft1_filtered_4FGL_J0942.3-0800_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/447712/ft2_4FGL_J0942.3-0800_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/447712/ltcube_582768001_583027201_4FGL_J0942.3-0800_daily_bin1325.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/447712/ft2_4FGL_J0942.3-0800_daily_bin1325.fits
.....................!
real 12.33
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447712/ft1_filtered_4FGL_J0942.3-0800_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/447712/ft2_4FGL_J0942.3-0800_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/447712/ltcube_582768001_583027201_4FGL_J0942.3-0800_daily_bin1325.fits outfile=/scratch/kocevski/447712/expmap_582768001_583027201_4FGL_J0942.3-0800_daily_bin1325.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/447712/ltcube_582768001_583027201_4FGL_J0942.3-0800_daily_bin1325.fits
.....................!
real 191.25
user 186.25
sys 4.22

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/447712/ft1_filtered_4FGL_J0942.3-0800_daily_bin1325.fits scfile=/scratch/kocevski/447712/ft2_4FGL_J0942.3-0800_daily_bin1325.fits outfile=/scratch/kocevski/447712/cmap_582768001_583027201_4FGL_J0942.3-0800_daily_bin1325.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.88
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447712/ft1_filtered_4FGL_J0942.3-0800_daily_bin1325.fits scfile=/scratch/kocevski/447712/ft2_4FGL_J0942.3-0800_daily_bin1325.fits outfile=/scratch/kocevski/447712/cmap_HighResolution_582768001_583027201_4FGL_J0942.3-0800_daily_bin1325.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.76
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447712/ft1_filtered_4FGL_J0942.3-0800_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/447712/ft2_4FGL_J0942.3-0800_daily_bin1325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447712/Model_4FGL_J0942.3-0800_daily_bin1325.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/447712/ft1_filtered_4FGL_J0942.3-0800_daily_bin1325.fits....................!
real 77.22
user 71.39
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2586       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4972       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12821E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1816       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1477       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5513       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .45603       1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.042       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.842       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90117       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95613       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=   7396.735     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1916 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2588        1.8332       -.15146E-07   -.10864E-03
   2  Prefactor     1.4925        21.748        .31191E-05    .32347E-05
   3  Prefactor     .10000E-03    3.6383       -.60138E-08** at limit **
   4  norm          3.1822        3.9538        .19397E-06   -.13200E-04
   5  Prefactor     .10000E-03    4.8450        .16323E-07** at limit **
   6  Prefactor     .10000E-03    18.616        .18182E-06** at limit **
   7  Prefactor     2.1458        13.018        .14198E-05   -.71660E-05
   8  Prefactor     25.086        31.339       -.27018E-06   -.97898E-04
   9  Prefactor     8.8323        17.986        .27077E-06   -.82083E-05
  10  Prefactor     6.5502        7.9095        .30540E-05    .89058E-04
  11  norm          .10000E-03    4.7753        .17403E-06** at limit **
  12  norm          .10000E-03    1.4766        .31239E-07** at limit **
  13  norm          .45590        .46381        .14770E-06    .32886E-03
  14  norm          .10000E-03    .93877        .10534E-06** at limit **
  15  norm          10.042        7.7121        .14287E-06   -.21718E-04
  16  Prefactor     36.583        34.407        .16871E-06    .66757E-04
  17  Prefactor     16.811        30.402       -.61990E-06   -.12981E-03
  18  Normalizat    .90057        .17638        .16990E-05   -.22727E-03
  19  Prefactor     .95661        .12297       -.21007E-05    .28970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25879
  Prefactor  = 1.49254
  Prefactor  = 0.0001
  norm       = 3.18222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14581
  Prefactor  = 25.0861
  Prefactor  = 8.83228
  Prefactor  = 6.55019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.455895
  norm       = 0.0001
  norm       = 10.0417
  Prefactor  = 36.5831
  Prefactor  = 16.8109
  Normalizat = 0.900575
  Prefactor  = 0.956608
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.735     FROM HESSE     STATUS=OK           278 CALLS     2194 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2588        1.7879        .13514E-03   -1.5484    
   2  Prefactor     1.4925        21.781        .35009E-03   -1.5464    
   3  Prefactor     .10000E-03    9.8277        .31601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1822        3.9477        .18473E-03   -1.5351    
   5  Prefactor     .10000E-03    4.8569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1458        12.980        .28118E-03   -1.5415    
   8  Prefactor     25.086        31.395        .79951E-04   -1.4706    
   9  Prefactor     8.8323        17.926        .13487E-03   -1.5113    
  10  Prefactor     6.5502        7.9774        .78395E-03   -1.5196    
  11  norm          .10000E-03    4.9103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.2678        .20153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .45590        .43565        .56287E-03   -1.5573    
  14  norm          .10000E-03    .97447        .16265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.042        7.7074        .12645E-03   -1.5074    
  16  Prefactor     36.583        34.378        .66279E-04   -1.4498    
  17  Prefactor     16.811        30.439        .97593E-04   -1.4888    
  18  Normalizat    .90057        .20016        .26649E-03   -.96440    
  19  Prefactor     .95661        .13860        .18888E-03   -.94190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30932e-10
Minuit parameter uncertainties:
  1  1.78798
  2  11.4081
  3  4.46029e-05
  4  3.94802
  5  6.80259e-06
  6  1.48403e-05
  7  10.5581
  8  31.4155
  9  17.9367
  10  7.9787
  11  5.17057e-06
  12  8.74264e-05
  13  0.43565
  14  3.09865e-06
  15  7.70812
  16  34.3968
  17  30.4672
  18  0.200327
  19  0.138648
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  8.743e-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:  9.566e-01  1.386e-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.006e-01  2.003e-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: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447712/likelihoodResults_582768001_583027201_4FGL_J0942.3-0800_daily_bin1325.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) = 7396.73575821
delta logL = -0.000655477986584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7396.73509891
delta logL = 3.82273901778e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11227E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1291       1.0000          .0000       5.0000    
     3 'Normalizat'    .90056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95662       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=   7395.931     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      274 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52042E-01    1.6696        .36140E-02    .58321E-02
   2  alpha         5.0000        4.9701        .41739    ** at limit **
   3  Normalizat    .81565        .10084        .44909E-01    .90766E-04
   4  Prefactor     .99545        .58164E-01    .45723E-01    .18868E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.052042
  alpha      = 5
  Normalizat = 0.815652
  Prefactor  = 0.995451
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.931     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52042E-01    .46866E-01    .16514E-03   -1.5662    
   2  alpha         5.0000        1.1083        .62240E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81565        .19820        .27874E-03   -.99491    
   4  Prefactor     .99545        .14072        .18558E-03   -.92881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90447e-11
Minuit parameter uncertainties:
  1  0.0468664
  2  3.00385e-06
  3  0.198374
  4  0.140776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447712': 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) = 7395.93094762
delta logL = 0.804155116618

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  5.204e-02  4.687e-02  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  5.000e+00  3.004e-06  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:  9.955e-01  1.408e-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.157e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.50e-08 +/- 4.93e-08
Energy Flux (Free Index): 7.64e-06 +/- 6.87e-06

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/447712/cmap_HighResolution_582768001_583027201_4FGL_J0942.3-0800_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', comment='SUCCESS', energy_flux2='7.64e-06', dlogl='8.04e-01', photon_flux2='5.50e-08', job_status='DONE', time_completed='2021-08-31 23:23:36.864126', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='6.87e-06', EG='0.90', time_epoch_completed='1630477416.86', return_code='0', job_id='447712', GAL2='1.00', EG2='0.82', return_code2='0', photon_flux_error2='4.93e-08', ts2='1.78', photon_index='2.01' WHERE bin_id='1325' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:23:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 447712: <4FGL_J0942.3-0800_daily_bin1325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1325 145.586 -8.0076 582768001 583027201 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 :                                   620.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

