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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin811
RA = 354.904, Dec = 2.7102
tmin = 449539201, tmax = 449798401
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='73215', job_status='RUN', time_executed='2021-09-30 02:43:03.900503', time_epoch_executed='1632994983.9' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73215/ft1_4FGL_J2339.6+0242_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73215/ft1_4FGL_J2339.6+0242_daily_bin811.fits outfile=/scratch/kocevski/73215/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin811.fits ra=354.904 dec=2.7102 rad=12.0 tmin=449539201.0 tmax=449798401.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.69
user 5.42
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.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/73215/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin811.fits evtable="EVENTS" outfile="/scratch/kocevski/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.fits" evtable="EVENTS" scfile=/scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits sctable="SC_DATA" outfile=/scratch/kocevski/73215/ltcube_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.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/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits
.....................!
real 11.99
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/73215/ltcube_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.fits outfile=/scratch/kocevski/73215/expmap_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.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/73215/ltcube_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.fits
.....................!
real 190.23
user 185.52
sys 4.34

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 J2339.6+0242 @ 354.904 2.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.fits scfile=/scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits outfile=/scratch/kocevski/73215/cmap_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.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=354.904 yref=2.7102 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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.fits scfile=/scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits outfile=/scratch/kocevski/73215/cmap_HighResolution_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.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=354.904 yref=2.7102 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73215/Model_4FGL_J2339.6+0242_daily_bin811.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/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.fits.....................!
real 34.76
user 33.47
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.fits', '/scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits', expMap='/scratch/kocevski/73215/expmap_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.fits', expCube='/scratch/kocevski/73215/ltcube_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/73215/Model_4FGL_J2339.6+0242_daily_bin811.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2339.6+0242'

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.280e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/73215/ft1_filtered_4FGL_J2339.6+0242_daily_bin811.fits
Spacecraft file(s): /scratch/kocevski/73215/ft2_4FGL_J2339.6+0242_daily_bin811.fits
Exposure map: /scratch/kocevski/73215/expmap_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.fits
Exposure cube: /scratch/kocevski/73215/ltcube_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/73215/Model_4FGL_J2339.6+0242_daily_bin811.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) = 2463.63481312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22942E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37791E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39516E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4182       1.0000         .10000E-03   10000.    
     6 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56740E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    26.759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.857       1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.928       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.175       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.128       1.0000         .10000E-03   10000.    
    13 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .26215E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.982       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10585E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    38.188       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.873       1.0000         .10000E-03   10000.    
    19 'Prefactor '    318.44       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24067E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .73960E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    101.91       1.0000         .10000E-03   10000.    
    24 'Prefactor '    176.28       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .74395E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    78.886       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19939E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.917       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2463.608     FROM MIGRAD    STATUS=CONVERGED    282 CALLS     2944 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.932       -.38232E-06** at limit **
   2  Prefactor     .25945E-03    86.960       -.21703E-05** at limit **
   3  Prefactor     38.472        27.967        .88319E-07    .81555E-02
   4  Prefactor     .14752E-03    65.311        .28539E-04** at limit **
   5  norm          3.4003        5.7568        .99008E-06   -.75334E-04
   6  norm          .10000E-03    2.5431        .36707E-07** at limit **
   7  Prefactor     .10000E-03    46.831        .60837E-06** at limit **
   8  norm          26.137        27.891        .16342E-05    .82152E-02
   9  Prefactor     61.298        79.898        .32839E-05    .10687E-02
  10  Prefactor     54.889        27.303        .30198E-05   -.21402E-01
  11  Prefactor     52.181        38.762        .26487E-06    .13599E-01
  12  Prefactor     15.846        24.262        .15072E-05    .40363E-03
  13  norm          .10000E-03    .97462        .43492E-07** at limit **
  14  norm          .10000E-03    6.4592        .19825E-06** at limit **
  15  Prefactor     18.093        26.030       -.45607E-06    .43797E-02
  16  Prefactor     .10000E-03    61.592        .38561E-05** at limit **
  17  norm          38.022        25.321        .43050E-06   -.18990E-02
  18  Prefactor     14.818        19.306       -.30372E-05    .13283E-02
  19  Prefactor     309.36        455.34        .11962E-04    .84150E-03
  20  Prefactor     .10000E-03    12.438       -.13097E-06** at limit **
  21  Prefactor     .10000E-03    41.027        .71016E-06** at limit **
  22  norm          .12368E-03    445.69        .63973E-04** at limit **
  23  norm          103.37        61.383        .67475E-05   -.12823E-02
  24  Prefactor     179.28        147.50        .46863E-05    .61702E-03
  25  Prefactor     .10000E-03    86.141        .11303E-04** at limit **
  26  Prefactor     78.473        62.728       -.21033E-06   -.85370E-02
  27  Prefactor     .10000E-03    19.116        .24559E-06** at limit **
  28  Prefactor     25.661        29.408        .10810E-04    .31361E-02
  29  Normalizat    .10000E-01    1.1186        .53807E-04** at limit **
  30  Prefactor     1.4609        .17237        .15309E-06    .22709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000259454
  Prefactor  = 38.4718
  Prefactor  = 0.000147515
  norm       = 3.40028
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 26.137
  Prefactor  = 61.2983
  Prefactor  = 54.8888
  Prefactor  = 52.1811
  Prefactor  = 15.8464
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.0926
  Prefactor  = 0.0001
  norm       = 38.0216
  Prefactor  = 14.8176
  Prefactor  = 309.358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000123681
  norm       = 103.373
  Prefactor  = 179.285
  Prefactor  = 0.0001
  Prefactor  = 78.4727
  Prefactor  = 0.0001
  Prefactor  = 25.6607
  Normalizat = 0.01
  Prefactor  = 1.46091
 **********
 **   18 **HESSE 
 **********

 FCN=   2463.608     FROM HESSE     STATUS=OK           660 CALLS     3604 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.986        .10051E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .25945E-03    197.93        .92103E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.472        29.994        .16133E-02   -1.4467    
   4  Prefactor     .14752E-03    16.092        .97547E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4003        5.9151        .54700E-02   -1.5339    
   6  norm          .10000E-03    2.5389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.430        .69459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.137        30.301        .19361E-02   -1.4685    
   9  Prefactor     61.298        80.378        .12555E-02   -1.4140    
  10  Prefactor     54.889        36.672        .13531E-02   -1.4225    
  11  Prefactor     52.181        42.295        .13881E-02   -1.4262    
  12  Prefactor     15.846        24.488        .24933E-02   -1.4912    
  13  norm          .10000E-03    .96564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.4657        .10723E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.093        29.665        .23612E-02   -1.4857    
  16  Prefactor     .10000E-03    61.523        .90759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          38.022        28.767        .16215E-02   -1.4474    
  18  Prefactor     14.818        20.539        .25964E-02   -1.4938    
  19  Prefactor     309.36        465.09        .56953E-03   -1.2172    
  20  Prefactor     .10000E-03    12.457        .10028E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .12368E-03    51.009        .12495       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          103.37        68.966        .99568E-03   -1.3671    
  24  Prefactor     179.28        149.08        .75991E-03   -1.3022    
  25  Prefactor     .10000E-03    11.638        .84984E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     78.473        66.242        .11304E-02   -1.3934    
  27  Prefactor     .10000E-03    19.100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.661        35.099        .19672E-02   -1.4694    
  29  Normalizat    .10000E-01    .35003        .32250       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.4609        .21952        .30302E-01   -.78641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57786e-06
