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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin27
RA = 354.904, Dec = 2.7102
tmin = 246326401, tmax = 246585601
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='69608', job_status='RUN', time_executed='2021-09-30 02:31:08.690407', time_epoch_executed='1632994268.69' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='27'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69608/ft1_4FGL_J2339.6+0242_daily_bin27.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69608/ft2_4FGL_J2339.6+0242_daily_bin27.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69608/ft1_4FGL_J2339.6+0242_daily_bin27.fits outfile=/scratch/kocevski/69608/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin27.fits ra=354.904 dec=2.7102 rad=12.0 tmin=246326401.0 tmax=246585601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.45
user 1.25
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69608/ft1_filtered_4FGL_J2339.6+0242_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/69608/ft2_4FGL_J2339.6+0242_daily_bin27.fits sctable="SC_DATA" expcube=/scratch/kocevski/69608/ltcube_246326401_246585601_4FGL_J2339.6+0242_daily_bin27.fits outfile=/scratch/kocevski/69608/expmap_246326401_246585601_4FGL_J2339.6+0242_daily_bin27.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/69608/ltcube_246326401_246585601_4FGL_J2339.6+0242_daily_bin27.fits
.....................!
real 193.89
user 188.17
sys 5.31

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/69608/ft1_filtered_4FGL_J2339.6+0242_daily_bin27.fits scfile=/scratch/kocevski/69608/ft2_4FGL_J2339.6+0242_daily_bin27.fits outfile=/scratch/kocevski/69608/cmap_246326401_246585601_4FGL_J2339.6+0242_daily_bin27.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.59
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69608/ft1_filtered_4FGL_J2339.6+0242_daily_bin27.fits scfile=/scratch/kocevski/69608/ft2_4FGL_J2339.6+0242_daily_bin27.fits outfile=/scratch/kocevski/69608/cmap_HighResolution_246326401_246585601_4FGL_J2339.6+0242_daily_bin27.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/69608/ft1_filtered_4FGL_J2339.6+0242_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/69608/ft2_4FGL_J2339.6+0242_daily_bin27.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69608/Model_4FGL_J2339.6+0242_daily_bin27.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/69608/ft1_filtered_4FGL_J2339.6+0242_daily_bin27.fits.....................!
real 75.73
user 74.29
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0841       1.0000         .10000E-03   10000.    
     5 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9159       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.490       1.0000         .10000E-03   10000.    
     8 'norm      '    25.818       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .23864       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2951       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40200E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    27.701       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.555       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.677       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11435E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.2152       1.0000         .10000E-03   10000.    
    23 'norm      '    6.5412       1.0000         .10000E-03   10000.    
    24 'Prefactor '    78.158       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8963       1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.874       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.098       1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.282       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .55654       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1390       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=   7642.470     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3947 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.092        9.1216        .15402E-08    .62775E-05
   2  Prefactor     .10000E-03    20.471       -.27579E-07** at limit **
   3  Prefactor     .10000E-03    7.7912        .57052E-07** at limit **
   4  Prefactor     6.0851        7.6885        .84951E-07   -.52251E-04
   5  norm          .10000E-03    1.4727        .19740E-06** at limit **
   6  norm          3.9159        3.5233        .51399E-07   -.52097E-04
   7  Prefactor     17.491        11.285       -.13210E-07   -.10991E-04
   8  norm          25.816        12.901        .70924E-07    .16354E-04
   9  Prefactor     28.754        29.407        .57706E-07   -.47305E-05
  10  Prefactor     .10000E-03    3.1655        .13216E-07** at limit **
  11  Prefactor     .10000E-03    8.8383        .41508E-07** at limit **
  12  Prefactor     .10000E-03    3.2208       -.63724E-07** at limit **
  13  norm          .23783        .35061       -.32397E-06   -.13435E-02
  14  norm          1.2948        3.6195        .87422E-06   -.28943E-03
  15  Prefactor     .10001E-03    4.3759        .14074E-06** at limit **
  16  Prefactor     .10000E-03    26.609       -.30127E-07** at limit **
  17  norm          27.708        12.857       -.47290E-08   -.54294E-04
  18  Prefactor     12.554        10.474        .62130E-07   -.40261E-04
  19  Prefactor     32.576        106.28       -.16199E-06   -.14197E-04
  20  Prefactor     .10000E-03    6.6552       -.68908E-06** at limit **
  21  Prefactor     .10000E-03    15.582        .77131E-07** at limit **
  22  norm          4.2071        32.747        .28775E-06   -.13373E-04
  23  norm          6.5200        21.453        .19259E-06    .46557E-05
  24  Prefactor     78.157        50.110       -.34240E-08    .55027E-05
  25  Prefactor     8.8980        5.3004        .10103E-06    .34216E-04
  26  Prefactor     40.865        36.334        .87057E-07   -.60460E-05
  27  Prefactor     17.098        16.635        .37657E-07   -.27772E-05
  28  Prefactor     13.284        15.885        .10572E-07   -.50311E-05
  29  Normalizat    .55634        .20636       -.76420E-06    .21568E-04
  30  Prefactor     1.1392        .13259        .23085E-06   -.68087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.08509
  norm       = 0.0001
  norm       = 3.91592
  Prefactor  = 17.491
  norm       = 25.8165
  Prefactor  = 28.7539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.237829
  norm       = 1.29482
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 27.708
  Prefactor  = 12.5545
  Prefactor  = 32.5759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20706
  norm       = 6.52002
  Prefactor  = 78.1571
  Prefactor  = 8.89804
  Prefactor  = 40.865
  Prefactor  = 17.0983
  Prefactor  = 13.2838
  Normalizat = 0.556344
  Prefactor  = 1.13917
 **********
 **   18 **HESSE 
 **********

 FCN=   7642.470     FROM HESSE     STATUS=OK           600 CALLS     4547 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.092        9.1181        .12614E-03   -1.5073    
   2  Prefactor     .10000E-03    20.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0851        7.6592        .16277E-03   -1.5215    
   5  norm          .10000E-03    2.6013        .20016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9159        3.5140        .15007E-03   -1.5312    
   7  Prefactor     17.491        11.274        .95770E-04   -1.4871    
   8  norm          25.816        12.889        .78839E-04   -1.4691    
   9  Prefactor     28.754        29.356        .74708E-04   -1.4635    
  10  Prefactor     .10000E-03    3.1690        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2318        .15308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .23783        .34046        .78098E-03   -1.5610    
  14  norm          1.2948        3.4991        .26087E-03   -1.5480    
  15  Prefactor     .10001E-03    52.705        .34109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          27.708        12.547        .76117E-04   -1.4655    
  18  Prefactor     12.554        10.432        .11305E-03   -1.4999    
  19  Prefactor     32.576        106.18        .35049E-03   -1.4566    
  20  Prefactor     .10000E-03    6.5340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2071        32.761        .19628E-03   -1.5298    
  23  norm          6.5200        21.360        .15691E-03   -1.5197    
  24  Prefactor     78.157        50.094        .45424E-04   -1.3938    
  25  Prefactor     8.8980        5.2846        .13051E-03   -1.5111    
  26  Prefactor     40.865        36.300        .62699E-04   -1.4429    
  27  Prefactor     17.098        16.619        .96861E-04   -1.4881    
  28  Prefactor     13.284        15.886        .10991E-03   -1.4979    
  29  Normalizat    .55634        .21747        .37227E-03   -1.0987    
  30  Prefactor     1.1392        .14473        .19347E-03   -.88224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71594e-10
