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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin829
RA = 354.904, Dec = 2.7102
tmin = 454204801, tmax = 454464001
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='73246', job_status='RUN', time_executed='2021-09-30 02:42:44.059491', time_epoch_executed='1632994964.06' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73246

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73246/ft1_4FGL_J2339.6+0242_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73246/ft2_4FGL_J2339.6+0242_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73246/ft1_4FGL_J2339.6+0242_daily_bin829.fits outfile=/scratch/kocevski/73246/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin829.fits ra=354.904 dec=2.7102 rad=12.0 tmin=454204801.0 tmax=454464001.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.53
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73246/ft1_filtered_4FGL_J2339.6+0242_daily_bin829.fits" evtable="EVENTS" scfile=/scratch/kocevski/73246/ft2_4FGL_J2339.6+0242_daily_bin829.fits sctable="SC_DATA" outfile=/scratch/kocevski/73246/ltcube_454204801_454464001_4FGL_J2339.6+0242_daily_bin829.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/73246/ft2_4FGL_J2339.6+0242_daily_bin829.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73246/ft1_filtered_4FGL_J2339.6+0242_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/73246/ft2_4FGL_J2339.6+0242_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/73246/ltcube_454204801_454464001_4FGL_J2339.6+0242_daily_bin829.fits outfile=/scratch/kocevski/73246/expmap_454204801_454464001_4FGL_J2339.6+0242_daily_bin829.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/73246/ltcube_454204801_454464001_4FGL_J2339.6+0242_daily_bin829.fits
.....................!
real 192.29
user 186.92
sys 5.04

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/73246/ft1_filtered_4FGL_J2339.6+0242_daily_bin829.fits scfile=/scratch/kocevski/73246/ft2_4FGL_J2339.6+0242_daily_bin829.fits outfile=/scratch/kocevski/73246/cmap_454204801_454464001_4FGL_J2339.6+0242_daily_bin829.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73246/ft1_filtered_4FGL_J2339.6+0242_daily_bin829.fits scfile=/scratch/kocevski/73246/ft2_4FGL_J2339.6+0242_daily_bin829.fits outfile=/scratch/kocevski/73246/cmap_HighResolution_454204801_454464001_4FGL_J2339.6+0242_daily_bin829.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/73246/ft1_filtered_4FGL_J2339.6+0242_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/73246/ft2_4FGL_J2339.6+0242_daily_bin829.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73246/Model_4FGL_J2339.6+0242_daily_bin829.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/73246/ft1_filtered_4FGL_J2339.6+0242_daily_bin829.fits.....................!
real 65.07
user 63.74
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.733       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2278       1.0000         .10000E-03   10000.    
     6 'norm      '    7.5819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.1212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.174       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.258       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .27538       1.0000         .10000E-03   10000.    
    14 'norm      '    .66477E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.211       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.136       1.0000         .10000E-03   10000.    
    17 'norm      '    .10541E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7562       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.328       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.653       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13488E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.683       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.462       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95679       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97212       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=   6177.978     FROM MIGRAD    STATUS=CONVERGED   1354 CALLS     4546 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.733        12.224        .97912E-04   -.43519E-04
   2  Prefactor     .10000E-03    14.640        .18142E-02** at limit **
   3  Prefactor     .10000E-03    13.749        .18142E-02** at limit **
   4  Prefactor     .10000E-03    1.9393        .10679E-02** at limit **
   5  norm          2.2280        1.8766        .95597E-04   -.98825E-04
   6  norm          7.5816        4.7295        .13083E-03   -.22680E-04
   7  Prefactor     .10000E-03    3.7832        .14918E-02** at limit **
   8  norm          7.1212        10.603        .15032E-03   -.16260E-04
   9  Prefactor     16.175        22.959        .99588E-04   -.15411E-04
  10  Prefactor     6.2112        12.836        .80535E-03   -.19354E-04
  11  Prefactor     33.259        22.052        .69484E-04   -.47775E-04
  12  Prefactor     .10000E-03    4.4021        .16076E-02** at limit **
  13  norm          .27540        .87747        .99860E-03    .61679E-02
  14  norm          .10001E-03    4.7006        .51056E-01** at limit **
  15  Prefactor     12.209        11.098        .11463E-03   -.14945E-03
  16  Prefactor     11.126        30.165        .12006E-03   -.34847E-04
  17  norm          .10000E-03    14.825        .36285E-03** at limit **
  18  Prefactor     5.7486        7.9773        .83704E-03   -.25924E-03
  19  Prefactor     .10000E-03    88.413        .18142E-02** at limit **
  20  Prefactor     .10000E-03    6.1600        .18142E-02** at limit **
  21  Prefactor     63.321        32.253        .50426E-04   -.12071E-03
  22  norm          .10000E-03    4.4571        .16206E-02** at limit **
  23  norm          14.645        16.139        .10463E-03   -.41316E-03
  24  Prefactor     .10000E-03    93.815        .18142E-02** at limit **
  25  Prefactor     .10002E-03    9.0821        .21625E-02** at limit **
  26  Prefactor     21.682        35.240        .86018E-04   -.73617E-04
  27  Prefactor     .10000E-03    11.460        .18142E-02** at limit **
  28  Prefactor     30.461        16.169        .72594E-04   -.17825E-03
  29  Normalizat    .95680        .24010        .29689E-03   -.44297E-03
  30  Prefactor     .97209        .16266        .20939E-03   -.43311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22796
  norm       = 7.58159
  Prefactor  = 0.0001
  norm       = 7.12116
  Prefactor  = 16.1745
  Prefactor  = 6.2112
  Prefactor  = 33.259
  Prefactor  = 0.0001
  norm       = 0.275401
  norm       = 0.000100006
  Prefactor  = 12.2086
  Prefactor  = 11.1257
  norm       = 0.0001
  Prefactor  = 5.74861
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 63.3209
  norm       = 0.0001
  norm       = 14.6453
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 21.6816
  Prefactor  = 0.0001
  Prefactor  = 30.4615
  Normalizat = 0.956804
  Prefactor  = 0.972092
 **********
 **   18 **HESSE 
 **********

 FCN=   6177.978     FROM HESSE     STATUS=OK           570 CALLS     5116 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.733        12.224        .19582E-04   -1.4890    
   2  Prefactor     .10000E-03    14.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9393        .21357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2280        1.8765        .38239E-05   -1.5409    
   6  norm          7.5816        4.7294        .52332E-05   -1.5157    
   7  Prefactor     .10000E-03    3.7834        .29835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.1212        10.603        .60128E-05   -1.5174    
   9  Prefactor     16.175        22.958        .39835E-05   -1.4903    
  10  Prefactor     6.2112        12.834        .32214E-04   -1.5209    
  11  Prefactor     33.259        22.051        .27794E-05   -1.4554    
  12  Prefactor     .10000E-03    4.4025        .32152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27540        .87579        .19972E-03   -1.5603    
  14  norm          .10001E-03    4.6491        .51467E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.209        11.097        .45854E-05   -1.5009    
  16  Prefactor     11.126        30.166        .48023E-05   -1.5041    
  17  norm          .10000E-03    14.825        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7486        7.9710        .33482E-04   -1.5228    
  19  Prefactor     .10000E-03    88.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.321        32.248        .10085E-04   -1.4115    
  22  norm          .10000E-03    4.4571        .32413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.645        16.130        .20927E-04   -1.4942    
  24  Prefactor     .10000E-03    93.834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    9.1304        .43250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.682        35.233        .34407E-05   -1.4776    
  27  Prefactor     .10000E-03    11.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     30.461        16.169        .14519E-04   -1.4604    
  29  Normalizat    .95680        .24007        .59378E-04   -.94492    
  30  Prefactor     .97209        .16277        .41879E-04   -.93666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23877e-09
