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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin169
RA = 354.904, Dec = 2.7102
tmin = 283132801, tmax = 283392001
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='69860', job_status='RUN', time_executed='2021-09-30 02:32:46.774477', time_epoch_executed='1632994366.77' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69860/ft1_4FGL_J2339.6+0242_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69860/ft2_4FGL_J2339.6+0242_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69860/ft1_4FGL_J2339.6+0242_daily_bin169.fits outfile=/scratch/kocevski/69860/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin169.fits ra=354.904 dec=2.7102 rad=12.0 tmin=283132801.0 tmax=283392001.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.79
user 3.57
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69860/ft1_filtered_4FGL_J2339.6+0242_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/69860/ft2_4FGL_J2339.6+0242_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/69860/ltcube_283132801_283392001_4FGL_J2339.6+0242_daily_bin169.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/69860/ft2_4FGL_J2339.6+0242_daily_bin169.fits
.....................!
real 12.24
user 11.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69860/ft1_filtered_4FGL_J2339.6+0242_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/69860/ft2_4FGL_J2339.6+0242_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/69860/ltcube_283132801_283392001_4FGL_J2339.6+0242_daily_bin169.fits outfile=/scratch/kocevski/69860/expmap_283132801_283392001_4FGL_J2339.6+0242_daily_bin169.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/69860/ltcube_283132801_283392001_4FGL_J2339.6+0242_daily_bin169.fits
.....................!
real 189.70
user 184.84
sys 4.52

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/69860/ft1_filtered_4FGL_J2339.6+0242_daily_bin169.fits scfile=/scratch/kocevski/69860/ft2_4FGL_J2339.6+0242_daily_bin169.fits outfile=/scratch/kocevski/69860/cmap_283132801_283392001_4FGL_J2339.6+0242_daily_bin169.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.54
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15436       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.766       1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76171       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.009       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32957       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6404       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3528       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.177       1.0000         .10000E-03   10000.    
    23 'norm      '    7.4268       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9312       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.022       1.0000         .10000E-03   10000.    
    27 'Prefactor '    35.505       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.917       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7452       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76224       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=   6801.250     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3927 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.080        .72039E-05** at limit **
   2  Prefactor     .10000E-03    27.036       -.17160E-04** at limit **
   3  Prefactor     .10000E-03    7.3342       -.93786E-06** at limit **
   4  Prefactor     .10000E-03    4.2327        .23597E-06** at limit **
   5  norm          .13096        1.4495       -.74533E-06    .12047E-03
   6  norm          5.6222        4.2324        .23732E-06    .84639E-04
   7  Prefactor     24.773        16.110       -.16528E-05    .11505E-03
   8  norm          .10000E-03    11.355       -.89790E-05** at limit **
   9  Prefactor     .10000E-03    23.963       -.77421E-05** at limit **
  10  Prefactor     .78015        7.9860       -.17037E-05   -.16323E-04
  11  Prefactor     22.005        20.013       -.31975E-06    .63445E-04
  12  Prefactor     .10000E-03    5.0530        .34888E-06** at limit **
  13  norm          .32941        .75735       -.43283E-06   -.22438E-02
  14  norm          2.6398        3.7068       -.36860E-06   -.11686E-03
  15  Prefactor     .10000E-03    3.3510        .25810E-06** at limit **
  16  Prefactor     .10000E-03    19.745        .15512E-04** at limit **
  17  norm          3.3527        8.1872       -.21041E-05   -.32133E-03
  18  Prefactor     .10000E-03    3.6105        .27967E-06** at limit **
  19  Prefactor     .10000E-03    96.734       -.44452E-05** at limit **
  20  Prefactor     .10000E-03    4.6676       -.56400E-06** at limit **
  21  Prefactor     .10000E-03    37.771        .21612E-04** at limit **
  22  norm          16.172        23.950       -.22008E-05    .34021E-05
  23  norm          7.4256        14.738       -.10871E-05   -.64729E-03
  24  Prefactor     .10000E-03    33.586       -.40936E-05** at limit **
  25  Prefactor     2.9318        4.9838        .40914E-06   -.39141E-03
  26  Prefactor     27.968        49.009       -.65612E-04    .16204E-04
  27  Prefactor     35.512        31.998        .88488E-05    .53075E-04
  28  Prefactor     12.920        12.498        .10177E-06    .94542E-04
  29  Normalizat    1.7451        .23155        .66141E-05    .11518E-05
  30  Prefactor     .76244        .14545       -.47217E-06    .45957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.130958
  norm       = 5.62217
  Prefactor  = 24.7733
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.780153
  Prefactor  = 22.0052
  Prefactor  = 0.0001
  norm       = 0.329406
  norm       = 2.63979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.35269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1721
  norm       = 7.4256
  Prefactor  = 0.0001
  Prefactor  = 2.93181
  Prefactor  = 27.9683
  Prefactor  = 35.512
  Prefactor  = 12.9195
  Normalizat = 1.74515
  Prefactor  = 0.762436
 **********
 **   18 **HESSE 
 **********

 FCN=   6801.250     FROM HESSE     STATUS=OK           590 CALLS     4517 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2557        .16568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .13096        12.871        .18721E-02   -1.5636    
   6  norm          5.6222        4.2311        .14223E-03   -1.5234    
   7  Prefactor     24.773        16.109        .80493E-04   -1.4712    
   8  norm          .10000E-03    11.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .78015        46.749        .44612E-02   -1.5531    
  11  Prefactor     22.005        20.026        .85379E-04   -1.4769    
  12  Prefactor     .10000E-03    5.0715        .18101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .32941        .68252        .10308E-02   -1.5593    
  14  norm          2.6398        3.6882        .18252E-03   -1.5383    
  15  Prefactor     .10000E-03    3.3534        .14739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3527        8.1728        .22102E-03   -1.5342    
  18  Prefactor     .10000E-03    3.6230        .15280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    96.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.6715        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.172        23.957        .99580E-04   -1.4903    
  23  norm          7.4256        14.696        .73584E-03   -1.5163    
  24  Prefactor     .10000E-03    33.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.9318        4.9526        .21765E-03   -1.5366    
  26  Prefactor     27.968        49.051        .75681E-04   -1.4650    
  27  Prefactor     35.512        32.045        .67256E-04   -1.4515    
  28  Prefactor     12.920        12.505        .11145E-03   -1.4989    
  29  Normalizat    1.7451        .26942        .26842E-03   -.71104    
  30  Prefactor     .76244        .16901        .25660E-03   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69659e-08
