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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin959
RA = 354.904, Dec = 2.7102
tmin = 487900801, tmax = 488160001
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='74517', job_status='RUN', time_executed='2021-09-30 02:45:23.863414', time_epoch_executed='1632995123.86' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74517/ft1_4FGL_J2339.6+0242_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74517/ft2_4FGL_J2339.6+0242_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74517/ft1_4FGL_J2339.6+0242_daily_bin959.fits outfile=/scratch/kocevski/74517/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin959.fits ra=354.904 dec=2.7102 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.06
user 5.80
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74517/ft2_4FGL_J2339.6+0242_daily_bin959.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/74517/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/74517/ft1_filtered_4FGL_J2339.6+0242_daily_bin959.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/74517/ft1_filtered_4FGL_J2339.6+0242_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/74517/ft2_4FGL_J2339.6+0242_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/74517/ltcube_487900801_488160001_4FGL_J2339.6+0242_daily_bin959.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/74517/ft2_4FGL_J2339.6+0242_daily_bin959.fits
.....................!
real 12.26
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74517/ft1_filtered_4FGL_J2339.6+0242_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/74517/ft2_4FGL_J2339.6+0242_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/74517/ltcube_487900801_488160001_4FGL_J2339.6+0242_daily_bin959.fits outfile=/scratch/kocevski/74517/expmap_487900801_488160001_4FGL_J2339.6+0242_daily_bin959.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/74517/ltcube_487900801_488160001_4FGL_J2339.6+0242_daily_bin959.fits
.....................!
real 189.70
user 184.89
sys 4.42

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/74517/ft1_filtered_4FGL_J2339.6+0242_daily_bin959.fits scfile=/scratch/kocevski/74517/ft2_4FGL_J2339.6+0242_daily_bin959.fits outfile=/scratch/kocevski/74517/cmap_487900801_488160001_4FGL_J2339.6+0242_daily_bin959.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74517/ft1_filtered_4FGL_J2339.6+0242_daily_bin959.fits scfile=/scratch/kocevski/74517/ft2_4FGL_J2339.6+0242_daily_bin959.fits outfile=/scratch/kocevski/74517/cmap_HighResolution_487900801_488160001_4FGL_J2339.6+0242_daily_bin959.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28902E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
     5 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.297       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.7350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8179       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10920E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7910       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    398.47       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10940E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    33.594       1.0000         .10000E-03   10000.    
    23 'norm      '    29.736       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12869       1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.769       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.076       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92704       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0838       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=   3313.689     FROM MIGRAD    STATUS=CONVERGED   1389 CALLS     4535 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.680        15.790        .98061E-04   -.82893E-05
   2  Prefactor     .10000E-03    32.725        .18142E-02** at limit **
   3  Prefactor     .10000E-03    90.125        .47207E-02** at limit **
   4  Prefactor     10.537        9.9072        .12339E-03   -.20500E-03
   5  norm          .10000E-03    1.6556        .71949E-03** at limit **
   6  norm          13.290        9.4194        .10984E-03   -.15002E-03
   7  Prefactor     .10000E-03    5.7538        .13483E-02** at limit **
   8  norm          7.7398        22.849        .14418E-03    .80426E-04
   9  Prefactor     7.8223        187.84        .14341E-03   -.33810E-04
  10  Prefactor     .10000E-03    26.739        .18142E-02** at limit **
  11  Prefactor     .10000E-03    13.704        .18142E-02** at limit **
  12  Prefactor     .10000E-03    13.827        .18142E-02** at limit **
  13  norm          .10000E-03    2.4693        .11564E-02** at limit **
  14  norm          .10001E-03    18.130        .28721E-02** at limit **
  15  Prefactor     9.7923        14.829        .12806E-03   -.56617E-03
  16  Prefactor     .10000E-03    32.356        .18142E-02** at limit **
  17  norm          .10000E-03    6.8070        .14652E-02** at limit **
  18  Prefactor     .10001E-03    18.353        .18142E-02** at limit **
  19  Prefactor     400.04        428.02        .10225E-03   -.77774E-04
  20  Prefactor     .10000E-03    18.535        .18142E-02** at limit **
  21  Prefactor     .10005E-03    137.24        .20702E-02** at limit **
  22  norm          33.595        32.533        .69136E-04   -.12461E-03
  23  norm          29.872        36.533        .73473E-04   -.24901E-03
  24  Prefactor     .10000E-03    30.851        .18142E-02** at limit **
  25  Prefactor     .15817E-01    31.969        .36871E-01    .10038E-03
  26  Prefactor     40.850        55.197        .62779E-04   -.21914E-03
  27  Prefactor     .10000E-03    42.236        .18142E-02** at limit **
  28  Prefactor     17.075        23.470        .48461E-03   -.20249E-03
  29  Normalizat    .92784        .35668        .31877E-03   -.37640E-03
  30  Prefactor     1.0833        .23469        .20936E-03   -.75013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6796
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 10.537
  norm       = 0.0001
  norm       = 13.29
  Prefactor  = 0.0001
  norm       = 7.73979
  Prefactor  = 7.82227
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 9.7923
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 400.038
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  norm       = 33.5949
  norm       = 29.8722
  Prefactor  = 0.0001
  Prefactor  = 0.0158167
  Prefactor  = 40.8501
  Prefactor  = 0.000100002
  Prefactor  = 17.0745
  Normalizat = 0.927842
  Prefactor  = 1.08331
 **********
 **   18 **HESSE 
 **********

 FCN=   3313.689     FROM HESSE     STATUS=OK           566 CALLS     5101 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.680        15.790        .39224E-05   -1.4891    
   2  Prefactor     .10000E-03    32.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    91.080        .94414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.537        9.9057        .49357E-05   -1.5059    
   5  norm          .10000E-03    1.6557        .14390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.290        9.4169        .43938E-05   -1.4979    
   7  Prefactor     .10000E-03    5.7539        .26965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7398        22.845        .57673E-05   -1.5151    
   9  Prefactor     7.8223        188.09        .57364E-05   -1.5149    
  10  Prefactor     .10000E-03    26.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4803        .23128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    18.275        .57442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7923        14.826        .25613E-04   -1.5082    
  16  Prefactor     .10000E-03    32.356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.8073        .29303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    18.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     400.04        418.68        .20450E-04   -1.1681    
  20  Prefactor     .10000E-03    18.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    137.36        .41405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          33.595        32.533        .13827E-04   -1.4548    
  23  norm          29.872        35.211        .14695E-04   -1.4614    
  24  Prefactor     .10000E-03    30.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .15817E-01    15.164        .52390E-01   -1.5683    
  26  Prefactor     40.850        55.194        .12556E-04   -1.4429    
  27  Prefactor     .10000E-03    42.252        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.075        23.467        .19384E-04   -1.4881    
  29  Normalizat    .92784        .35467        .63755E-04   -.95489    
  30  Prefactor     1.0833        .23444        .41872E-04   -.90002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68787e-09
