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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin440
RA = 354.904, Dec = 2.7102
tmin = 353376001, tmax = 353635201
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='71608', job_status='RUN', time_executed='2021-09-30 02:37:57.663429', time_epoch_executed='1632994677.66' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71608/ft1_4FGL_J2339.6+0242_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71608/ft2_4FGL_J2339.6+0242_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71608/ft1_4FGL_J2339.6+0242_daily_bin440.fits outfile=/scratch/kocevski/71608/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin440.fits ra=354.904 dec=2.7102 rad=12.0 tmin=353376001.0 tmax=353635201.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.47
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71608/ft2_4FGL_J2339.6+0242_daily_bin440.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/71608/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin440.fits evtable="EVENTS" outfile="/scratch/kocevski/71608/ft1_filtered_4FGL_J2339.6+0242_daily_bin440.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.50
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71608/ft1_filtered_4FGL_J2339.6+0242_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/71608/ft2_4FGL_J2339.6+0242_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/71608/ltcube_353376001_353635201_4FGL_J2339.6+0242_daily_bin440.fits outfile=/scratch/kocevski/71608/expmap_353376001_353635201_4FGL_J2339.6+0242_daily_bin440.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/71608/ltcube_353376001_353635201_4FGL_J2339.6+0242_daily_bin440.fits
.....................!
real 191.67
user 186.46
sys 4.83

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/71608/ft1_filtered_4FGL_J2339.6+0242_daily_bin440.fits scfile=/scratch/kocevski/71608/ft2_4FGL_J2339.6+0242_daily_bin440.fits outfile=/scratch/kocevski/71608/cmap_353376001_353635201_4FGL_J2339.6+0242_daily_bin440.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71608/ft1_filtered_4FGL_J2339.6+0242_daily_bin440.fits scfile=/scratch/kocevski/71608/ft2_4FGL_J2339.6+0242_daily_bin440.fits outfile=/scratch/kocevski/71608/cmap_HighResolution_353376001_353635201_4FGL_J2339.6+0242_daily_bin440.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3226       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21193E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.174       1.0000         .10000E-03   10000.    
     6 'norm      '    14.142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4902       1.0000         .10000E-03   10000.    
     8 'norm      '    .25203E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44626E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1922       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1816       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.647       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.932       1.0000         .10000E-03   10000.    
    17 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.130       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .46942E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    14.703       1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.031       1.0000         .10000E-03   10000.    
    26 'Prefactor '    115.37       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.356       1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.793       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66079       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1362       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=   5891.781     FROM MIGRAD    STATUS=CONVERGED   1416 CALLS     4605 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.946        13.626        .92018E-04    .47442E-04
   2  Prefactor     .10000E-03    32.708        .18142E-02** at limit **
   3  Prefactor     5.3218        33.814        .17421E-03    .18469E-04
   4  Prefactor     .10021E-03    46.747        .32960E-02** at limit **
   5  norm          11.174        5.2395        .91060E-04    .34483E-03
   6  norm          14.142        5.9841        .10651E-03    .31915E-04
   7  Prefactor     4.4905        7.8466        .19001E-03    .44994E-04
   8  norm          .10030E-03    10.240        .69830E-01** at limit **
   9  Prefactor     19.326        33.783        .91087E-04    .66150E-05
  10  Prefactor     4.7727        9.0255        .18416E-03    .44014E-04
  11  Prefactor     .10015E-03    15.075        .90742E-01** at limit **
  12  Prefactor     3.1892        9.6452        .22679E-03    .24212E-04
  13  norm          1.1813        1.0019        .68879E-04   -.23768E-04
  14  norm          .10000E-03    4.0516        .15016E-02** at limit **
  15  Prefactor     18.646        10.186        .92750E-04   -.17413E-03
  16  Prefactor     24.931        45.439        .80226E-04    .10061E-04
  17  norm          .10000E-03    3.4623        .13918E-02** at limit **
  18  Prefactor     14.131        8.2134        .10655E-03   -.13828E-03
  19  Prefactor     .10000E-03    85.612        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.5024        .17546E-02** at limit **
  21  Prefactor     .10038E-03    22.885        .95446E-01** at limit **
  22  norm          14.703        14.275        .10446E-03   -.22856E-05
  23  norm          .10000E-03    11.221        .18142E-02** at limit **
  24  Prefactor     .10000E-03    31.586        .18142E-02** at limit **
  25  Prefactor     23.032        8.1207        .83465E-04    .12885E-03
  26  Prefactor     115.35        58.576        .37458E-04    .35632E-04
  27  Prefactor     12.350        23.975        .11396E-03   -.57861E-05
  28  Prefactor     19.794        24.963        .90026E-04    .55690E-04
  29  Normalizat    .66060        .28369        .37677E-03    .83310E-04
  30  Prefactor     1.1362        .17896        .20726E-03   -.45899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9458
  Prefactor  = 0.0001
  Prefactor  = 5.32181
  Prefactor  = 0.000100212
  norm       = 11.1744
  norm       = 14.1422
  Prefactor  = 4.4905
  norm       = 0.000100301
  Prefactor  = 19.3257
  Prefactor  = 4.77271
  Prefactor  = 0.000100148
  Prefactor  = 3.18917
  norm       = 1.18132
  norm       = 0.0001
  Prefactor  = 18.6462
  Prefactor  = 24.9307
  norm       = 0.0001
  Prefactor  = 14.1309
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100385
  norm       = 14.703
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0321
  Prefactor  = 115.349
  Prefactor  = 12.3498
  Prefactor  = 19.7944
  Normalizat = 0.660603
  Prefactor  = 1.13625
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.781     FROM HESSE     STATUS=OK           586 CALLS     5191 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.946        13.626        .36807E-05   -1.4837    
   2  Prefactor     .10000E-03    32.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3218        33.761        .69682E-05   -1.5247    
   4  Prefactor     .10021E-03    48.964        .13184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.174        5.2368        .36424E-05   -1.5039    
   6  norm          14.142        5.9840        .42604E-05   -1.4956    
   7  Prefactor     4.4905        7.8465        .76003E-05   -1.5284    
   8  norm          .10030E-03    9.5981        .73406E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.326        33.773        .36435E-05   -1.4828    
  10  Prefactor     4.7727        9.0256        .73666E-05   -1.5271    
  11  Prefactor     .10015E-03    15.008        .91069E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1892        9.6440        .90717E-05   -1.5351    
  13  norm          1.1813        1.0018        .27552E-05   -1.5491    
  14  norm          .10000E-03    4.0524        .30031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.646        10.186        .18550E-04   -1.4844    
  16  Prefactor     24.931        45.428        .32090E-05   -1.4709    
  17  norm          .10000E-03    3.4625        .27836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.131        8.2132        .42621E-05   -1.4956    
  19  Prefactor     .10000E-03    85.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5031        .35092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10038E-03    21.582        .99491E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.703        14.275        .41782E-05   -1.4941    
  23  norm          .10000E-03    11.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    31.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.032        8.1206        .33386E-05   -1.4748    
  26  Prefactor     115.35        58.577        .74916E-05   -1.3556    
  27  Prefactor     12.350        23.973        .45584E-05   -1.5005    
  28  Prefactor     19.794        24.957        .36011E-05   -1.4818    
  29  Normalizat    .66060        .28377        .15071E-04   -1.0547    
  30  Prefactor     1.1362        .17904        .41453E-04   -.88316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84019e-09
