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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin206
RA = 354.904, Dec = 2.7102
tmin = 292723201, tmax = 292982401
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='69922', job_status='RUN', time_executed='2021-09-30 02:32:46.897411', time_epoch_executed='1632994366.9' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69922/ft1_4FGL_J2339.6+0242_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69922/ft2_4FGL_J2339.6+0242_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69922/ft1_4FGL_J2339.6+0242_daily_bin206.fits outfile=/scratch/kocevski/69922/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin206.fits ra=354.904 dec=2.7102 rad=12.0 tmin=292723201.0 tmax=292982401.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 4.40
user 4.13
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69922/ft1_filtered_4FGL_J2339.6+0242_daily_bin206.fits" evtable="EVENTS" scfile=/scratch/kocevski/69922/ft2_4FGL_J2339.6+0242_daily_bin206.fits sctable="SC_DATA" outfile=/scratch/kocevski/69922/ltcube_292723201_292982401_4FGL_J2339.6+0242_daily_bin206.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/69922/ft2_4FGL_J2339.6+0242_daily_bin206.fits
.....................!
real 11.59
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69922/ft1_filtered_4FGL_J2339.6+0242_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/69922/ft2_4FGL_J2339.6+0242_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/69922/ltcube_292723201_292982401_4FGL_J2339.6+0242_daily_bin206.fits outfile=/scratch/kocevski/69922/expmap_292723201_292982401_4FGL_J2339.6+0242_daily_bin206.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/69922/ltcube_292723201_292982401_4FGL_J2339.6+0242_daily_bin206.fits
.....................!
real 190.01
user 185.38
sys 4.30

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/69922/ft1_filtered_4FGL_J2339.6+0242_daily_bin206.fits scfile=/scratch/kocevski/69922/ft2_4FGL_J2339.6+0242_daily_bin206.fits outfile=/scratch/kocevski/69922/cmap_292723201_292982401_4FGL_J2339.6+0242_daily_bin206.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69922/ft1_filtered_4FGL_J2339.6+0242_daily_bin206.fits scfile=/scratch/kocevski/69922/ft2_4FGL_J2339.6+0242_daily_bin206.fits outfile=/scratch/kocevski/69922/cmap_HighResolution_292723201_292982401_4FGL_J2339.6+0242_daily_bin206.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.994       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.592       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .19040E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.338       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9104       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .86384       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.616       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.706       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9489       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.161       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6421       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.392       1.0000         .10000E-03   10000.    
    22 'norm      '    20.832       1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    54.353       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.3461       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2142       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7323       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .63044       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=   5244.771     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     4452 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.994        10.488        .41681E-07    .89631E-05
   2  Prefactor     .10000E-03    24.562       -.15319E-06** at limit **
   3  Prefactor     15.883        23.321        .36124E-06   -.43268E-05
   4  Prefactor     .10000E-03    3.9706       -.31796E-07** at limit **
   5  norm          .10000E-03    1.9213        .49908E-07** at limit **
   6  norm          10.592        6.2670        .39318E-09   -.56895E-04
   7  Prefactor     .10000E-03    4.7931       -.89873E-07** at limit **
   8  norm          .10001E-03    8.1150        .14078E-06** at limit **
   9  Prefactor     27.344        41.116        .13103E-05    .28706E-04
  10  Prefactor     9.9103        19.866       -.21078E-06   -.17412E-04
  11  Prefactor     6.3644        13.831        .25722E-05   -.14883E-03
  12  Prefactor     .10000E-03    4.0024       -.41619E-07** at limit **
  13  norm          .86385        .90444       -.98858E-08   -.62853E-03
  14  norm          .10000E-03    3.0221       -.30373E-07** at limit **
  15  Prefactor     12.616        12.537       -.76310E-06   -.34222E-04
  16  Prefactor     33.692        60.321       -.35818E-05   -.65378E-04
  17  norm          3.9484        6.5845        .52715E-05   -.79137E-03
  18  Prefactor     .10000E-03    2.2549       -.21051E-06** at limit **
  19  Prefactor     31.331        306.33        .46317E-04    .82837E-04
  20  Prefactor     2.6406        8.4870       -.16607E-05   -.18529E-03
  21  Prefactor     12.392        25.253       -.64985E-06   -.14443E-04
  22  norm          20.832        18.165        .39441E-07   -.29147E-05
  23  norm          .10000E-03    10.197       -.24250E-07** at limit **
  24  Prefactor     .10000E-03    39.593       -.54865E-06** at limit **
  25  Prefactor     .10000E-03    1.3912        .19857E-06** at limit **
  26  Prefactor     54.361        54.571        .15834E-05    .44098E-04
  27  Prefactor     9.3427        30.488       -.22862E-06   -.20414E-04
  28  Prefactor     2.2076        71.221        .11860E-05   -.97197E-05
  29  Normalizat    1.7326        .25378       -.55126E-06   -.23628E-04
  30  Prefactor     .63027        .15793       -.12774E-05   -.12045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9936
  Prefactor  = 0.0001
  Prefactor  = 15.8831
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.592
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 27.3441
  Prefactor  = 9.91025
  Prefactor  = 6.36442
  Prefactor  = 0.0001
  norm       = 0.863845
  norm       = 0.0001
  Prefactor  = 12.6161
  Prefactor  = 33.6923
  norm       = 3.94838
  Prefactor  = 0.0001
  Prefactor  = 31.3311
  Prefactor  = 2.64058
  Prefactor  = 12.3922
  norm       = 20.832
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.3612
  Prefactor  = 9.34272
  Prefactor  = 2.20761
  Normalizat = 1.73263
  Prefactor  = 0.63027
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.771     FROM HESSE     STATUS=OK           592 CALLS     5044 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.994        10.492        .12083E-03   -1.5045    
   2  Prefactor     .10000E-03    24.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.883        23.471        .10049E-03   -1.4911    
   4  Prefactor     .10000E-03    3.9836        .14093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9595        .97797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.592        6.2715        .12311E-03   -1.5057    
   7  Prefactor     .10000E-03    4.7972        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    111.45        .39875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.344        41.136        .76620E-04   -1.4662    
  10  Prefactor     9.9103        19.881        .12729E-03   -1.5078    
  11  Prefactor     6.3644        13.869        .79551E-03   -1.5203    
  12  Prefactor     .10000E-03    4.0078        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .86385        .86357        .67163E-03   -1.5522    
  14  norm          .10000E-03    3.0460        .12294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.616        12.535        .11277E-03   -1.4997    
  16  Prefactor     33.692        60.508        .69022E-04   -1.4546    
  17  norm          3.9484        6.8782        .10150E-02   -1.5311    
  18  Prefactor     .10000E-03    2.2612        .10623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.331        348.62        .71778E-04   -1.4588    
  20  Prefactor     2.6406        8.5632        .25083E-03   -1.5383    
  21  Prefactor     12.392        25.229        .11379E-03   -1.5004    
  22  norm          20.832        18.164        .87755E-04   -1.4795    
  23  norm          .10000E-03    10.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    39.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.3929        .83369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     54.361        54.774        .54407E-04   -1.4232    
  27  Prefactor     9.3427        30.569        .13109E-03   -1.5097    
  28  Prefactor     2.2076        72.011        .27640E-03   -1.5411    
  29  Normalizat    1.7326        .30011        .25710E-03   -.71435    
  30  Prefactor     .63027        .18271        .26687E-03   -1.0633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25106e-09
