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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin494
RA = 354.904, Dec = 2.7102
tmin = 367372801, tmax = 367632001
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='71707', job_status='RUN', time_executed='2021-09-30 02:37:34.298585', time_epoch_executed='1632994654.3' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71707

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71707/ft1_4FGL_J2339.6+0242_daily_bin494.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71707/ft2_4FGL_J2339.6+0242_daily_bin494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71707/ft1_4FGL_J2339.6+0242_daily_bin494.fits outfile=/scratch/kocevski/71707/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin494.fits ra=354.904 dec=2.7102 rad=12.0 tmin=367372801.0 tmax=367632001.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 2.71
user 2.53
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71707/ft2_4FGL_J2339.6+0242_daily_bin494.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/71707/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin494.fits evtable="EVENTS" outfile="/scratch/kocevski/71707/ft1_filtered_4FGL_J2339.6+0242_daily_bin494.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.44
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71707/ft1_filtered_4FGL_J2339.6+0242_daily_bin494.fits" evtable="EVENTS" scfile=/scratch/kocevski/71707/ft2_4FGL_J2339.6+0242_daily_bin494.fits sctable="SC_DATA" outfile=/scratch/kocevski/71707/ltcube_367372801_367632001_4FGL_J2339.6+0242_daily_bin494.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/71707/ft2_4FGL_J2339.6+0242_daily_bin494.fits
.....................!
real 9.59
user 9.28
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71707/ft1_filtered_4FGL_J2339.6+0242_daily_bin494.fits evtable="EVENTS" scfile=/scratch/kocevski/71707/ft2_4FGL_J2339.6+0242_daily_bin494.fits sctable="SC_DATA" expcube=/scratch/kocevski/71707/ltcube_367372801_367632001_4FGL_J2339.6+0242_daily_bin494.fits outfile=/scratch/kocevski/71707/expmap_367372801_367632001_4FGL_J2339.6+0242_daily_bin494.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/71707/ltcube_367372801_367632001_4FGL_J2339.6+0242_daily_bin494.fits
.....................!
real 146.76
user 143.16
sys 3.36

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/71707/ft1_filtered_4FGL_J2339.6+0242_daily_bin494.fits scfile=/scratch/kocevski/71707/ft2_4FGL_J2339.6+0242_daily_bin494.fits outfile=/scratch/kocevski/71707/cmap_367372801_367632001_4FGL_J2339.6+0242_daily_bin494.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71707/ft1_filtered_4FGL_J2339.6+0242_daily_bin494.fits scfile=/scratch/kocevski/71707/ft2_4FGL_J2339.6+0242_daily_bin494.fits outfile=/scratch/kocevski/71707/cmap_HighResolution_367372801_367632001_4FGL_J2339.6+0242_daily_bin494.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.5100       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1353       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0571       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5759       1.0000         .10000E-03   10000.    
    14 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.791       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.911       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .87370       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35574E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.256       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1967       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12046E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.073       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.858       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.297       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77358       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96869       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=   5229.867     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3907 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.807        .10807E-04** at limit **
   2  Prefactor     .10000E-03    36.784        .18590E-04** at limit **
   3  Prefactor     .10003E-03    21.321       -.11037E-05** at limit **
   4  Prefactor     .10000E-03    3.2554        .26082E-07** at limit **
   5  norm          9.5021        4.5852       -.12299E-06    .35960E-03
   6  norm          .10000E-03    6.5019       -.85875E-06** at limit **
   7  Prefactor     4.1272        16.598        .23239E-05   -.30879E-04
   8  norm          .10000E-03    3.6989        .17211E-06** at limit **
   9  Prefactor     .10000E-03    10.328        .22774E-05** at limit **
  10  Prefactor     .10000E-03    3.4482       -.15668E-06** at limit **
  11  Prefactor     .10000E-03    12.033       -.34671E-05** at limit **
  12  Prefactor     4.0623        9.2026       -.10714E-05   -.16405E-03
  13  norm          2.5763        1.1397        .43221E-07    .27530E-03
  14  norm          .10000E-03    2.8331        .30814E-07** at limit **
  15  Prefactor     20.793        13.907        .30341E-06    .30800E-04
  16  Prefactor     34.904        52.137       -.74251E-05    .19474E-04
  17  norm          .10000E-03    2.8022        .38937E-07** at limit **
  18  Prefactor     .87462        3.7497       -.17353E-05   -.10487E-02
  19  Prefactor     .10000E-03    215.62       -.13417E-04** at limit **
  20  Prefactor     24.263        14.591       -.49797E-06    .44998E-03
  21  Prefactor     9.2054        24.328       -.98753E-06    .30324E-05
  22  norm          .10000E-03    6.1014        .49652E-06** at limit **
  23  norm          .10000E-03    32.987       -.16893E-04** at limit **
  24  Prefactor     19.075        50.473        .17097E-05    .55383E-06
  25  Prefactor     .10000E-03    4.1533        .50337E-07** at limit **
  26  Prefactor     39.850        34.303       -.36444E-05    .35362E-04
  27  Prefactor     14.299        16.948       -.78224E-07    .21358E-04
  28  Prefactor     .10000E-03    21.939       -.91618E-05** at limit **
  29  Normalizat    .77356        .22013        .19139E-05    .12583E-03
  30  Prefactor     .96862        .14433       -.50296E-07    .23073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 9.50207
  norm       = 0.0001
  Prefactor  = 4.12723
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.06226
  norm       = 2.57627
  norm       = 0.0001
  Prefactor  = 20.7926
  Prefactor  = 34.9041
  norm       = 0.0001
  Prefactor  = 0.874623
  Prefactor  = 0.0001
  Prefactor  = 24.2634
  Prefactor  = 9.2054
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.0746
  Prefactor  = 0.0001
  Prefactor  = 39.8501
  Prefactor  = 14.2989
  Prefactor  = 0.0001
  Normalizat = 0.773565
  Prefactor  = 0.968619
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.867     FROM HESSE     STATUS=OK           582 CALLS     4489 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    140.06        .58452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2658        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.5021        4.3003        .92824E-04   -1.5091    
   6  norm          .10000E-03    6.7169        .35945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1272        16.462        .19822E-03   -1.5302    
   8  norm          .10000E-03    3.7025        .13583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4542        .13115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0623        9.1898        .20018E-03   -1.5305    
  13  norm          2.5763        1.1382        .48907E-04   -1.5387    
  14  norm          .10000E-03    2.8380        .11857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.793        13.865        .87842E-04   -1.4796    
  16  Prefactor     34.904        52.135        .67824E-04   -1.4526    
  17  norm          .10000E-03    2.8091        .11812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .87462        3.8546        .27603E-03   -1.5521    
  19  Prefactor     .10000E-03    215.68        .21316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.263        14.476        .81334E-04   -1.4722    
  21  Prefactor     9.2054        24.235        .13216E-03   -1.5101    
  22  norm          .10000E-03    6.1024        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    32.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.075        50.473        .91710E-04   -1.4834    
  25  Prefactor     .10000E-03    4.2248        .28610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     39.850        34.367        .63489E-04   -1.4445    
  27  Prefactor     14.299        16.954        .10593E-03   -1.4952    
  28  Prefactor     .10000E-03    22.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77356        .25652        .31068E-03   -1.0106    
  30  Prefactor     .96862        .16962        .19777E-03   -.93783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28223e-09
