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


Performing analysis on: 4FGL_J0942.3-0800_daily_bin1244
RA = 145.586, Dec = -8.0076
tmin = 561772801, tmax = 562032001
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='447601', job_status='RUN', time_executed='2021-08-31 23:16:34.740274', time_epoch_executed='1630476994.74' WHERE source_name='4FGL J0942.3-0800' and cadence='daily' and bin_id='1244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447601

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447601/ft1_4FGL_J0942.3-0800_daily_bin1244.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447601/ft2_4FGL_J0942.3-0800_daily_bin1244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447601/ft1_4FGL_J0942.3-0800_daily_bin1244.fits outfile=/scratch/kocevski/447601/ft1_filteredMKT_4FGL_J0942.3-0800_daily_bin1244.fits ra=145.586 dec=-8.0076 rad=12.0 tmin=561772801.0 tmax=562032001.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.73
user 3.78
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447601/ft1_filtered_4FGL_J0942.3-0800_daily_bin1244.fits" evtable="EVENTS" scfile=/scratch/kocevski/447601/ft2_4FGL_J0942.3-0800_daily_bin1244.fits sctable="SC_DATA" outfile=/scratch/kocevski/447601/ltcube_561772801_562032001_4FGL_J0942.3-0800_daily_bin1244.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/447601/ft2_4FGL_J0942.3-0800_daily_bin1244.fits
.....................!
real 13.02
user 12.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447601/ft1_filtered_4FGL_J0942.3-0800_daily_bin1244.fits evtable="EVENTS" scfile=/scratch/kocevski/447601/ft2_4FGL_J0942.3-0800_daily_bin1244.fits sctable="SC_DATA" expcube=/scratch/kocevski/447601/ltcube_561772801_562032001_4FGL_J0942.3-0800_daily_bin1244.fits outfile=/scratch/kocevski/447601/expmap_561772801_562032001_4FGL_J0942.3-0800_daily_bin1244.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/447601/ltcube_561772801_562032001_4FGL_J0942.3-0800_daily_bin1244.fits
.....................!
real 193.15
user 185.49
sys 4.01

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/447601/ft1_filtered_4FGL_J0942.3-0800_daily_bin1244.fits scfile=/scratch/kocevski/447601/ft2_4FGL_J0942.3-0800_daily_bin1244.fits outfile=/scratch/kocevski/447601/cmap_561772801_562032001_4FGL_J0942.3-0800_daily_bin1244.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.91
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447601/ft1_filtered_4FGL_J0942.3-0800_daily_bin1244.fits scfile=/scratch/kocevski/447601/ft2_4FGL_J0942.3-0800_daily_bin1244.fits outfile=/scratch/kocevski/447601/cmap_HighResolution_561772801_562032001_4FGL_J0942.3-0800_daily_bin1244.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.00
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8036       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.888       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    24.419       1.0000         .10000E-03   10000.    
    12 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2837       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9200       1.0000         .10000E-03   10000.    
    15 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11360E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .73939       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .73149       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=   1128.770     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     2109 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1224       -.17451E-06** at limit **
   2  Prefactor     6.8077        20.045        .75422E-06    .32704E-04
   3  Prefactor     .10000E-03    40.594        .12651E-05** at limit **
   4  norm          .10000E-03    21.450        .91394E-06** at limit **
   5  Prefactor     .10001E-03    76.435        .77583E-05** at limit **
   6  Prefactor     19.343        606.99       -.91770E-05   -.51869E-05
   7  Prefactor     .10000E-03    89.121        .27469E-05** at limit **
   8  Prefactor     35.954        82.790        .24321E-05    .21338E-04
   9  Prefactor     .10000E-03    51.083       -.60914E-06** at limit **
  10  Prefactor     .10001E-03    77.983       -.62690E-05** at limit **
  11  norm          24.428        20.106        .52420E-06    .67464E-04
  12  norm          .10000E-03    6.1434        .22509E-05** at limit **
  13  norm          4.2802        7.8319        .73620E-06    .10110E-03
  14  norm          4.9209        5.0259        .20747E-06    .70376E-04
  15  norm          .10000E-03    9.3727       -.50868E-06** at limit **
  16  Prefactor     .10000E-03    121.60       -.33362E-07** at limit **
  17  Prefactor     .10000E-03    68.657       -.13910E-08** at limit **
  18  Normalizat    .73816        .50256       -.18277E-04    .93420E-04
  19  Prefactor     .73213        .29035        .11473E-04    .76675E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.80772
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 19.3433
  Prefactor  = 0.000100001
  Prefactor  = 35.954
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 24.428
  norm       = 0.000100001
  norm       = 4.28025
  norm       = 4.92087
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.738159
  Prefactor  = 0.732133
 **********
 **   18 **HESSE 
 **********

 FCN=   1128.770     FROM HESSE     STATUS=OK           260 CALLS     2369 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1565        .74257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.8077        20.025        .15382E-03   -1.5186    
   3  Prefactor     .10000E-03    41.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    21.496        .15215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    78.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.343        602.90        .46079E-03   -1.4828    
   7  Prefactor     .10000E-03    89.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.954        82.722        .66841E-04   -1.4508    
   9  Prefactor     .10000E-03    51.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    80.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          24.428        20.130        .81062E-04   -1.4719    
  12  norm          .10000E-03    6.2960        .82277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2802        7.8299        .12277E-03   -1.5294    
  14  norm          4.9209        5.0224        .73819E-04   -1.5264    
  15  norm          .10000E-03    9.3861        .10050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    121.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    68.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .73816        .51662        .29064E-03   -1.0241    
  19  Prefactor     .73213        .29820        .17597E-03   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76255e-10
