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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin921
RA = 354.904, Dec = 2.7102
tmin = 478051201, tmax = 478310401
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='73380', job_status='RUN', time_executed='2021-09-30 02:42:52.626279', time_epoch_executed='1632994972.63' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73380/ft1_4FGL_J2339.6+0242_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73380/ft2_4FGL_J2339.6+0242_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73380/ft1_4FGL_J2339.6+0242_daily_bin921.fits outfile=/scratch/kocevski/73380/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin921.fits ra=354.904 dec=2.7102 rad=12.0 tmin=478051201.0 tmax=478310401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.51
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73380/ft1_filtered_4FGL_J2339.6+0242_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/73380/ft2_4FGL_J2339.6+0242_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/73380/ltcube_478051201_478310401_4FGL_J2339.6+0242_daily_bin921.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/73380/ft2_4FGL_J2339.6+0242_daily_bin921.fits
.....................!
real 11.71
user 11.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73380/ft1_filtered_4FGL_J2339.6+0242_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/73380/ft2_4FGL_J2339.6+0242_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/73380/ltcube_478051201_478310401_4FGL_J2339.6+0242_daily_bin921.fits outfile=/scratch/kocevski/73380/expmap_478051201_478310401_4FGL_J2339.6+0242_daily_bin921.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/73380/ltcube_478051201_478310401_4FGL_J2339.6+0242_daily_bin921.fits
.....................!
real 190.89
user 185.83
sys 4.74

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/73380/ft1_filtered_4FGL_J2339.6+0242_daily_bin921.fits scfile=/scratch/kocevski/73380/ft2_4FGL_J2339.6+0242_daily_bin921.fits outfile=/scratch/kocevski/73380/cmap_478051201_478310401_4FGL_J2339.6+0242_daily_bin921.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73380/ft1_filtered_4FGL_J2339.6+0242_daily_bin921.fits scfile=/scratch/kocevski/73380/ft2_4FGL_J2339.6+0242_daily_bin921.fits outfile=/scratch/kocevski/73380/cmap_HighResolution_478051201_478310401_4FGL_J2339.6+0242_daily_bin921.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5497       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.855       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2703       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4932       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8379       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    70.650       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.721       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11730E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    69.623       1.0000         .10000E-03   10000.    
    27 'Prefactor '    38.755       1.0000         .10000E-03   10000.    
    28 'Prefactor '    45.036       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73567       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90685       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=   5377.324     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3862 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.873        12.659       -.64938E-07   -.20830E-04
   2  Prefactor     .10000E-03    23.935        .68328E-05** at limit **
   3  Prefactor     .10000E-03    6.6084       -.21750E-05** at limit **
   4  Prefactor     .10000E-03    2.6569       -.23205E-07** at limit **
   5  norm          5.5499        3.5860        .98115E-06   -.22095E-03
   6  norm          3.8957        4.5580        .54576E-08   -.32027E-03
   7  Prefactor     .10000E-03    4.7917        .49478E-06** at limit **
   8  norm          .10000E-03    17.156       -.36462E-05** at limit **
   9  Prefactor     36.855        40.719       -.61748E-06   -.55380E-05
  10  Prefactor     .10000E-03    3.8740        .98503E-08** at limit **
  11  Prefactor     .10000E-03    13.470       -.38757E-05** at limit **
  12  Prefactor     .10000E-03    4.7143       -.60722E-06** at limit **
  13  norm          3.2708        1.4258       -.27604E-08    .58723E-04
  14  norm          .10000E-03    3.1326        .14843E-06** at limit **
  15  Prefactor     .10000E-03    5.9866        .16714E-05** at limit **
  16  Prefactor     9.4905        43.766       -.68444E-05   -.66019E-05
  17  norm          3.8368        6.9861       -.13813E-06   -.31925E-03
  18  Prefactor     .10000E-03    2.9399       -.36857E-07** at limit **
  19  Prefactor     70.658        169.93        .93955E-05    .60191E-05
  20  Prefactor     .10000E-03    10.860        .30128E-05** at limit **
  21  Prefactor     .10000E-03    24.735        .64581E-05** at limit **
  22  norm          .10000E-03    29.959       -.89760E-05** at limit **
  23  norm          .10000E-03    8.2093       -.22577E-06** at limit **
  24  Prefactor     21.724        48.561        .42638E-05    .34736E-05
  25  Prefactor     .10001E-03    5.1225       -.56281E-06** at limit **
  26  Prefactor     69.631        49.194        .80824E-05   -.85386E-06
  27  Prefactor     38.754        25.634       -.12716E-05   -.24072E-04
  28  Prefactor     45.042        26.151        .42190E-05    .16088E-04
  29  Normalizat    .73556        .22284       -.41672E-05    .10747E-03
  30  Prefactor     .90697        .13779        .47542E-06   -.25045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.54985
  norm       = 3.89572
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.8545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27083
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.49054
  norm       = 3.83679
  Prefactor  = 0.0001
  Prefactor  = 70.6582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.7237
  Prefactor  = 0.000100007
  Prefactor  = 69.6314
  Prefactor  = 38.7537
  Prefactor  = 45.0416
  Normalizat = 0.735556
  Prefactor  = 0.906965
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.324     FROM HESSE     STATUS=OK           582 CALLS     4444 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.873        12.668        .10053E-03   -1.4911    
   2  Prefactor     .10000E-03    23.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6626        .11672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5499        3.5708        .10361E-03   -1.5237    
   6  norm          3.8957        4.5515        .16339E-03   -1.5313    
   7  Prefactor     .10000E-03    4.7957        .15675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.855        40.817        .66017E-04   -1.4493    
  10  Prefactor     .10000E-03    3.8762        .14096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7231        .15547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2708        1.4222        .52674E-04   -1.5346    
  14  norm          .10000E-03    3.1438        .12671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0280        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4905        43.817        .13007E-03   -1.5092    
  17  norm          3.8368        6.9790        .20601E-03   -1.5316    
  18  Prefactor     .10000E-03    2.9544        .12268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     70.658        169.14        .47759E-04   -1.4025    
  20  Prefactor     .10000E-03    10.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    30.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.2123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.724        48.532        .85942E-04   -1.4775    
  25  Prefactor     .10001E-03    11.641        .30562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     69.631        49.097        .48107E-04   -1.4037    
  27  Prefactor     38.754        25.668        .64384E-04   -1.4462    
  28  Prefactor     45.042        26.153        .59743E-04   -1.4365    
  29  Normalizat    .73556        .25065        .31684E-03   -1.0251    
  30  Prefactor     .90697        .15851        .19807E-03   -.95898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71591e-10