Minuit parameter uncertainties:
  1  0.0001333
  2  3.84473e-05
  3  0.00442638
  4  3.45632e-06
  5  4.30044
  6  3.47095e-05
  7  16.4805
  8  8.70589e-07
  9  3.51543e-06
  10  7.88476e-07
  11  1.12866e-05
  12  9.19301
  13  1.13825
  14  7.18516e-06
  15  13.8673
  16  52.2035
  17  5.14271e-06
  18  3.67243
  19  0.000164791
  20  14.478
  21  24.261
  22  4.13403e-07
  23  0.000214819
  24  50.5864
  25  3.07307e-05
  26  34.384
  27  16.9594
  28  2.69444e-05
  29  0.256917
  30  0.169717
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
522   Normalization:  7.736e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.47
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/71707/likelihoodResults_367372801_367632001_4FGL_J2339.6+0242_daily_bin494.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) = 5229.62430936
delta logL = 0.243166744939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5229.61930278
delta logL = 0.248173320028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.760       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3642       1.0000          .0000       10.000    
     3 'Normalizat'    .71490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5229.619     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      286 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.802        274.56        .20990E-02    .10679E-03
   2  Index         3.3630        3.5174        .15556        .14247E-03
   3  Normalizat    .71383        .83426E-01    .72721E-01    .66830E-03
   4  Prefactor     .99486        .51031E-01    .46192E-01    .11474E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8019
  Index      = 3.36298
  Normalizat = 0.713833
  Prefactor  = 0.994858
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.619     FROM HESSE     STATUS=OK            29 CALLS      315 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.802        48.418        .83961E-04   -1.4753    
   2  Index         3.3630        1.5888        .52922E-02   -.33355    
   3  Normalizat    .71383        .25555        .32187E-03   -1.0335    
   4  Prefactor     .99486        .17406        .19538E-03   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05292e-09
Minuit parameter uncertainties:
  1  48.5012
  2  1.62037
  3  0.255977
  4  0.174154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71707': 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) = 5229.61928869
delta logL = 0.248187412645

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.280e+01  4.850e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.363e+00  1.620e+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:  9.949e-01  1.742e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  7.138e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.36 +/- 1.62
Photon Flux (Free Index): 9.63e-08 +/- 8.61e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.10e-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/71707/cmap_HighResolution_367372801_367632001_4FGL_J2339.6+0242_daily_bin494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.67e-05', photon_flux_error='4.16e-08', dlogl='2.48e-01', energy_flux='1.33e-05', photon_flux2='9.63e-08', job_status='DONE', time_completed='2021-09-30 02:46:39.254999', photon_index_error2='1.62', photon_index2='3.36', ts='3.47', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.10e-05', EG='0.77', time_epoch_completed='1632995199.26', return_code='0', job_id='71707', GAL2='0.99', EG2='0.71', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='8.61e-08', ts2='4.07', photon_index='2.55' WHERE bin_id='494' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 71707: <4FGL_J2339.6+0242_daily_bin494> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin494 354.904 2.7102 367372801 367632001 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 :                                   543.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            664 sec.

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

