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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin159
RA = 354.904, Dec = 2.7102
tmin = 280540801, tmax = 280800001
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='69845', job_status='RUN', time_executed='2021-09-30 02:33:57.400080', time_epoch_executed='1632994437.4' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69845/ft1_4FGL_J2339.6+0242_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69845/ft2_4FGL_J2339.6+0242_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69845/ft1_4FGL_J2339.6+0242_daily_bin159.fits outfile=/scratch/kocevski/69845/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin159.fits ra=354.904 dec=2.7102 rad=12.0 tmin=280540801.0 tmax=280800001.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.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69845/ft2_4FGL_J2339.6+0242_daily_bin159.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/69845/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin159.fits evtable="EVENTS" outfile="/scratch/kocevski/69845/ft1_filtered_4FGL_J2339.6+0242_daily_bin159.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69845/ft1_filtered_4FGL_J2339.6+0242_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/69845/ft2_4FGL_J2339.6+0242_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/69845/ltcube_280540801_280800001_4FGL_J2339.6+0242_daily_bin159.fits outfile=/scratch/kocevski/69845/expmap_280540801_280800001_4FGL_J2339.6+0242_daily_bin159.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/69845/ltcube_280540801_280800001_4FGL_J2339.6+0242_daily_bin159.fits
.....................!
real 190.66
user 185.06
sys 5.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/69845/ft1_filtered_4FGL_J2339.6+0242_daily_bin159.fits scfile=/scratch/kocevski/69845/ft2_4FGL_J2339.6+0242_daily_bin159.fits outfile=/scratch/kocevski/69845/cmap_280540801_280800001_4FGL_J2339.6+0242_daily_bin159.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69845/ft1_filtered_4FGL_J2339.6+0242_daily_bin159.fits scfile=/scratch/kocevski/69845/ft2_4FGL_J2339.6+0242_daily_bin159.fits outfile=/scratch/kocevski/69845/cmap_HighResolution_280540801_280800001_4FGL_J2339.6+0242_daily_bin159.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.152       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.586       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9431       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7574       1.0000         .10000E-03   10000.    
     6 'norm      '    10.964       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5489       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .45287E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .33501E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    55.514       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.4112       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .54471       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0772       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=   6067.823     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3893 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42097        7.8567       -.36542E-05    .44945E-03
   2  Prefactor     49.163        56.128        .52390E-05    .15783E-03
   3  Prefactor     20.589        16.769       -.45647E-07   -.16442E-04
   4  Prefactor     3.9427        6.4476       -.13245E-05   -.19506E-03
   5  norm          1.7568        2.0560       -.26302E-06   -.44690E-03
   6  norm          10.964        4.8576       -.13082E-06   -.84477E-05
   7  Prefactor     .10000E-03    3.5023       -.13030E-06** at limit **
   8  norm          .10000E-03    13.824        .15255E-05** at limit **
   9  Prefactor     .10000E-03    31.075       -.40969E-05** at limit **
  10  Prefactor     .10000E-03    5.9373        .76256E-06** at limit **
  11  Prefactor     .10000E-03    10.689       -.71180E-05** at limit **
  12  Prefactor     .10000E-03    3.5922        .17670E-06** at limit **
  13  norm          .10000E-03    .39603       -.58770E-07** at limit **
  14  norm          1.5491        3.6666       -.86632E-06   -.75267E-03
  15  Prefactor     12.747        9.8172       -.43458E-07   -.55208E-04
  16  Prefactor     .10000E-03    13.926        .16040E-05** at limit **
  17  norm          6.6039        6.5457       -.31290E-06   -.10324E-03
  18  Prefactor     .10000E-03    4.0892       -.13432E-06** at limit **
  19  Prefactor     .10000E-03    48.798        .15097E-04** at limit **
  20  Prefactor     .10000E-03    3.2312        .17765E-06** at limit **
  21  Prefactor     .10000E-03    19.869        .47363E-05** at limit **
  22  norm          .10000E-03    69.094       -.18507E-04** at limit **
  23  norm          .10000E-03    6.4260       -.13939E-05** at limit **
  24  Prefactor     .10000E-03    25.069       -.74455E-05** at limit **
  25  Prefactor     .35403E-01    1.7200        .43857E-06   -.13809E-03
  26  Prefactor     55.478        39.600       -.27017E-04   -.32616E-04
  27  Prefactor     9.4155        20.496        .75647E-05   -.19531E-04
  28  Prefactor     .10000E-03    9.4220        .48003E-05** at limit **
  29  Normalizat    .54462        .18926        .87218E-05    .58708E-04
  30  Prefactor     1.0772        .12941       -.15966E-05    .53486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.420972
  Prefactor  = 49.1629
  Prefactor  = 20.5893
  Prefactor  = 3.9427
  norm       = 1.75684
  norm       = 10.9643
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.5491
  Prefactor  = 12.7469
  Prefactor  = 0.0001
  norm       = 6.60392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0354031
  Prefactor  = 55.4776
  Prefactor  = 9.41551
  Prefactor  = 0.0001
  Normalizat = 0.544621
  Prefactor  = 1.07725
 **********
 **   18 **HESSE 
 **********

 FCN=   6067.823     FROM HESSE     STATUS=OK           590 CALLS     4483 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42097        63.544        .40717E-02   -1.5578    
   2  Prefactor     49.163        55.982        .57198E-04   -1.4304    
   3  Prefactor     20.589        16.691        .88277E-04   -1.4800    
   4  Prefactor     3.9427        6.4309        .20315E-03   -1.5311    
   5  norm          1.7568        2.0304        .11094E-03   -1.5443    
   6  norm          10.964        4.8570        .11095E-03   -1.5046    
   7  Prefactor     .10000E-03    3.5099        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5986        .14411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .66631        .94617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5491        3.6353        .22233E-03   -1.5459    
  15  Prefactor     12.747        9.8027        .11220E-03   -1.4994    
  16  Prefactor     .10000E-03    13.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.6039        6.5303        .15618E-03   -1.5194    
  18  Prefactor     .10000E-03    4.1570        .15366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    48.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2374        .13670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    72.125        .38672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.4299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .35403E-01    3.7678        .34667E-01   -1.5670    
  26  Prefactor     55.478        39.628        .53838E-04   -1.4217    
  27  Prefactor     9.4155        20.475        .13064E-03   -1.5094    
  28  Prefactor     .10000E-03    9.4864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .54462        .20981        .33876E-03   -1.1039    
  30  Prefactor     1.0772        .14541        .17889E-03   -.90197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11175e-09