Minuit parameter uncertainties:
  1  0.000108337
  2  3.1486e-05
  3  5.36163e-06
  4  1.42195e-05
  5  2.59621
  6  4.23131
  7  16.1118
  8  4.18195e-05
  9  4.76598e-05
  10  12.0874
  11  20.0325
  12  1.14489e-05
  13  0.682541
  14  3.68853
  15  4.30013e-06
  16  8.94155e-05
  17  8.17548
  18  7.03345e-07
  19  1.58586e-05
  20  4.18617e-05
  21  3.62947e-05
  22  23.9709
  23  14.7034
  24  4.55658e-05
  25  4.95327
  26  49.1218
  27  32.0606
  28  12.5077
  29  0.269651
  30  0.169123
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.797e+01  4.912e+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.624e-01  1.691e-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.745e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69860/likelihoodResults_283132801_283392001_4FGL_J2339.6+0242_daily_bin169.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) = 6800.34047262
delta logL = 0.90933926743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6800.33793631
delta logL = 0.911875575527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8569       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6257       1.0000          .0000       10.000    
     3 'Normalizat'    1.6582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80319       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=   6800.338     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      348 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8605        83.781        .10234E-03    .27771E-04
   2  Index         4.6247        7.1936        .52097E-02    .27219E-04
   3  Normalizat    1.6583        .22706        .27360E-03   -.46422E-04
   4  Prefactor     .80317        .14937        .25067E-03    .60183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86045
  Index      = 4.62474
  Normalizat = 1.65826
  Prefactor  = 0.803168
 **********
 **   18 **HESSE 
 **********

 FCN=   6800.338     FROM HESSE     STATUS=OK            25 CALLS      373 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8605        13.456        .40938E-05   -1.5370    
   2  Index         4.6247        2.2764        .20839E-03   -.75122E-01
   3  Normalizat    1.6583        .26114        .54721E-04   -.73423    
   4  Prefactor     .80317        .17033        .10027E-04   -.99612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79594e-11
Minuit parameter uncertainties:
  1  12.4124
  2  2.36395
  3  0.261355
  4  0.170441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69860': 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) = 6800.33793602
delta logL = 0.911875867499

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.860e+00  1.241e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.625e+00  2.364e+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:  8.032e-01  1.704e-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.658e+00  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.62 +/- 2.36
Photon Flux (Free Index): 1.05e-07 +/- 8.38e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.24e-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/69860/cmap_HighResolution_283132801_283392001_4FGL_J2339.6+0242_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.45e-05', dlogl='9.12e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-30 02:47:00.033896', photon_index_error2='2.36', photon_index2='4.62', ts='0.38', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.24e-05', EG='1.75', time_epoch_completed='1632995220.03', return_code='0', job_id='69860', GAL2='0.80', EG2='1.66', return_code2='0', photon_flux_error2='8.38e-08', ts2='2.34', photon_index='2.55' WHERE bin_id='169' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:47:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 69860: <4FGL_J2339.6+0242_daily_bin169> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:31 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:32 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:32 2021
Terminated at Thu Sep 30 02:47:00 2021
Results reported at Thu Sep 30 02:47:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin169 354.904 2.7102 283132801 283392001 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 :                                   850.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

