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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin508
RA = 354.904, Dec = 2.7102
tmin = 371001601, tmax = 371260801
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='71730', job_status='RUN', time_executed='2021-09-30 02:39:15.020124', time_epoch_executed='1632994755.02' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71730

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71730/ft1_4FGL_J2339.6+0242_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71730/ft2_4FGL_J2339.6+0242_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71730/ft1_4FGL_J2339.6+0242_daily_bin508.fits outfile=/scratch/kocevski/71730/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin508.fits ra=354.904 dec=2.7102 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.45
user 6.16
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71730/ft2_4FGL_J2339.6+0242_daily_bin508.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/71730/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/71730/ft1_filtered_4FGL_J2339.6+0242_daily_bin508.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71730/ft1_filtered_4FGL_J2339.6+0242_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/71730/ft2_4FGL_J2339.6+0242_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/71730/ltcube_371001601_371260801_4FGL_J2339.6+0242_daily_bin508.fits outfile=/scratch/kocevski/71730/expmap_371001601_371260801_4FGL_J2339.6+0242_daily_bin508.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/71730/ltcube_371001601_371260801_4FGL_J2339.6+0242_daily_bin508.fits
.....................!
real 190.85
user 186.07
sys 4.38

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/71730/ft1_filtered_4FGL_J2339.6+0242_daily_bin508.fits scfile=/scratch/kocevski/71730/ft2_4FGL_J2339.6+0242_daily_bin508.fits outfile=/scratch/kocevski/71730/cmap_371001601_371260801_4FGL_J2339.6+0242_daily_bin508.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71730/ft1_filtered_4FGL_J2339.6+0242_daily_bin508.fits scfile=/scratch/kocevski/71730/ft2_4FGL_J2339.6+0242_daily_bin508.fits outfile=/scratch/kocevski/71730/cmap_HighResolution_371001601_371260801_4FGL_J2339.6+0242_daily_bin508.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/71730/ft1_filtered_4FGL_J2339.6+0242_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/71730/ft2_4FGL_J2339.6+0242_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71730/Model_4FGL_J2339.6+0242_daily_bin508.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/71730/ft1_filtered_4FGL_J2339.6+0242_daily_bin508.fits.....................!
real 55.68
user 54.28
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.560       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .98206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.201       1.0000         .10000E-03   10000.    
     5 'norm      '    9.1936       1.0000         .10000E-03   10000.    
     6 'norm      '    6.6953       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    110.12       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.018       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5377       1.0000         .10000E-03   10000.    
    14 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    27.508       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5149       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.887       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5389       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.2206       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9863       1.0000         .10000E-03   10000.    
    26 'Prefactor '    104.23       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.188       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77178       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74869       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=   4974.419     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3980 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.561        15.624        .64117E-06    .74498E-04
   2  Prefactor     .10000E-03    38.956       -.35678E-04** at limit **
   3  Prefactor     1.0022        21.210        .89690E-06   -.31378E-03
   4  Prefactor     11.200        11.484        .23950E-05    .44575E-04
   5  norm          9.1917        4.8425       -.36619E-06   -.37843E-03
   6  norm          6.6951        5.2072       -.30371E-06   -.15032E-03
   7  Prefactor     .10000E-03    6.2280        .20260E-07** at limit **
   8  norm          .10000E-03    4.5030        .43414E-07** at limit **
   9  Prefactor     110.11        53.679       -.30299E-05    .41962E-05
  10  Prefactor     .10000E-03    3.1083       -.31908E-07** at limit **
  11  Prefactor     14.946        22.204       -.12258E-06   -.18692E-04
  12  Prefactor     12.018        12.762       -.54697E-06   -.77089E-04
  13  norm          1.5369        1.1697       -.50230E-06   -.55186E-03
  14  norm          .10000E-03    5.6428        .21982E-06** at limit **
  15  Prefactor     .10000E-03    17.090       -.52279E-06** at limit **
  16  Prefactor     .10000E-03    77.732        .14833E-04** at limit **
  17  norm          27.511        14.502        .41764E-06    .42222E-04
  18  Prefactor     5.5144        10.523       -.23588E-05   -.19773E-03
  19  Prefactor     .10000E-03    130.37        .24844E-04** at limit **
  20  Prefactor     15.918        24.002        .24486E-04    .27605E-03
  21  Prefactor     8.5382        28.031        .82853E-06   -.42756E-05
  22  norm          .10000E-03    5.3067       -.16464E-07** at limit **
  23  norm          5.1152        40.400       -.62083E-04   -.11026E-03
  24  Prefactor     .10000E-03    36.259        .29015E-04** at limit **
  25  Prefactor     5.9864        8.9764       -.39934E-05   -.11735E-03
  26  Prefactor     104.22        47.246       -.80546E-05    .27501E-05
  27  Prefactor     .10000E-03    9.1217        .32866E-06** at limit **
  28  Prefactor     24.184        22.351        .10546E-05    .93642E-05
  29  Normalizat    .77212        .23990       -.16349E-05    .67700E-04
  30  Prefactor     .74851        .13942        .21690E-05   -.80434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5611
  Prefactor  = 0.0001
  Prefactor  = 1.00219
  Prefactor  = 11.2001
  norm       = 9.1917
  norm       = 6.69511
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 110.109
  Prefactor  = 0.0001
  Prefactor  = 14.9462
  Prefactor  = 12.0178
  norm       = 1.53686
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.5115
  Prefactor  = 5.51438
  Prefactor  = 0.0001
  Prefactor  = 15.9184
  Prefactor  = 8.53818
  norm       = 0.0001
  norm       = 5.11523
  Prefactor  = 0.0001
  Prefactor  = 5.98641
  Prefactor  = 104.217
  Prefactor  = 0.0001
  Prefactor  = 24.1835
  Normalizat = 0.772122
  Prefactor  = 0.748511
 **********
 **   18 **HESSE 
 **********

 FCN=   4974.419     FROM HESSE     STATUS=OK           594 CALLS     4574 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.561        15.623        .92967E-04   -1.4846    
   2  Prefactor     .10000E-03    38.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0022        99.481        .51996E-02   -1.5508    
   4  Prefactor     11.200        11.519        .11970E-03   -1.5039    
   5  norm          9.1917        4.8753        .89254E-04   -1.5102    
   6  norm          6.6951        5.2080        .13647E-03   -1.5190    
   7  Prefactor     .10000E-03    6.2433        .17187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.5073        .14616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     110.11        53.797        .38330E-04   -1.3605    
  10  Prefactor     .10000E-03    3.1091        .12144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.946        22.278        .10358E-03   -1.4935    
  12  Prefactor     12.018        12.726        .11555E-03   -1.5014    
  13  norm          1.5369        1.1564        .61955E-04   -1.5460    
  14  norm          .10000E-03    5.7048        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    77.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          27.511        14.329        .76383E-04   -1.4658    
  18  Prefactor     5.5144        10.418        .17109E-03   -1.5238    
  19  Prefactor     .10000E-03    130.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.918        23.916        .10048E-03   -1.4910    
  21  Prefactor     8.5382        27.957        .13718E-03   -1.5123    
  22  norm          .10000E-03    5.3074        .15869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.1152        40.245        .17593E-03   -1.5256    
  24  Prefactor     .10000E-03    36.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.9864        8.9121        .16411E-03   -1.5219    
  26  Prefactor     104.22        47.291        .19693E-03   -1.3663    
  27  Prefactor     .10000E-03    9.1390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     24.184        22.357        .81449E-04   -1.4724    
  29  Normalizat    .77212        .27475        .30895E-03   -1.0111    
  30  Prefactor     .74851        .15939        .21046E-03   -1.0166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83577e-09