Minuit parameter uncertainties:
  1  9.35962e-05
  2  0.356486
  3  30.006
  4  0.0553174
  5  5.91615
  6  4.47046e-08
  7  3.85096e-06
  8  30.3185
  9  80.5209
  10  36.6875
  11  42.3193
  12  24.5032
  13  8.57646e-08
  14  7.8818e-07
  15  29.6895
  16  5.54938e-05
  17  28.7771
  18  20.5489
  19  470.873
  20  3.23738e-06
  21  2.91562e-05
  22  0.069571
  23  69.0194
  24  149.396
  25  5.94529e-05
  26  66.3039
  27  2.21422e-06
  28  35.1272
  29  1.36539e-06
  30  0.219665
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.847e+01  6.630e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.461e+00  2.197e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.000e-02  1.365e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.44
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 8.02e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 2.21e-05

TS (Fixed Index): 2.44
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 2.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73215/likelihoodResults_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.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) = 2463.5544491
delta logL = 0.0537811171221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2463.55309876
delta logL = 0.0551314500449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    103.09       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3023       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4601       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2463.553     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      295 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     103.14        111.34        .19801E-03   -.92440E-05
   2  Index         2.3027        .71276        .57356E-02    .88057E-05
   3  Normalizat    .10000E-01    1.3001        .11318E-01** at limit **
   4  Prefactor     1.4600        .14155        .19113E-03   -.27659E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 103.144
  Index      = 2.30274
  Normalizat = 0.01
  Prefactor  = 1.46002
 **********
 **   18 **HESSE 
 **********

 FCN=   2463.553     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     103.14        108.22        .79202E-05   -1.3673    
   2  Index         2.3027        .69294        .22942E-03   -.56979    
   3  Normalizat    .10000E-01    1.3036        .22636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4600        .14095        .76450E-05   -.78666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5032e-12
Minuit parameter uncertainties:
  1  108.424
  2  0.696103
  3  1.37332e-06
  4  0.140985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73215': 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) = 2463.55309746
delta logL = 0.0551327537355

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.031e+02  1.084e+02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.303e+00  6.961e-01  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.460e+00  1.410e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.000e-02  1.373e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.30 +/- 0.70
Photon Flux (Free Index): 8.95e-08 +/- 7.71e-08
Energy Flux (Free Index): 3.37e-05 +/- 3.98e-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/73215/cmap_HighResolution_449539201_449798401_4FGL_J2339.6+0242_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-02', comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='3.37e-05', photon_flux_error='8.02e-08', dlogl='5.51e-02', energy_flux='2.62e-05', photon_flux2='8.95e-08', job_status='DONE', time_completed='2021-09-30 02:54:38.842202', photon_index_error2='0.70', photon_index2='2.30', ts='2.44', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='2.91e-07', energy_flux_error2='3.98e-05', EG='0.01', time_epoch_completed='1632995678.84', return_code='0', job_id='73215', GAL2='1.46', EG2='0.01', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='7.71e-08', ts2='2.53', photon_index='2.55' WHERE bin_id='811' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:54:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 73215: <4FGL_J2339.6+0242_daily_bin811> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin811> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:34 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:40:37 2021
Terminated at Thu Sep 30 02:54:41 2021
Results reported at Thu Sep 30 02:54:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin811 354.904 2.7102 449539201 449798401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2339.6+0242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   494.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             235.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            847 sec.

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

