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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1356
RA = 145.586, Dec = -8.0076
tmin = 590803201, tmax = 591062401
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='447758', job_status='RUN', time_executed='2021-08-31 23:12:59.630896', time_epoch_executed='1630476779.63' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447758/ft1_4FGL_J0942.3-0800_daily_bin1356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447758/ft2_4FGL_J0942.3-0800_daily_bin1356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447758/ft1_4FGL_J0942.3-0800_daily_bin1356.fits outfile=/scratch/kocevski/447758/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1356.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=590803201.0 tmax=591062401.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.75
user 5.28
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447758/ft2_4FGL_J0942.3-0800_daily_bin1356.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/447758/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1356.fits evtable="EVENTS" outfile="/scratch/kocevski/447758/ft1_filtered_4FGL_J0942.3-0800_daily_bin1356.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.16
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447758/ft1_filtered_4FGL_J0942.3-0800_daily_bin1356.fits" evtable="EVENTS" scfile=/scratch/kocevski/447758/ft2_4FGL_J0942.3-0800_daily_bin1356.fits sctable="SC_DATA" outfile=/scratch/kocevski/447758/ltcube_590803201_591062401_4FGL_J0942.3-0800_daily_bin1356.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/447758/ft2_4FGL_J0942.3-0800_daily_bin1356.fits
.....................!
real 12.92
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447758/ft1_filtered_4FGL_J0942.3-0800_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/447758/ft2_4FGL_J0942.3-0800_daily_bin1356.fits sctable="SC_DATA" expcube=/scratch/kocevski/447758/ltcube_590803201_591062401_4FGL_J0942.3-0800_daily_bin1356.fits outfile=/scratch/kocevski/447758/expmap_590803201_591062401_4FGL_J0942.3-0800_daily_bin1356.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/447758/ltcube_590803201_591062401_4FGL_J0942.3-0800_daily_bin1356.fits
.....................!
real 194.10
user 186.68
sys 3.87

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/447758/ft1_filtered_4FGL_J0942.3-0800_daily_bin1356.fits scfile=/scratch/kocevski/447758/ft2_4FGL_J0942.3-0800_daily_bin1356.fits outfile=/scratch/kocevski/447758/cmap_590803201_591062401_4FGL_J0942.3-0800_daily_bin1356.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.76
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447758/ft1_filtered_4FGL_J0942.3-0800_daily_bin1356.fits scfile=/scratch/kocevski/447758/ft2_4FGL_J0942.3-0800_daily_bin1356.fits outfile=/scratch/kocevski/447758/cmap_HighResolution_590803201_591062401_4FGL_J0942.3-0800_daily_bin1356.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 1.01
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447758/ft1_filtered_4FGL_J0942.3-0800_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/447758/ft2_4FGL_J0942.3-0800_daily_bin1356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447758/Model_4FGL_J0942.3-0800_daily_bin1356.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/447758/ft1_filtered_4FGL_J0942.3-0800_daily_bin1356.fits.....................!
real 76.38
user 69.03
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4031       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0670       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2519       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.513       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0865       1.0000         .10000E-03   10000.    
    12 'norm      '    .92326       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4628       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5333       1.0000         .10000E-03   10000.    
    15 'norm      '    14.864       1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.126       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3740       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81314       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=   6454.271     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1864 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4033        2.4277       -.10859E-06    .24775E-04
   2  Prefactor     6.0662        11.200       -.90250E-07   -.29092E-04
   3  Prefactor     6.2521        7.7475        .22220E-05   -.67551E-03
   4  norm          .10000E-03    3.2564       -.42184E-08** at limit **
   5  Prefactor     36.323        23.926       -.96882E-06   -.22335E-03
   6  Prefactor     .10000E-03    18.415        .60371E-06** at limit **
   7  Prefactor     .10000E-03    17.281       -.40541E-06** at limit **
   8  Prefactor     7.7285        40.020       -.60115E-05   -.14855E-03
   9  Prefactor     53.506        33.599       -.19084E-05   -.33977E-03
  10  Prefactor     .10000E-03    9.2654        .36883E-07** at limit **
  11  norm          2.0868        6.8552        .12712E-05   -.86978E-04
  12  norm          .92311        2.9217        .42808E-06   -.90285E-04
  13  norm          1.4628        .82872        .56795E-08   -.94269E-04
  14  norm          2.5331        2.3292        .13783E-07   -.14327E-03
  15  norm          14.862        13.227       -.24126E-06   -.87210E-04
  16  Prefactor     60.122        50.142       -.76861E-06   -.60561E-04
  17  Prefactor     .10000E-03    20.661       -.12308E-06** at limit **
  18  Normalizat    1.3741        .21678        .80161E-06   -.90651E-04
  19  Prefactor     .81307        .14147       -.49346E-06    .14662E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4033
  Prefactor  = 6.06618
  Prefactor  = 6.25207
  norm       = 0.0001
  Prefactor  = 36.3225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.72847
  Prefactor  = 53.5056
  Prefactor  = 0.0001
  norm       = 2.08681
  norm       = 0.923115
  norm       = 1.46276
  norm       = 2.53313
  norm       = 14.8617
  Prefactor  = 60.1223
  Prefactor  = 0.0001
  Normalizat = 1.37406
  Prefactor  = 0.813065
 **********
 **   18 **HESSE 
 **********

 FCN=   6454.271     FROM HESSE     STATUS=OK           272 CALLS     2136 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4033        2.4350        .12181E-03   -1.5398    
   2  Prefactor     6.0662        11.187        .16300E-03   -1.5215    
   3  Prefactor     6.2521        8.3653        .80272E-03   -1.5208    
   4  norm          .10000E-03    3.2735        .14155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.323        24.240        .66494E-04   -1.4502    
   6  Prefactor     .10000E-03    18.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7285        43.484        .14416E-03   -1.5152    
   9  Prefactor     53.506        34.345        .54830E-04   -1.4244    
  10  Prefactor     .10000E-03    9.3256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0868        6.8067        .28583E-03   -1.5419    
  12  norm          .92311        3.0222        .22941E-02   -1.5516    
  13  norm          1.4628        .82132        .52044E-04   -1.5466    
  14  norm          2.5331        2.3035        .11170E-03   -1.5390    
  15  norm          14.862        13.271        .10389E-03   -1.4937    
  16  Prefactor     60.122        50.429        .51743E-04   -1.4156    
  17  Prefactor     .10000E-03    20.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3741        .25400        .27255E-03   -.81382    
  19  Prefactor     .81307        .16599        .23283E-03   -.99249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44225e-08
