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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin561
RA = 354.904, Dec = 2.7102
tmin = 384739201, tmax = 384998401
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='71824', job_status='RUN', time_executed='2021-09-30 02:39:36.651814', time_epoch_executed='1632994776.65' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71824/ft1_4FGL_J2339.6+0242_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71824/ft2_4FGL_J2339.6+0242_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71824/ft1_4FGL_J2339.6+0242_daily_bin561.fits outfile=/scratch/kocevski/71824/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin561.fits ra=354.904 dec=2.7102 rad=12.0 tmin=384739201.0 tmax=384998401.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.59
user 4.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71824/ft1_filtered_4FGL_J2339.6+0242_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/71824/ft2_4FGL_J2339.6+0242_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/71824/ltcube_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.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/71824/ft2_4FGL_J2339.6+0242_daily_bin561.fits
.....................!
real 11.98
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71824/ft1_filtered_4FGL_J2339.6+0242_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/71824/ft2_4FGL_J2339.6+0242_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/71824/ltcube_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.fits outfile=/scratch/kocevski/71824/expmap_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.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/71824/ltcube_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.fits
.....................!
real 194.50
user 188.73
sys 5.40

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/71824/ft1_filtered_4FGL_J2339.6+0242_daily_bin561.fits scfile=/scratch/kocevski/71824/ft2_4FGL_J2339.6+0242_daily_bin561.fits outfile=/scratch/kocevski/71824/cmap_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71824/ft1_filtered_4FGL_J2339.6+0242_daily_bin561.fits scfile=/scratch/kocevski/71824/ft2_4FGL_J2339.6+0242_daily_bin561.fits outfile=/scratch/kocevski/71824/cmap_HighResolution_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/71824/ft1_filtered_4FGL_J2339.6+0242_daily_bin561.fits', '/scratch/kocevski/71824/ft2_4FGL_J2339.6+0242_daily_bin561.fits', expMap='/scratch/kocevski/71824/expmap_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.fits', expCube='/scratch/kocevski/71824/ltcube_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/71824/Model_4FGL_J2339.6+0242_daily_bin561.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/71824/ft1_filtered_4FGL_J2339.6+0242_daily_bin561.fits
Spacecraft file(s): /scratch/kocevski/71824/ft2_4FGL_J2339.6+0242_daily_bin561.fits
Exposure map: /scratch/kocevski/71824/expmap_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.fits
Exposure cube: /scratch/kocevski/71824/ltcube_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/71824/Model_4FGL_J2339.6+0242_daily_bin561.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) = 6913.44773725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8426       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4763       1.0000         .10000E-03   10000.    
     6 'norm      '    12.736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4442       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.016       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2691       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.3500       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42920E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7949       1.0000         .10000E-03   10000.    
    22 'norm      '    4.9465       1.0000         .10000E-03   10000.    
    23 'norm      '    38.694       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.692       1.0000         .10000E-03   10000.    
    26 'Prefactor '    223.03       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.336       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2341       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.

 FCN=   6913.421     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3868 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9780       -.12361E-07** at limit **
   2  Prefactor     .10000E-03    62.565       -.28987E-06** at limit **
   3  Prefactor     .10000E-03    15.262        .48781E-07** at limit **
   4  Prefactor     4.8423        5.4965       -.85884E-08   -.38377E-06
   5  norm          7.4756        4.2078        .16373E-06   -.99149E-05
   6  norm          12.735        7.0101       -.44427E-08   -.29719E-05
   7  Prefactor     .10000E-03    23.647       -.36079E-06** at limit **
   8  norm          7.4432        16.307        .41146E-05   -.45883E-05
   9  Prefactor     .10000E-03    47.372        .25265E-06** at limit **
  10  Prefactor     14.016        12.237        .10525E-06   -.26460E-05
  11  Prefactor     .10000E-03    17.133       -.11606E-07** at limit **
  12  Prefactor     .10000E-03    5.3219       -.23063E-07** at limit **
  13  norm          4.2692        1.7645       -.21998E-06   -.76968E-05
  14  norm          .10000E-03    2.4568       -.50871E-08** at limit **
  15  Prefactor     .10000E-03    4.7258        .26268E-07** at limit **
  16  Prefactor     .10000E-03    27.590        .71755E-07** at limit **
  17  norm          5.3493        8.1706        .40788E-06   -.81513E-05
  18  Prefactor     .10000E-03    7.3560       -.42922E-07** at limit **
  19  Prefactor     .10002E-03    2009.8       -.62782E-05** at limit **
  20  Prefactor     .10000E-03    12.724        .56753E-09** at limit **
  21  Prefactor     2.8025        57.939        .15348E-05    .12727E-05
  22  norm          4.9505        30.336        .72094E-06    .89109E-06
  23  norm          38.692        30.717       -.11073E-05    .21541E-05
  24  Prefactor     .10000E-03    33.768        .34463E-07** at limit **
  25  Prefactor     18.695        9.0870       -.41649E-07    .31137E-05
  26  Prefactor     223.06        72.433        .31362E-06    .18095E-04
  27  Prefactor     .10000E-03    14.076        .30408E-06** at limit **
  28  Prefactor     16.335        20.837        .21037E-06   -.23845E-05
  29  Normalizat    1.1472        .26372       -.14105E-05    .31358E-05
  30  Prefactor     1.2339        .17162        .58117E-07   -.49606E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.84232
  norm       = 7.47555
  norm       = 12.7347
  Prefactor  = 0.0001
  norm       = 7.44322
  Prefactor  = 0.0001
  Prefactor  = 14.0156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.26922
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.34928
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 2.80251
  norm       = 4.95047
  norm       = 38.6919
  Prefactor  = 0.0001
  Prefactor  = 18.6948
  Prefactor  = 223.057
  Prefactor  = 0.0001
  Prefactor  = 16.3349
  Normalizat = 1.14723
  Prefactor  = 1.23394
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.421     FROM HESSE     STATUS=OK           584 CALLS     4452 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9805        .18118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    62.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8423        5.4957        .18280E-03   -1.5268    
   5  norm          7.4756        4.2257        .12052E-03   -1.5161    
   6  norm          12.735        7.0234        .11224E-03   -1.4994    
   7  Prefactor     .10000E-03    23.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4432        16.352        .73497E-03   -1.5162    
   9  Prefactor     .10000E-03    47.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.016        12.237        .10699E-03   -1.4959    
  11  Prefactor     .10000E-03    17.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2692        1.7628        .66355E-04   -1.5295    
  14  norm          .10000E-03    2.4619        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7384        .17647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.3493        8.1283        .17375E-03   -1.5245    
  18  Prefactor     .10000E-03    7.4619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    2017.6        .19406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8025        57.641        .24336E-03   -1.5373    
  22  norm          4.9505        30.364        .18083E-03   -1.5263    
  23  norm          38.692        30.709        .64434E-04   -1.4463    
  24  Prefactor     .10000E-03    33.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.695        9.1154        .46319E-03   -1.4843    
  26  Prefactor     223.06        72.641        .13544E-03   -1.2710    
  27  Prefactor     .10000E-03    14.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.335        20.838        .99094E-04   -1.4899    
  29  Normalizat    1.1472        .31134        .36038E-03   -.88250    
  30  Prefactor     1.2339        .20428        .24061E-03   -.85293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56861e-11