Minuit parameter uncertainties:
  1  10.494
  2  1.29193e-05
  3  23.485
  4  9.93218e-07
  5  3.45696e-06
  6  6.27185
  7  2.31481e-06
  8  0.00176691
  9  41.1788
  10  19.8943
  11  13.8758
  12  1.73556e-06
  13  0.863584
  14  2.15487e-06
  15  12.5379
  16  60.6182
  17  6.87953
  18  1.31817e-05
  19  210.596
  20  8.56718
  21  25.2508
  22  18.1687
  23  2.94738e-05
  24  7.90594e-05
  25  9.3755e-06
  26  54.8252
  27  30.6201
  28  25.2494
  29  0.300423
  30  0.18288
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.436e+01  5.483e+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:  6.303e-01  1.829e-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.733e+00  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.58e-08 +/- 6.63e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.83e-05

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

Saving results to:
/scratch/kocevski/69922/likelihoodResults_292723201_292982401_4FGL_J2339.6+0242_daily_bin206.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) = 5244.41798234
delta logL = 0.353474630779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5244.37914072
delta logL = 0.392316247505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.516       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6574       1.0000          .0000       10.000    
     3 'Normalizat'    1.6706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66079       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=   5244.379     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      310 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.510        121.20        .98551E-04   -.31424E-03
   2  Index         3.6579        3.0460        .51841E-02   -.13325E-03
   3  Normalizat    1.6699        .28367        .26071E-03    .51443E-03
   4  Prefactor     .66124        .18604        .26083E-03    .51084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5099
  Index      = 3.65791
  Normalizat = 1.66992
  Prefactor  = 0.661236
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.379     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.510        36.387        .39420E-05   -1.4895    
   2  Index         3.6579        1.3199        .20736E-03   -.27175    
   3  Normalizat    1.6699        .27973        .52143E-04   -.73109    
   4  Prefactor     .66124        .18134        .52166E-04   -1.0507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64158e-10
Minuit parameter uncertainties:
  1  36.4361
  2  1.33696
  3  0.279997
  4  0.181506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69922': 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) = 5244.37913743
delta logL = 0.392319536381

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.651e+01  3.644e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.658e+00  1.337e+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:  6.612e-01  1.815e-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.670e+00  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.66 +/- 1.34
Photon Flux (Free Index): 1.14e-07 +/- 9.18e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.45e-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/69922/cmap_HighResolution_292723201_292982401_4FGL_J2339.6+0242_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='6.58e-08', energy_flux2='1.82e-05', photon_flux_error='6.63e-08', dlogl='3.92e-01', energy_flux='1.81e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-30 02:45:27.234539', photon_index_error2='1.34', photon_index2='3.66', ts='1.33', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='1.45e-05', EG='1.73', time_epoch_completed='1632995127.23', return_code='0', job_id='69922', GAL2='0.66', EG2='1.67', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='9.18e-08', ts2='2.19', photon_index='2.55' WHERE bin_id='206' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 69922: <4FGL_J2339.6+0242_daily_bin206> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin206> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:34 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:36 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:36 2021
Terminated at Thu Sep 30 02:45:28 2021
Results reported at Thu Sep 30 02:45:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin206 354.904 2.7102 292723201 292982401 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 :                                   758.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