Minuit parameter uncertainties:
  1  15.7938
  2  7.71829e-05
  3  0.00135158
  4  9.90727
  5  1.18844e-05
  6  9.41799
  7  2.43268e-05
  8  22.8712
  9  76.9871
  10  0.000293302
  11  6.28011e-05
  12  0.00019216
  13  8.38959e-06
  14  0.000762713
  15  14.8316
  16  2.18819e-05
  17  8.37693e-05
  18  0.000649561
  19  421.933
  20  4.44501e-05
  21  0.00532671
  22  32.5498
  23  35.2353
  24  4.24966e-05
  25  0.976625
  26  55.2626
  27  0.000550829
  28  23.4796
  29  0.355572
  30  0.234663
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.085e+01  5.526e+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.083e+00  2.347e-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.278e-01  3.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74517/likelihoodResults_487900801_488160001_4FGL_J2339.6+0242_daily_bin959.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) = 3313.65257408
delta logL = 0.0363758044678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3313.65136059
delta logL = 0.0375892999732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.040       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2949       1.0000          .0000       10.000    
     3 'Normalizat'    .93686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0785       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=   3313.651     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      292 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.212        70.468        .28345E-03   -.73597E-05
   2  Index         2.2976        .87070        .83888E-02    .39932E-05
   3  Normalizat    .93674        .32597        .31737E-03   -.49792E-05
   4  Prefactor     1.0784        .23040        .20975E-03   -.68023E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.2117
  Index      = 2.29763
  Normalizat = 0.936744
  Prefactor  = 1.07836
 **********
 **   18 **HESSE 
 **********

 FCN=   3313.651     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.212        69.410        .11338E-04   -1.4290    
   2  Index         2.2976        .85753        .33555E-03   -.57100    
   3  Normalizat    .93674        .32615        .12695E-04   -.95181    
   4  Prefactor     1.0784        .23052        .83900E-05   -.90161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83065e-13
Minuit parameter uncertainties:
  1  69.5223
  2  0.863582
  3  0.326838
  4  0.230734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74517': 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) = 3313.65134845
delta logL = 0.0376014395902

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.021e+01  6.952e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.298e+00  8.636e-01  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.078e+00  2.307e-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.367e-01  3.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
Ra Dec: 354.904 2.710

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/74517/cmap_HighResolution_487900801_488160001_4FGL_J2339.6+0242_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', job_status='DONE', photon_flux_upper_limit='2.12e-07', time_completed='2021-09-30 02:58:41.081707', job_id='74517', GAL2='1.08', fit_tolerance='1e-08', EG2='0.94', EG='0.93', time_epoch_completed='1632995921.08', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.76e-02', ts2='0.86', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='959' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:58:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 74517: <4FGL_J2339.6+0242_daily_bin959> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin959 354.904 2.7102 487900801 488160001 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 :                                   597.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