Minuit parameter uncertainties:
  1  2.49247e-06
  2  7.12247e-05
  3  1.26188e-05
  4  5.49628
  5  4.22584
  6  7.02382
  7  1.88801e-06
  8  16.3623
  9  0.000107846
  10  12.2396
  11  9.31193e-06
  12  3.83547e-06
  13  1.76278
  14  3.31452e-06
  15  1.25557e-06
  16  5.09849e-06
  17  8.12994
  18  2.53785e-07
  19  0.012485
  20  3.85105e-05
  21  25.4473
  22  24.5391
  23  30.7215
  24  4.7539e-05
  25  9.11611
  26  72.6704
  27  1.34334e-05
  28  20.8474
  29  0.311842
  30  0.204408
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.231e+02  7.267e+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.234e+00  2.044e-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.147e+00  3.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.71
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.70e-07 +/- 8.79e-08
Energy Flux (Fixed Index): 7.44e-05 +/- 2.42e-05

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) = 6912.41723689
delta logL = 1.00406372129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6912.41252512
delta logL = 1.00877549782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    123.03       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0906       1.0000          .0000       10.000    
     3 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2827       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.

 FCN=   6912.413     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      255 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     123.13        461.73        .90715E-03    .14537E-05
   2  Index         3.0901        2.3092        .74567E-01    .15650E-03
   3  Normalizat    1.0587        .15094        .84200E-01    .20824E-04
   4  Prefactor     1.2827        .10158        .53542E-01    .18500E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 123.126
  Index      = 3.09011
  Normalizat = 1.05871
  Prefactor  = 1.28267
 **********
 **   18 **HESSE 
 **********

 FCN=   6912.413     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     123.13        90.170        .36286E-04   -1.3484    
   2  Index         3.0901        .47852        .31723E-02   -.39194    
   3  Normalizat    1.0587        .29922        .37281E-03   -.91089    
   4  Prefactor     1.2827        .20320        .23672E-03   -.83824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70687e-12
Minuit parameter uncertainties:
  1  90.2709
  2  0.479381
  3  0.299697
  4  0.203328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71824': 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) = 6912.41252442
delta logL = 1.0087761975

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.231e+02  9.027e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.090e+00  4.794e-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.283e+00  2.033e-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.059e+00  2.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.07
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.09 +/- 0.48
Photon Flux (Free Index): 3.36e-07 +/- 1.07e-07
Energy Flux (Free Index): 6.42e-05 +/- 2.11e-05

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/71824/cmap_HighResolution_384739201_384998401_4FGL_J2339.6+0242_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-07', energy_flux2='6.42e-05', photon_flux_error='8.79e-08', dlogl='1.01e+00', energy_flux='7.44e-05', photon_flux2='3.36e-07', job_status='DONE', time_completed='2021-09-30 02:52:10.956166', photon_index_error2='0.48', photon_index2='3.09', ts='16.71', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.15', time_epoch_completed='1632995530.96', return_code='0', job_id='71824', GAL2='1.28', EG2='1.06', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='1.07e-07', ts2='19.07', photon_index='2.55' WHERE bin_id='561' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 71824: <4FGL_J2339.6+0242_daily_bin561> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin561> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:46 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:48 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:35:48 2021
Terminated at Thu Sep 30 02:52:11 2021
Results reported at Thu Sep 30 02:52:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin561 354.904 2.7102 384739201 384998401 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

