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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin497
RA = 354.904, Dec = 2.7102
tmin = 368150401, tmax = 368409601
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='71713', job_status='RUN', time_executed='2021-09-30 02:38:55.065459', time_epoch_executed='1632994735.07' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71713

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71713/ft1_4FGL_J2339.6+0242_daily_bin497.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71713/ft2_4FGL_J2339.6+0242_daily_bin497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71713/ft1_4FGL_J2339.6+0242_daily_bin497.fits outfile=/scratch/kocevski/71713/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin497.fits ra=354.904 dec=2.7102 rad=12.0 tmin=368150401.0 tmax=368409601.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.30
user 3.11
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71713/ft2_4FGL_J2339.6+0242_daily_bin497.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/71713/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin497.fits evtable="EVENTS" outfile="/scratch/kocevski/71713/ft1_filtered_4FGL_J2339.6+0242_daily_bin497.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/71713/ft1_filtered_4FGL_J2339.6+0242_daily_bin497.fits" evtable="EVENTS" scfile=/scratch/kocevski/71713/ft2_4FGL_J2339.6+0242_daily_bin497.fits sctable="SC_DATA" outfile=/scratch/kocevski/71713/ltcube_368150401_368409601_4FGL_J2339.6+0242_daily_bin497.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/71713/ft2_4FGL_J2339.6+0242_daily_bin497.fits
.....................!
real 11.94
user 11.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71713/ft1_filtered_4FGL_J2339.6+0242_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/71713/ft2_4FGL_J2339.6+0242_daily_bin497.fits sctable="SC_DATA" expcube=/scratch/kocevski/71713/ltcube_368150401_368409601_4FGL_J2339.6+0242_daily_bin497.fits outfile=/scratch/kocevski/71713/expmap_368150401_368409601_4FGL_J2339.6+0242_daily_bin497.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/71713/ltcube_368150401_368409601_4FGL_J2339.6+0242_daily_bin497.fits
.....................!
real 190.04
user 185.34
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/71713/ft1_filtered_4FGL_J2339.6+0242_daily_bin497.fits scfile=/scratch/kocevski/71713/ft2_4FGL_J2339.6+0242_daily_bin497.fits outfile=/scratch/kocevski/71713/cmap_368150401_368409601_4FGL_J2339.6+0242_daily_bin497.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71713/ft1_filtered_4FGL_J2339.6+0242_daily_bin497.fits scfile=/scratch/kocevski/71713/ft2_4FGL_J2339.6+0242_daily_bin497.fits outfile=/scratch/kocevski/71713/cmap_HighResolution_368150401_368409601_4FGL_J2339.6+0242_daily_bin497.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/71713/ft1_filtered_4FGL_J2339.6+0242_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/71713/ft2_4FGL_J2339.6+0242_daily_bin497.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71713/Model_4FGL_J2339.6+0242_daily_bin497.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/71713/ft1_filtered_4FGL_J2339.6+0242_daily_bin497.fits.....................!
real 66.36
user 65.05
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8715       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.6695       1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.927       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.350       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .83167       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2825       1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.303       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10864       1.0000         .10000E-03   10000.    
    22 'norm      '    .11197E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.191       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.063       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5531       1.0000         .10000E-03   10000.    
    26 'Prefactor '    131.38       1.0000         .10000E-03   10000.    
    27 'Prefactor '    60.883       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87214       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=   6249.057     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3984 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.325        .50383E-07** at limit **
   2  Prefactor     .10000E-03    20.776        .34675E-07** at limit **
   3  Prefactor     8.8641        16.899        .53512E-06   -.10683E-04
   4  Prefactor     .10000E-03    3.1226        .46014E-07** at limit **
   5  norm          .10000E-03    .97216        .51875E-07** at limit **
   6  norm          14.292        6.3823        .86186E-07   -.22812E-04
   7  Prefactor     .10000E-03    4.6266        .18195E-07** at limit **
   8  norm          8.6661        15.559        .29998E-05   -.32420E-04
   9  Prefactor     70.917        47.265        .15112E-06   -.27320E-04
  10  Prefactor     13.349        12.800        .78262E-07   -.16666E-04
  11  Prefactor     .10000E-03    6.1469       -.10181E-06** at limit **
  12  Prefactor     .10000E-03    2.7838       -.34700E-07** at limit **
  13  norm          .83180        .72972       -.35216E-07   -.89264E-04
  14  norm          .10000E-03    1.5133       -.28936E-07** at limit **
  15  Prefactor     6.3006        8.9504       -.24691E-06   -.91760E-04
  16  Prefactor     51.250        73.731       -.10954E-06   -.41734E-04
  17  norm          .10000E-03    2.6089        .91628E-07** at limit **
  18  Prefactor     .10000E-03    4.2569        .11130E-06** at limit **
  19  Prefactor     .10000E-03    58.122       -.47032E-07** at limit **
  20  Prefactor     .10000E-03    4.8696       -.14011E-06** at limit **
  21  Prefactor     .10020E-03    33.185        .22922E-05** at limit **
  22  norm          .10000E-03    33.154        .16881E-06** at limit **
  23  norm          10.191        13.599       -.13595E-06   -.48324E-05
  24  Prefactor     30.023        47.335        .11004E-06   -.21999E-04
  25  Prefactor     3.5527        5.2502        .58900E-06   -.27763E-04
  26  Prefactor     131.45        63.131        .39318E-08   -.12881E-04
  27  Prefactor     60.936        32.522       -.32466E-06   -.13761E-03
  28  Prefactor     .10000E-03    11.610        .18181E-06** at limit **
  29  Normalizat    1.0461        .22251       -.12799E-05   -.14979E-03
  30  Prefactor     .87237        .13962       -.19548E-06   -.24102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.86412
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.2925
  Prefactor  = 0.0001
  norm       = 8.66606
  Prefactor  = 70.9165
  Prefactor  = 13.3494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.831796
  norm       = 0.0001
  Prefactor  = 6.30058
  Prefactor  = 51.2504
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100202
  norm       = 0.0001
  norm       = 10.1907
  Prefactor  = 30.0231
  Prefactor  = 3.55265
  Prefactor  = 131.451
  Prefactor  = 60.9362
  Prefactor  = 0.0001
  Normalizat = 1.04614
  Prefactor  = 0.872367
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.057     FROM HESSE     STATUS=OK           588 CALLS     4572 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8641        16.979        .13457E-03   -1.5112    
   4  Prefactor     .10000E-03    3.1412        .13643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .97836        .75931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.292        6.3904        .10594E-03   -1.4952    
   7  Prefactor     .10000E-03    4.6330        .16604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6661        15.427        .68069E-03   -1.5119    
   9  Prefactor     70.917        47.307        .47666E-04   -1.4022    
  10  Prefactor     13.349        12.803        .10963E-03   -1.4977    
  11  Prefactor     .10000E-03    6.1495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7868        .12880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .83180        .72490        .60798E-04   -1.5526    
  14  norm          .10000E-03    1.5169        .94959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3006        8.9704        .16015E-03   -1.5206    
  16  Prefactor     51.250        73.798        .55992E-04   -1.4275    
  17  norm          .10000E-03    2.6143        .12469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3156        .15928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8765        .17024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10020E-03    36.042        .10987       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    33.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.191        13.590        .12551E-03   -1.5069    
  24  Prefactor     30.023        47.386        .73074E-04   -1.4612    
  25  Prefactor     3.5527        5.2640        .19917E-03   -1.5331    
  26  Prefactor     131.45        63.208        .17564E-03   -1.3410    
  27  Prefactor     60.936        32.673        .51422E-04   -1.4145    
  28  Prefactor     .10000E-03    11.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0461        .26091        .29787E-03   -.91500    
  30  Prefactor     .87237        .16385        .22033E-03   -.97113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23173e-10