Minuit parameter uncertainties:
  1  9.11936
  2  1.90105e-05
  3  6.92334e-06
  4  7.66041
  5  4.04449e-05
  6  3.51422
  7  11.2751
  8  12.8904
  9  29.3711
  10  7.33352e-07
  11  4.70766e-06
  12  5.3721e-06
  13  0.340461
  14  3.49968
  15  0.00147097
  16  3.69042e-05
  17  12.5477
  18  10.4333
  19  106.8
  20  8.14152e-05
  21  2.47798e-06
  22  23.4977
  23  21.3848
  24  50.121
  25  5.28487
  26  36.32
  27  16.6239
  28  15.891
  29  0.2178
  30  0.144777
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.086e+01  3.632e+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.139e+00  1.448e-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:  5.563e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.95e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/69608/likelihoodResults_246326401_246585601_4FGL_J2339.6+0242_daily_bin27.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) = 7642.20015703
delta logL = 0.269921238537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7642.19248306
delta logL = 0.277595208569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.704       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1532       1.0000          .0000       10.000    
     3 'Normalizat'    .52779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1524       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=   7642.192     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      299 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.706        42.920        .82273E-04    .11580E-03
   2  Index         3.1537        1.1542        .70031E-02    .52874E-04
   3  Normalizat    .52764        .20162        .38174E-03    .19158E-03
   4  Prefactor     1.1525        .14349        .19248E-03    .39995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7061
  Index      = 3.15375
  Normalizat = 0.527643
  Prefactor  = 1.15248
 **********
 **   18 **HESSE 
 **********

 FCN=   7642.192     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.706        33.524        .32909E-05   -1.4734    
   2  Index         3.1537        .90315        .28012E-03   -.37820    
   3  Normalizat    .52764        .20096        .15270E-04   -1.1115    
   4  Prefactor     1.1525        .14291        .38495E-04   -.87806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88334e-11
Minuit parameter uncertainties:
  1  33.5503
  2  0.908938
  3  0.201236
  4  0.142955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69608': 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) = 7642.19248211
delta logL = 0.277596151085

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.371e+01  3.355e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.154e+00  9.089e-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:  1.152e+00  1.430e-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:  5.276e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.15 +/- 0.91
Photon Flux (Free Index): 7.15e-08 +/- 5.68e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/69608/cmap_HighResolution_246326401_246585601_4FGL_J2339.6+0242_daily_bin27.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.95e-08', energy_flux2='1.33e-05', photon_flux_error='4.39e-08', dlogl='2.78e-01', energy_flux='1.36e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-09-30 02:46:37.173153', photon_index_error2='0.91', photon_index2='3.15', ts='1.77', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.02e-05', EG='0.56', time_epoch_completed='1632995197.17', return_code='0', job_id='69608', GAL2='1.15', EG2='0.53', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.68e-08', ts2='2.38', photon_index='2.55' WHERE bin_id='27' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 69608: <4FGL_J2339.6+0242_daily_bin27> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin27> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:12 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:30:13 2021
Terminated at Thu Sep 30 02:46:41 2021
Results reported at Thu Sep 30 02:46:41 2021

Your job looked like:

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

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