Minuit parameter uncertainties:
  1  10.3541
  2  56.0421
  3  16.6949
  4  6.432
  5  2.03051
  6  4.85722
  7  4.44399e-06
  8  8.90294e-05
  9  9.08911e-05
  10  1.30938e-05
  11  6.19703e-06
  12  4.13294e-06
  13  4.60255e-06
  14  3.63577
  15  9.80398
  16  5.13303e-05
  17  6.53099
  18  1.33433e-05
  19  9.09865e-07
  20  1.76388e-05
  21  5.40197e-05
  22  0.000388465
  23  1.07835e-05
  24  3.75069e-05
  25  0.729467
  26  39.6471
  27  20.4901
  28  1.56918e-05
  29  0.210114
  30  0.145459
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.548e+01  3.965e+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.077e+00  1.455e-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.446e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.81
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.71e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/69845/likelihoodResults_280540801_280800001_4FGL_J2339.6+0242_daily_bin159.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): 102
logL (Free Index) = 6065.02892948
delta logL = 2.79438055117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6064.99151644
delta logL = 2.83179359329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9067       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5460       1.0000          .0000       10.000    
     3 'Normalizat'    .43690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1293       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=   6064.992     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8946        33.638        .45395E-02    .15646E-02
   2  Index         4.5473        2.6378        .81464E-01    .42779E-03
   3  Normalizat    .43681        .77400E-01    .84716E-01    .52655E-04
   4  Prefactor     1.1293        .55469E-01    .36568E-01   -.39921E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.89458
  Index      = 4.54734
  Normalizat = 0.436805
  Prefactor  = 1.12934
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.992     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      293 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8946        45.342        .71040E-04   -1.5265    
   2  Index         4.5473        3.1515        .34114E-02   -.90656E-01
   3  Normalizat    .43681        .19499        .37529E-03   -1.1544    
   4  Prefactor     1.1293        .14117        .17499E-03   -.88534    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.26999e-10
Minuit parameter uncertainties:
  1  29.8242
  2  3.41235
  3  0.195297
  4  0.141213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69845': 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) = 6064.99151559
delta logL = 2.83179443857

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.895e+00  2.982e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.547e+00  3.412e+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.129e+00  1.412e-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:  4.368e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.10
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.55 +/- 3.41
Photon Flux (Free Index): 1.57e-07 +/- 6.91e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.31e-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/69845/cmap_HighResolution_280540801_280800001_4FGL_J2339.6+0242_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='6.71e-08', energy_flux2='2.18e-05', photon_flux_error='4.79e-08', dlogl='2.83e+00', energy_flux='1.85e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-30 02:46:38.126776', photon_index_error2='3.41', photon_index2='4.55', ts='2.81', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.31e-05', EG='0.54', time_epoch_completed='1632995198.13', return_code='0', job_id='69845', GAL2='1.13', EG2='0.44', return_code2='102', energy_flux_error='1.32e-05', photon_flux_error2='6.91e-08', ts2='9.10', photon_index='2.55' WHERE bin_id='159' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 69845: <4FGL_J2339.6+0242_daily_bin159> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin159 354.904 2.7102 280540801 280800001 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 :                                   759.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

