/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 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin217
RA = 354.904, Dec = 2.7102
tmin = 295574401, tmax = 295833601
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='69938', job_status='RUN', time_executed='2021-09-30 02:30:58.174872', time_epoch_executed='1632994258.17' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69938

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69938/ft1_4FGL_J2339.6+0242_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69938/ft2_4FGL_J2339.6+0242_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69938/ft1_4FGL_J2339.6+0242_daily_bin217.fits outfile=/scratch/kocevski/69938/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin217.fits ra=354.904 dec=2.7102 rad=12.0 tmin=295574401.0 tmax=295833601.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.39
user 2.15
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69938/ft1_filtered_4FGL_J2339.6+0242_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/69938/ft2_4FGL_J2339.6+0242_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/69938/ltcube_295574401_295833601_4FGL_J2339.6+0242_daily_bin217.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/69938/ft2_4FGL_J2339.6+0242_daily_bin217.fits
.....................!
real 11.82
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69938/ft1_filtered_4FGL_J2339.6+0242_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/69938/ft2_4FGL_J2339.6+0242_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/69938/ltcube_295574401_295833601_4FGL_J2339.6+0242_daily_bin217.fits outfile=/scratch/kocevski/69938/expmap_295574401_295833601_4FGL_J2339.6+0242_daily_bin217.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/69938/ltcube_295574401_295833601_4FGL_J2339.6+0242_daily_bin217.fits
.....................!
real 191.11
user 185.77
sys 5.01

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/69938/ft1_filtered_4FGL_J2339.6+0242_daily_bin217.fits scfile=/scratch/kocevski/69938/ft2_4FGL_J2339.6+0242_daily_bin217.fits outfile=/scratch/kocevski/69938/cmap_295574401_295833601_4FGL_J2339.6+0242_daily_bin217.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69938/ft1_filtered_4FGL_J2339.6+0242_daily_bin217.fits scfile=/scratch/kocevski/69938/ft2_4FGL_J2339.6+0242_daily_bin217.fits outfile=/scratch/kocevski/69938/cmap_HighResolution_295574401_295833601_4FGL_J2339.6+0242_daily_bin217.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9299       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.7767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6058       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2445       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21638E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21691       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8372       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2581       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0763       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.261       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9428       1.0000         .10000E-03   10000.    
    22 'norm      '    8.8983       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.5581       1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.489       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19022       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.681       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .64991       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0946       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=   7830.955     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4049 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6520        .13848E-07** at limit **
   2  Prefactor     21.654        31.168       -.19398E-05   -.26046E-05
   3  Prefactor     8.9317        12.106       -.22960E-06   -.13658E-04
   4  Prefactor     .10000E-03    2.3608        .25983E-07** at limit **
   5  norm          .10000E-03    1.0330        .41850E-07** at limit **
   6  norm          4.7766        3.4648        .38594E-07   -.13421E-03
   7  Prefactor     8.6051        10.701       -.46185E-06   -.10346E-04
   8  norm          3.2398        10.273        .11453E-05   -.10865E-04
   9  Prefactor     .10000E-03    15.669        .60562E-07** at limit **
  10  Prefactor     .10000E-03    31.321        .26970E-06** at limit **
  11  Prefactor     .28549        9.9884       -.16663E-06   -.67906E-05
  12  Prefactor     2.8364        2.2566        .39649E-07   -.71789E-03
  13  norm          1.2579        .72493       -.38102E-08    .41671E-05
  14  norm          1.0766        2.7740       -.34188E-08   -.54898E-04
  15  Prefactor     .10000E-03    3.4954       -.59446E-07** at limit **
  16  Prefactor     27.249        40.771       -.28666E-05   -.76279E-06
  17  norm          .10000E-03    2.8158        .12319E-07** at limit **
  18  Prefactor     .10000E-03    4.7956       -.11872E-07** at limit **
  19  Prefactor     .10000E-03    74.076       -.27473E-06** at limit **
  20  Prefactor     .10000E-03    7.7433       -.14326E-07** at limit **
  21  Prefactor     4.9474        18.129        .24942E-07   -.89187E-04
  22  norm          8.8977        9.1943        .95176E-07    .40083E-05
  23  norm          .10000E-03    19.824        .20060E-06** at limit **
  24  Prefactor     4.5505        60.347       -.71843E-05   -.29241E-05
  25  Prefactor     25.489        5.6416        .39617E-07    .20580E-04
  26  Prefactor     .10000E-03    28.050       -.49187E-07** at limit **
  27  Prefactor     .10003E-03    13.094       -.10040E-06** at limit **
  28  Prefactor     14.679        15.424       -.86573E-06   -.44577E-05
  29  Normalizat    .65011        .17760        .65857E-06    .78633E-05
  30  Prefactor     1.0945        .11995       -.25726E-07    .45188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.654
  Prefactor  = 8.93167
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.77656
  Prefactor  = 8.60508
  norm       = 3.23983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.285492
  Prefactor  = 2.83637
  norm       = 1.25788
  norm       = 1.0766
  Prefactor  = 0.0001
  Prefactor  = 27.2494
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94742
  norm       = 8.89767
  norm       = 0.0001
  Prefactor  = 4.5505
  Prefactor  = 25.489
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 14.6791
  Normalizat = 0.650114
  Prefactor  = 1.09452
 **********
 **   18 **HESSE 
 **********

 FCN=   7830.955     FROM HESSE     STATUS=OK           612 CALLS     4661 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.654        31.177        .86064E-04   -1.4777    
   3  Prefactor     8.9317        11.867        .13413E-03   -1.5110    
   4  Prefactor     .10000E-03    2.3764        .13276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5693        .16929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7766        3.4818        .67509E-03   -1.5271    
   7  Prefactor     8.6051        10.693        .13664E-03   -1.5121    
   8  norm          3.2398        10.269        .22486E-03   -1.5348    
   9  Prefactor     .10000E-03    15.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .28549        12.345        .86025E-01   -1.5601    
  12  Prefactor     2.8364        4.5072        .11491E-02   -1.5371    
  13  norm          1.2579        .71229        .54786E-04   -1.5484    
  14  norm          1.0766        2.3650        .22565E-02   -1.5500    
  15  Prefactor     .10000E-03    8.4543        .31802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.249        40.763        .76728E-04   -1.4663    
  17  norm          .10000E-03    2.8265        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    74.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9474        19.525        .90450E-03   -1.5263    
  22  norm          8.8977        9.1964        .13437E-03   -1.5111    
  23  norm          .10000E-03    19.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.5505        60.257        .18855E-03   -1.5281    
  25  Prefactor     25.489        5.6400        .79345E-04   -1.4698    
  26  Prefactor     .10000E-03    28.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10003E-03    19.198        .87226E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.679        15.462        .10453E-03   -1.4942    
  29  Normalizat    .65011        .19825        .33088E-03   -1.0590    
  30  Prefactor     1.0945        .13552        .18905E-03   -.89642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1217e-08
