/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 19 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 = 7397
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin28
RA = 354.904, Dec = 2.7102
tmin = 246585601, tmax = 246844801
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='69613', job_status='RUN', time_executed='2021-09-30 02:30:40.843287', time_epoch_executed='1632994240.84' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='28'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69613/ft1_4FGL_J2339.6+0242_daily_bin28.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69613/ft2_4FGL_J2339.6+0242_daily_bin28.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69613/ft1_4FGL_J2339.6+0242_daily_bin28.fits outfile=/scratch/kocevski/69613/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin28.fits ra=354.904 dec=2.7102 rad=12.0 tmin=246585601.0 tmax=246844801.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 1.42
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69613/ft1_filtered_4FGL_J2339.6+0242_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/69613/ft2_4FGL_J2339.6+0242_daily_bin28.fits sctable="SC_DATA" expcube=/scratch/kocevski/69613/ltcube_246585601_246844801_4FGL_J2339.6+0242_daily_bin28.fits outfile=/scratch/kocevski/69613/expmap_246585601_246844801_4FGL_J2339.6+0242_daily_bin28.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/69613/ltcube_246585601_246844801_4FGL_J2339.6+0242_daily_bin28.fits
.....................!
real 190.69
user 185.46
sys 4.91

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/69613/ft1_filtered_4FGL_J2339.6+0242_daily_bin28.fits scfile=/scratch/kocevski/69613/ft2_4FGL_J2339.6+0242_daily_bin28.fits outfile=/scratch/kocevski/69613/cmap_246585601_246844801_4FGL_J2339.6+0242_daily_bin28.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69613/ft1_filtered_4FGL_J2339.6+0242_daily_bin28.fits scfile=/scratch/kocevski/69613/ft2_4FGL_J2339.6+0242_daily_bin28.fits outfile=/scratch/kocevski/69613/cmap_HighResolution_246585601_246844801_4FGL_J2339.6+0242_daily_bin28.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/69613/ft1_filtered_4FGL_J2339.6+0242_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/69613/ft2_4FGL_J2339.6+0242_daily_bin28.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69613/Model_4FGL_J2339.6+0242_daily_bin28.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/69613/ft1_filtered_4FGL_J2339.6+0242_daily_bin28.fits.....................!
real 67.71
user 66.39
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6231       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.763       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2282       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5953       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.896       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4961       1.0000         .10000E-03   10000.    
    13 'norm      '    .31636E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3465       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20957E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    88.774       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.439       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.408       1.0000         .10000E-03   10000.    
    22 'norm      '    .11025E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .69725E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.5880       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2335       1.0000         .10000E-03   10000.    
    26 'Prefactor '    36.038       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .72041E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .37379       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1643       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=   6767.770     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3994 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6266        11.719        .22889E-06   -.78709E-05
   2  Prefactor     .10000E-03    33.353        .15516E-05** at limit **
   3  Prefactor     15.737        20.907        .54726E-06    .36418E-04
   4  Prefactor     .10000E-03    2.7162        .10864E-06** at limit **
   5  norm          1.2338        3.6131        .35492E-06    .59203E-05
   6  norm          .10000E-03    1.5208        .33693E-07** at limit **
   7  Prefactor     5.5953        6.3253        .73304E-06   -.48631E-05
   8  norm          .10000E-03    3.3468        .88331E-07** at limit **
   9  Prefactor     11.903        27.391        .10745E-05    .15713E-04
  10  Prefactor     .10000E-03    3.4556        .69059E-08** at limit **
  11  Prefactor     .10000E-03    8.9089        .60718E-07** at limit **
  12  Prefactor     2.4963        6.4157       -.86681E-06   -.14228E-04
  13  norm          .31760E-01    .23597        .75345E-07   -.52888E-03
  14  norm          2.5141        4.1522        .27692E-05   -.18776E-03
  15  Prefactor     5.3482        9.2832        .10703E-05    .14449E-04
  16  Prefactor     .10000E-03    208.77       -.31832E-05** at limit **
  17  norm          88.776        20.752        .10483E-06    .99096E-04
  18  Prefactor     14.441        13.307        .52783E-06    .48934E-04
  19  Prefactor     .10000E-03    36.302       -.22910E-05** at limit **
  20  Prefactor     .10000E-03    3.5418       -.61993E-07** at limit **
  21  Prefactor     35.378        35.838        .64024E-06    .57616E-04
  22  norm          .10000E-03    51.487        .11504E-05** at limit **
  23  norm          .10001E-03    13.027        .17732E-06** at limit **
  24  Prefactor     5.5422        104.76        .76182E-05   -.23160E-05
  25  Prefactor     6.2320        3.6218        .48457E-07    .47086E-04
  26  Prefactor     35.956        44.669        .54593E-05    .55195E-04
  27  Prefactor     .10011E-03    18.873        .11328E-05** at limit **
  28  Prefactor     .10000E-03    5.7433        .94954E-07** at limit **
  29  Normalizat    .37348        .21588       -.51625E-05   -.36432E-04
  30  Prefactor     1.1644        .14136        .87024E-06    .11213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.62655
  Prefactor  = 0.0001
  Prefactor  = 15.7365
  Prefactor  = 0.0001
  norm       = 1.2338
  norm       = 0.0001
  Prefactor  = 5.5953
  norm       = 0.0001
  Prefactor  = 11.9032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49631
  norm       = 0.0317603
  norm       = 2.5141
  Prefactor  = 5.34815
  Prefactor  = 0.0001
  norm       = 88.7755
  Prefactor  = 14.441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.3782
  norm       = 0.0001
  norm       = 0.00010001
  Prefactor  = 5.54217
  Prefactor  = 6.232
  Prefactor  = 35.9558
  Prefactor  = 0.000100105
  Prefactor  = 0.0001
  Normalizat = 0.373475
  Prefactor  = 1.16439
 **********
 **   18 **HESSE 
 **********

 FCN=   6767.770     FROM HESSE     STATUS=OK           594 CALLS     4588 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6266        11.683        .12918E-03   -1.5087    
   2  Prefactor     .10000E-03    33.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.737        19.568        .10088E-03   -1.4914    
   4  Prefactor     .10000E-03    2.7350        .13240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2338        3.3404        .18652E-03   -1.5486    
   6  norm          .10000E-03    1.5357        .99063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5953        6.3171        .16984E-03   -1.5235    
   8  norm          .10000E-03    3.3540        .14698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.903        27.325        .11615E-03   -1.5018    
  10  Prefactor     .10000E-03    3.4583        .14935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4963        6.3722        .25869E-03   -1.5392    
  13  norm          .31760E-01    .49348        .77425E-03   -1.5672    
  14  norm          2.5141        4.1666        .98643E-03   -1.5391    
  15  Prefactor     5.3482        9.2360        .17381E-03   -1.5245    
  16  Prefactor     .10000E-03    211.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          88.776        20.681        .42644E-04   -1.3821    
  18  Prefactor     14.441        13.257        .10541E-03   -1.4948    
  19  Prefactor     .10000E-03    36.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5520        .15105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.378        35.579        .67347E-04   -1.4518    
  22  norm          .10000E-03    53.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    108.10        .55870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.5422        103.69        .16995E-03   -1.5237    
  25  Prefactor     6.2320        3.5194        .11032E-03   -1.5209    
  26  Prefactor     35.956        44.643        .66758E-04   -1.4508    
  27  Prefactor     .10011E-03    114.57        .64588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.7628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .37348        .21340        .42795E-03   -1.1870    
  30  Prefactor     1.1644        .14618        .18552E-03   -.87434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86819e-08