Minuit parameter uncertainties:
  1  1.54383e-05
  2  20.045
  3  0.000244695
  4  0.000118541
  5  0.00170637
  6  218.434
  7  0.000674295
  8  82.9876
  9  0.000178878
  10  0.0013183
  11  20.1358
  12  0.000132976
  13  7.83174
  14  5.02283
  15  3.07714e-05
  16  0.000129082
  17  6.80598e-06
  18  0.520089
  19  0.298859
Done.

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

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  1.330e-04  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:  7.321e-01  2.989e-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:  7.382e-01  5.201e-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: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447601/likelihoodResults_561772801_562032001_4FGL_J0942.3-0800_daily_bin1244.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) = 1128.77040829
delta logL = -0.000743942769532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1128.76966428
delta logL = 6.72364421916e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0277       1.0000          .0000       5.0000    
     3 'Normalizat'    .73808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73219       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=   1128.770     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.6448        .90712E-02** at limit **
   2  alpha         2.0484        3.4902        .42120       -.16119E-04
   3  Normalizat    .73815        .39798        .65700E-01    .88392E-05
   4  Prefactor     .73214        .24283        .42828E-01    .23930E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04838
  Normalizat = 0.73815
  Prefactor  = 0.732137
 **********
 **   18 **HESSE 
 **********

 FCN=   1128.770     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5170        .83621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0484        3.4317        .50000       -.18164    
   3  Normalizat    .73815        .47606        .29069E-03   -1.0241    
   4  Prefactor     .73214        .29120        .17597E-03   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91152e-10
Minuit parameter uncertainties:
  1  8.16832e-05
  2  2.46375
  3  0.478767
  4  0.291806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447601': 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) = 1128.76966409
delta logL = 2.59070930042e-07

Extracting fit parameters...

4FGL J0942.3-0800
   Spectrum: LogParabola
239         norm:  1.000e-04  8.168e-05  1.000e-04  1.000e+04 ( 1.000e-12)
240        alpha:  2.048e+00  2.464e+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:  7.321e-01  2.918e-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:  7.382e-01  4.788e-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/447601/cmap_HighResolution_561772801_562032001_4FGL_J0942.3-0800_daily_bin1244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-04', job_status='DONE', photon_flux_upper_limit='1.81e-07', time_completed='2021-08-31 23:22:45.893913', job_id='447601', GAL2='0.73', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630477365.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1244' AND source_name='4FGL J0942.3-0800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:22:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 447601: <4FGL_J0942.3-0800_daily_bin1244> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0942.3-0800_daily_bin1244 145.586 -8.0076 561772801 562032001 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 :                                   358.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            651 sec.

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