Minuit parameter uncertainties:
  1  3.80948e-06
  2  31.2009
  3  11.8697
  4  1.84754e-06
  5  4.07107e-06
  6  3.48197
  7  10.6958
  8  10.2742
  9  4.7526e-06
  10  4.00633e-05
  11  3.75483
  12  4.50776
  13  0.712299
  14  2.36516
  15  7.65485e-06
  16  40.8047
  17  1.53041e-06
  18  5.5164e-06
  19  5.94384e-08
  20  5.57247e-06
  21  19.5497
  22  9.19787
  23  4.15629e-06
  24  33.1585
  25  5.64014
  26  7.61945e-06
  27  0.00143416
  28  15.4658
  29  0.19847
  30  0.135562
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  7.619e-06  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.095e+00  1.356e-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:  6.501e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 7.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69938/likelihoodResults_295574401_295833601_4FGL_J2339.6+0242_daily_bin217.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) = 7830.95563558
delta logL = -0.000169124269632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7830.95546664
delta logL = -1.78499249159e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1186       1.0000          .0000       10.000    
     3 'Normalizat'    .65011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0945       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=   7830.955     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      279 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    242.93        .18142E-02** at limit **
   2  Index         3.0756        5.2667        .50000        .37675E-05
   3  Normalizat    .65011        .12912E-01    .33088E-03    .34187E-04
   4  Prefactor     1.0945        .94359E-02    .18905E-03    .41758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100632
  Index      = 3.07558
  Normalizat = 0.650114
  Prefactor  = 1.09452
 **********
 **   18 **HESSE 
 **********

 FCN=   7830.955     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10063E-03    1090.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0756        5.6083        .50000       -.39508    
   3  Normalizat    .65011        .28861E-01    .13235E-04   -1.0590    
   4  Prefactor     1.0945        .21089E-01    .37811E-04   -.89642    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17537e-08
Minuit parameter uncertainties:
  1  0.0535175
  2  1372.34
  3  0.028862
  4  0.0210893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69938': 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) = 7830.95546661
delta logL = -1.52725078806e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.006e-04  5.352e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.076e+00  1.372e+03  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.095e+00  2.109e-02  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:  6.501e-01  2.886e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-30 02:46:20.392262', job_id='69938', GAL2='1.09', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632995180.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-1.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='217' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 69938: <4FGL_J2339.6+0242_daily_bin217> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin217 354.904 2.7102 295574401 295833601 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 :                                   916.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            946 sec.

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