Minuit parameter uncertainties:
  1  12.2258
  2  2.02653e-06
  3  2.16838e-05
  4  1.64067e-06
  5  1.87654
  6  4.72966
  7  2.84472e-06
  8  10.606
  9  22.9703
  10  12.8394
  11  22.0569
  12  9.77595e-06
  13  0.875835
  14  0.000326518
  15  11.099
  16  30.2078
  17  0.000116493
  18  7.9725
  19  0.000561117
  20  2.22993e-05
  21  32.2564
  22  1.84486e-06
  23  16.1348
  24  0.000305088
  25  0.000930525
  26  35.267
  27  3.9858e-05
  28  16.1713
  29  0.240337
  30  0.16285
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.568e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/73246/likelihoodResults_454204801_454464001_4FGL_J2339.6+0242_daily_bin829.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) = 6177.2771983
delta logL = 0.700989211877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6177.27443952
delta logL = 0.703747982623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9673       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6913       1.0000          .0000       10.000    
     3 'Normalizat'    .87801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0103       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=   6177.274     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      313 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9429        26.684        .73916E-02   -.23023E-02
   2  Index         4.6981        2.9739        .15091       -.24327E-03
   3  Normalizat    .87813        .54475E-01    .69704E-01   -.22668E-03
   4  Prefactor     1.0102        .38567E-01    .43283E-01   -.23033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94293
  Index      = 4.69806
  Normalizat = 0.87813
  Prefactor  = 1.01018
 **********
 **   18 **HESSE 
 **********

 FCN=   6177.274     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      344 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9429        60.740        .83994E-04   -1.5429    
   2  Index         4.6981        7.2666        .51841E-02   -.60424E-01
   3  Normalizat    .87813        .20361        .30840E-03   -.97233    
   4  Prefactor     1.0102        .14350        .20584E-03   -.92391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15133e-09
Minuit parameter uncertainties:
  1  21.7504
  2  6.25306
  3  0.203786
  4  0.143556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73246': 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): 102
logL (Free Index) = 6177.27443559
delta logL = 0.703751915486

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.943e+00  2.175e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.698e+00  6.253e+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:  1.010e+00  1.436e-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:  8.781e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.70 +/- 6.25
Photon Flux (Free Index): 8.15e-08 +/- 6.50e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.14e-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/73246/cmap_HighResolution_454204801_454464001_4FGL_J2339.6+0242_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-03', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='7.04e-01', photon_flux2='8.15e-08', job_status='DONE', time_completed='2021-09-30 02:57:02.389441', photon_index_error2='6.25', photon_index2='4.70', ts='0.47', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.14e-05', EG='0.96', time_epoch_completed='1632995822.39', return_code='0', job_id='73246', GAL2='1.01', EG2='0.88', return_code2='102', photon_flux_error2='6.50e-08', ts2='2.03', photon_index='2.55' WHERE bin_id='829' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:57:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 73246: <4FGL_J2339.6+0242_daily_bin829> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin829> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:37 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:39 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:40:39 2021
Terminated at Thu Sep 30 02:57:03 2021
Results reported at Thu Sep 30 02:57:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin829 354.904 2.7102 454204801 454464001 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 :                                   853.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