Minuit parameter uncertainties:
  1  11.6861
  2  7.14886e-06
  3  19.5763
  4  7.87587e-06
  5  3.34089
  6  2.1993e-06
  7  6.31781
  8  7.4103e-06
  9  27.354
  10  4.20829e-07
  11  1.39176e-05
  12  6.37397
  13  0.249993
  14  4.16707
  15  9.23847
  16  0.000617846
  17  20.6824
  18  13.2601
  19  3.06759e-05
  20  6.54011e-06
  21  35.6008
  22  9.23979e-05
  23  0.00209638
  24  48.0415
  25  3.51949
  26  44.684
  27  0.00696164
  28  9.29157e-06
  29  0.213867
  30  0.146229
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.596e+01  4.468e+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.164e+00  1.462e-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:  3.735e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69613/likelihoodResults_246585601_246844801_4FGL_J2339.6+0242_daily_bin28.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) = 6766.94758474
delta logL = 0.821976569777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6766.92045955
delta logL = 0.849101760901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4006       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0648       1.0000          .0000       10.000    
     3 'Normalizat'    .30012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1989       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6766.920     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      345 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4463        162.68        .73594E-03   -.42599E-03
   2  Index         4.0621        6.9242        .50074E-02   -.84412E-04
   3  Normalizat    .29966        .17964        .47588E-03   -.22098E-04
   4  Prefactor     1.1992        .13486        .18302E-03   -.20250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44631
  Index      = 4.06214
  Normalizat = 0.299656
  Prefactor  = 1.19922
 **********
 **   18 **HESSE 
 **********

 FCN=   6766.920     FROM HESSE     STATUS=OK            25 CALLS      370 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4463        22.248        .29437E-04   -1.5162    
   2  Index         4.0621        1.6709        .20030E-03   -.18869    
   3  Normalizat    .29966        .20586        .19035E-04   -1.2286    
   4  Prefactor     1.1992        .14814        .73210E-05   -.86355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32653e-11
Minuit parameter uncertainties:
  1  22.273
  2  1.70495
  3  0.206385
  4  0.148195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69613': 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) = 6766.92045345
delta logL = 0.849107859638

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.446e+00  2.227e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.062e+00  1.705e+00  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.199e+00  1.482e-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:  2.997e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.06 +/- 1.70
Photon Flux (Free Index): 1.02e-07 +/- 7.47e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/69613/cmap_HighResolution_246585601_246844801_4FGL_J2339.6+0242_daily_bin28.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='8.49e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-30 02:44:57.684192', photon_index_error2='1.70', photon_index2='4.06', ts='0.82', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.16e-05', EG='0.37', time_epoch_completed='1632995097.68', return_code='0', job_id='69613', GAL2='1.20', EG2='0.30', return_code2='0', photon_flux_error2='7.47e-08', ts2='2.79', photon_index='2.55' WHERE bin_id='28' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:44:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 69613: <4FGL_J2339.6+0242_daily_bin28> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin28> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:12 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:13 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:30:13 2021
Terminated at Thu Sep 30 02:44:58 2021
Results reported at Thu Sep 30 02:44:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin28 354.904 2.7102 246585601 246844801 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 :                                   852.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