Minuit parameter uncertainties:
  1  15.6264
  2  8.64792e-05
  3  20.0032
  4  11.5214
  5  4.87547
  6  5.20832
  7  3.12797e-06
  8  3.92896e-06
  9  53.8206
  10  2.06328e-06
  11  22.2904
  12  12.7285
  13  1.15642
  14  1.50049e-06
  15  1.32331e-06
  16  0.000366837
  17  14.331
  18  10.4219
  19  0.000200035
  20  23.9304
  21  27.9994
  22  2.61519e-06
  23  28.7222
  24  2.64511e-05
  25  8.9141
  26  47.3077
  27  1.40039e-05
  28  22.3648
  29  0.275241
  30  0.159483
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.042e+02  4.731e+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:  7.485e-01  1.595e-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.721e-01  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.57
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 5.72e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 1.58e-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) = 4973.79445016
delta logL = 0.624434025984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4973.70588464
delta logL = 0.712999553698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    141.31       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0774       1.0000          .0000       10.000    
     3 'Normalizat'    .81359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72862       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=   4973.706     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     141.31        110.13        .84724E-03    .53473E-03
   2  Index         2.0775        .56989        .13363        .18220E-04
   3  Normalizat    .81351        .20803        .68167E-01    .16510E-04
   4  Prefactor     .72872        .13869        .42781E-01    .11100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 141.31
  Index      = 2.07747
  Normalizat = 0.813509
  Prefactor  = 0.728721
 **********
 **   18 **HESSE 
 **********

 FCN=   4973.706     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     141.31        65.497        .33890E-04   -1.3325    
   2  Index         2.0775        .36282        .54758E-02   -.62427    
   3  Normalizat    .81351        .23083        .30160E-03   -.99570    
   4  Prefactor     .72872        .15483        .21283E-03   -1.0241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77521e-10
Minuit parameter uncertainties:
  1  65.5303
  2  0.363307
  3  0.231105
  4  0.154919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71730': 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) = 4973.70588426
delta logL = 0.712999927977

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.413e+02  6.553e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.077e+00  3.633e-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:  7.287e-01  1.549e-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:  8.135e-01  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.91
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.08 +/- 0.36
Photon Flux (Free Index): 9.33e-08 +/- 5.12e-08
Energy Flux (Free Index): 5.38e-05 +/- 3.62e-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/71730/cmap_HighResolution_371001601_371260801_4FGL_J2339.6+0242_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='5.38e-05', photon_flux_error='5.72e-08', dlogl='7.13e-01', energy_flux='3.48e-05', photon_flux2='9.33e-08', job_status='DONE', time_completed='2021-09-30 02:50:07.289649', photon_index_error2='0.36', photon_index2='2.08', ts='11.57', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='3.62e-05', EG='0.77', time_epoch_completed='1632995407.29', return_code='0', job_id='71730', GAL2='0.73', EG2='0.81', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.12e-08', ts2='12.91', photon_index='2.55' WHERE bin_id='508' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 71730: <4FGL_J2339.6+0242_daily_bin508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin508 354.904 2.7102 371001601 371260801 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 :                                   649.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