Minuit parameter uncertainties:
  1  2.43506
  2  11.191
  3  8.36681
  4  1.67534e-06
  5  24.2467
  6  0.000130672
  7  9.17105e-05
  8  36.7046
  9  34.358
  10  1.92695e-06
  11  6.80926
  12  3.02275
  13  0.821323
  14  2.30362
  15  13.2736
  16  50.465
  17  2.58463e-05
  18  0.254228
  19  0.166088
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  9.231e-01  3.023e+00  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.008e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
241         beta:  1.442e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
242           Eb:  9.432e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.131e-01  1.661e-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.374e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447758/likelihoodResults_590803201_591062401_4FGL_J0942.3-0800_daily_bin1356.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6452.43623859
delta logL = 1.83472342386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6452.38766695
delta logL = 1.88329506766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14176       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89325       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=   6452.388     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      326 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14176        2.1552        .37148E-02    .99685E-03
   2  alpha         5.0000        3.5008        .46387    ** at limit **
   3  Normalizat    1.1900        .13571        .65373E-01   -.10770E-04
   4  Prefactor     .89349        .87245E-01    .44919E-01   -.21177E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.141756
  alpha      = 5
  Normalizat = 1.19002
  Prefactor  = 0.893491
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.388     FROM HESSE     STATUS=OK            35 CALLS      361 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14176        .10253        .16706E-04   -1.5633    
   2  alpha         5.0000        .65599        .43847        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1900        .26154        .28920E-03   -.86912    
   4  Prefactor     .89349        .17101        .22311E-03   -.96369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20742e-12
Minuit parameter uncertainties:
  1  0.102527
  2  5.27704e-06
  3  0.261831
  4  0.171111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447758': 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) = 6452.38766558
delta logL = 1.88329644032

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.418e-01  1.025e-01  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  5.000e+00  5.277e-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:  8.935e-01  1.711e-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.190e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.30
Ra Dec: 145.586 -8.008
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.50e-07 +/- 1.08e-07
Energy Flux (Free Index): 2.08e-05 +/- 1.50e-05

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/447758/cmap_HighResolution_590803201_591062401_4FGL_J0942.3-0800_daily_bin1356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', comment='SUCCESS', energy_flux2='2.08e-05', dlogl='1.88e+00', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-08-31 23:23:15.285695', photon_index_error2='0.00', photon_index2='5.00', ts='0.12', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='6.85e-08', energy_flux_error2='1.50e-05', EG='1.37', time_epoch_completed='1630477395.29', return_code='0', job_id='447758', GAL2='0.89', EG2='1.19', return_code2='0', photon_flux_error2='1.08e-07', ts2='4.30', photon_index='2.01' WHERE bin_id='1356' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:23:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 447758: <4FGL_J0942.3-0800_daily_bin1356> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1356 145.586 -8.0076 590803201 591062401 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 :                                   580.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            667 sec.

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