Minuit parameter uncertainties:
  1  12.6705
  2  8.26258e-06
  3  2.03438e-05
  4  4.41963e-06
  5  3.57089
  6  4.55194
  7  1.3461e-06
  8  8.05502e-05
  9  40.8482
  10  3.80455e-06
  11  4.19682e-05
  12  3.63561e-06
  13  1.42221
  14  2.62734e-06
  15  8.15206e-06
  16  40.8338
  17  6.98046
  18  9.25588e-06
  19  170.311
  20  4.73969e-05
  21  6.68023e-06
  22  0.000152815
  23  1.15843e-05
  24  48.6208
  25  0.000552083
  26  49.1255
  27  25.6752
  28  26.1595
  29  0.251043
  30  0.158589
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.963e+01  4.913e+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:  9.070e-01  1.586e-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:  7.356e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.33
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.43e-08 +/- 5.94e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.64e-05

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

Saving results to:
/scratch/kocevski/73380/likelihoodResults_478051201_478310401_4FGL_J2339.6+0242_daily_bin921.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) = 5377.04565174
delta logL = 0.277912977296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5377.04548408
delta logL = 0.278080640182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.187       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0868       1.0000          .0000       10.000    
     3 'Normalizat'    .77182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88954       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=   5377.045     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      302 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.316        61.107        .21514E-03   -.89835E-06
   2  Index         2.0882        .55980        .74710E-02   -.13397E-04
   3  Normalizat    .77169        .22917        .30989E-03   -.36686E-06
   4  Prefactor     .88952        .15670        .19970E-03   -.34157E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.3165
  Index      = 2.08825
  Normalizat = 0.771693
  Prefactor  = 0.889523
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.045     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .41E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.316        61.069        .86055E-05   -1.3836    
   2  Index         2.0882        .55914        .14942E-02   -.62162    
   3  Normalizat    .77169        .22926        .12396E-04   -1.0113    
   4  Prefactor     .88952        .15677        .79882E-05   -.96508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14714e-15
Minuit parameter uncertainties:
  1  61.1127
  2  0.560923
  3  0.229546
  4  0.156847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73380': 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) = 5377.0454785
delta logL = 0.278086216046

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.732e+01  6.111e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.088e+00  5.609e-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:  8.895e-01  1.568e-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:  7.717e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.86
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.09 +/- 0.56
Photon Flux (Free Index): 5.84e-08 +/- 5.50e-08
Energy Flux (Free Index): 3.28e-05 +/- 3.02e-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/73380/cmap_HighResolution_478051201_478310401_4FGL_J2339.6+0242_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='8.43e-08', energy_flux2='3.28e-05', photon_flux_error='5.94e-08', dlogl='2.78e-01', energy_flux='2.32e-05', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-30 02:55:03.950365', photon_index_error2='0.56', photon_index2='2.09', ts='3.33', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='3.02e-05', EG='0.74', time_epoch_completed='1632995703.95', return_code='0', job_id='73380', GAL2='0.89', EG2='0.77', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='5.50e-08', ts2='3.86', photon_index='2.55' WHERE bin_id='921' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:55:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 73380: <4FGL_J2339.6+0242_daily_bin921> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin921> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:48 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:50 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:50 2021
Terminated at Thu Sep 30 02:55:04 2021
Results reported at Thu Sep 30 02:55:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin921 354.904 2.7102 478051201 478310401 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 :                                   710.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