Minuit parameter uncertainties:
  1  13.6278
  2  3.17754e-05
  3  26.8302
  4  0.00644653
  5  5.237
  6  5.98429
  7  7.84827
  8  0.00339879
  9  33.8067
  10  9.02817
  11  0.00298317
  12  9.64869
  13  1.00183
  14  5.76607e-05
  15  10.1866
  16  45.4913
  17  6.8016e-06
  18  8.21387
  19  0.000763113
  20  8.94807e-06
  21  0.00576681
  22  14.2784
  23  6.75319e-06
  24  7.32172e-05
  25  8.121
  26  58.6068
  27  23.992
  28  24.9696
  29  0.284403
  30  0.179136
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.153e+02  5.861e+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.136e+00  1.791e-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:  6.606e-01  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.04
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 7.09e-08
Energy Flux (Fixed Index): 3.85e-05 +/- 1.95e-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) = 5889.71801996
delta logL = 2.06262768726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5889.65649357
delta logL = 2.12415407863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2477       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0247       1.0000          .0000       10.000    
     3 'Normalizat'    .48251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2418       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=   5889.656     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      312 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2093        15.812        .56186E-02    .34635E-03
   2  Index         5.0313        2.2619        .65748E-01    .16723E-03
   3  Normalizat    .48270        .97559E-01    .98204E-01    .46850E-04
   4  Prefactor     1.2417        .68625E-01    .33711E-01   -.35533E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.20932
  Index      = 5.03131
  Normalizat = 0.482705
  Prefactor  = 1.24166
 **********
 **   18 **HESSE 
 **********

 FCN=   5889.656     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      345 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2093        20.815        .47629E-04   -1.5350    
   2  Index         5.0313        2.6553        .28073E-02    .62613E-02
   3  Normalizat    .48270        .23619        .43515E-03   -1.1322    
   4  Prefactor     1.2417        .16688        .19965E-03   -.85059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02703e-10
Minuit parameter uncertainties:
  1  16.3544
  2  2.79925
  3  0.236681
  4  0.166953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71608': 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): 102
logL (Free Index) = 5889.65649125
delta logL = 2.12415640177

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.209e+00  1.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  5.031e+00  2.799e+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.242e+00  1.670e-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:  4.827e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.49
Ra Dec: 354.904 2.710
Photon Index (Free Index): 5.03 +/- 2.80
Photon Flux (Free Index): 2.45e-07 +/- 9.00e-08
Energy Flux (Free Index): 3.25e-05 +/- 1.46e-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/71608/cmap_HighResolution_353376001_353635201_4FGL_J2339.6+0242_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='3.25e-05', photon_flux_error='7.09e-08', dlogl='2.12e+00', energy_flux='3.85e-05', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-09-30 02:50:18.591789', photon_index_error2='2.80', photon_index2='5.03', ts='7.04', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='0.66', time_epoch_completed='1632995418.59', return_code='0', job_id='71608', GAL2='1.24', EG2='0.48', return_code2='102', energy_flux_error='1.95e-05', photon_flux_error2='9.00e-08', ts2='12.49', photon_index='2.55' WHERE bin_id='440' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 71608: <4FGL_J2339.6+0242_daily_bin440> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin440 354.904 2.7102 353376001 353635201 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            894 sec.

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