Minuit parameter uncertainties:
  1  1.06902e-05
  2  8.17557e-06
  3  16.9882
  4  2.68237e-06
  5  6.47539e-07
  6  6.39072
  7  1.76282e-06
  8  15.4341
  9  47.3322
  10  12.8056
  11  2.10538e-07
  12  9.27007e-07
  13  0.72491
  14  6.30266e-07
  15  8.97235
  16  73.9298
  17  9.86819e-07
  18  4.57603e-06
  19  4.99111e-08
  20  2.15332e-06
  21  0.0053972
  22  3.11713e-05
  23  13.5939
  24  47.445
  25  5.26464
  26  63.2407
  27  32.6826
  28  1.03326e-05
  29  0.261232
  30  0.16394
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.315e+02  6.324e+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:  8.724e-01  1.639e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.046e+00  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.59e-07 +/- 7.65e-08
Energy Flux (Fixed Index): 4.38e-05 +/- 2.11e-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) = 6248.84449402
delta logL = 0.212454284963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.82325337
delta logL = 0.233694935446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.287       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9007       1.0000          .0000       10.000    
     3 'Normalizat'    .99851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89536       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=   6248.823     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      285 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.264        79.466        .40547E-04    .58319E-03
   2  Index         2.9006        .60939        .44860E-02    .39591E-03
   3  Normalizat    .99844        .25112        .30373E-03   -.76681E-03
   4  Prefactor     .89553        .16637        .21773E-03   -.17007E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.2642
  Index      = 2.90058
  Normalizat = 0.998435
  Prefactor  = 0.895533
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.823     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.264        72.166        .81095E-05   -1.3722    
   2  Index         2.9006        .55257        .17944E-03   -.43332    
   3  Normalizat    .99844        .24999        .60747E-04   -.93083    
   4  Prefactor     .89553        .16566        .43546E-04   -.96297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94659e-09
Minuit parameter uncertainties:
  1  72.2304
  2  0.55395
  3  0.25028
  4  0.165756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71713': 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) = 6248.82325173
delta logL = 0.233696579225

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  9.826e+01  7.223e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.901e+00  5.539e-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.955e-01  1.658e-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:  9.984e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.10
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.90 +/- 0.55
Photon Flux (Free Index): 2.00e-07 +/- 1.00e-07
Energy Flux (Free Index): 4.20e-05 +/- 1.84e-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/71713/cmap_HighResolution_368150401_368409601_4FGL_J2339.6+0242_daily_bin497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.59e-07', energy_flux2='4.20e-05', photon_flux_error='7.65e-08', dlogl='2.34e-01', energy_flux='4.38e-05', photon_flux2='2.00e-07', job_status='DONE', time_completed='2021-09-30 02:50:42.979222', photon_index_error2='0.55', photon_index2='2.90', ts='7.50', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='1.05', time_epoch_completed='1632995442.98', return_code='0', job_id='71713', GAL2='0.90', EG2='1.00', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='1.00e-07', ts2='8.10', photon_index='2.55' WHERE bin_id='497' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 71713: <4FGL_J2339.6+0242_daily_bin497> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin497 354.904 2.7102 368150401 368409601 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 :                                   706.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             247.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

