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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin760
RA = 354.904, Dec = 2.7102
tmin = 436320001, tmax = 436579201
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='73137', job_status='RUN', time_executed='2021-09-30 02:42:48.171007', time_epoch_executed='1632994968.17' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73137/ft1_4FGL_J2339.6+0242_daily_bin760.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73137/ft2_4FGL_J2339.6+0242_daily_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73137/ft1_4FGL_J2339.6+0242_daily_bin760.fits outfile=/scratch/kocevski/73137/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin760.fits ra=354.904 dec=2.7102 rad=12.0 tmin=436320001.0 tmax=436579201.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 5.27
user 4.98
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73137/ft1_filtered_4FGL_J2339.6+0242_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/73137/ft2_4FGL_J2339.6+0242_daily_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/73137/ltcube_436320001_436579201_4FGL_J2339.6+0242_daily_bin760.fits outfile=/scratch/kocevski/73137/expmap_436320001_436579201_4FGL_J2339.6+0242_daily_bin760.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/73137/ltcube_436320001_436579201_4FGL_J2339.6+0242_daily_bin760.fits
.....................!
real 190.69
user 185.03
sys 5.27

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/73137/ft1_filtered_4FGL_J2339.6+0242_daily_bin760.fits scfile=/scratch/kocevski/73137/ft2_4FGL_J2339.6+0242_daily_bin760.fits outfile=/scratch/kocevski/73137/cmap_436320001_436579201_4FGL_J2339.6+0242_daily_bin760.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73137/ft1_filtered_4FGL_J2339.6+0242_daily_bin760.fits scfile=/scratch/kocevski/73137/ft2_4FGL_J2339.6+0242_daily_bin760.fits outfile=/scratch/kocevski/73137/cmap_HighResolution_436320001_436579201_4FGL_J2339.6+0242_daily_bin760.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1726       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9745       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28139E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    35.820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9002       1.0000         .10000E-03   10000.    
    14 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.782       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0971       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83006E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6147       1.0000         .10000E-03   10000.    
    21 'Prefactor '    122.03       1.0000         .10000E-03   10000.    
    22 'norm      '    29.342       1.0000         .10000E-03   10000.    
    23 'norm      '    .10487E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15594E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.881       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.496       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .22501       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0860       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=   2571.711     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3936 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.111        .32144E-06** at limit **
   2  Prefactor     3.1831        401.85        .18939E-04   -.10760E-04
   3  Prefactor     48.329        28.146        .70982E-06   -.12177E-07
   4  Prefactor     .10000E-03    13.831        .82180E-06** at limit **
   5  norm          5.9753        4.6333        .58265E-06   -.86155E-04
   6  norm          .10000E-03    2.6136        .17138E-06** at limit **
   7  Prefactor     .10003E-03    14.497        .22224E-05** at limit **
   8  norm          35.818        30.461        .18140E-05    .41912E-04
   9  Prefactor     .10000E-03    48.298        .47027E-06** at limit **
  10  Prefactor     .10000E-03    13.009        .16567E-06** at limit **
  11  Prefactor     .10000E-03    39.762        .83914E-06** at limit **
  12  Prefactor     .10000E-03    11.751        .32198E-06** at limit **
  13  norm          2.9009        2.0668        .64137E-07    .13913E-02
  14  norm          .10000E-03    13.281        .42355E-06** at limit **
  15  Prefactor     .10000E-03    20.557        .13472E-06** at limit **
  16  Prefactor     .10000E-03    44.134        .22899E-06** at limit **
  17  norm          18.813        19.160        .67427E-06    .93590E-04
  18  Prefactor     5.0922        11.705        .12754E-05   -.46959E-05
  19  Prefactor     .10038E-03    6232.1       -.13560E-04** at limit **
  20  Prefactor     7.5784        16.292       -.20260E-06    .23003E-03
  21  Prefactor     121.98        55.830        .15130E-05   -.81805E-04
  22  norm          29.342        29.281        .35268E-06    .20854E-04
  23  norm          .10000E-03    36.478        .16509E-06** at limit **
  24  Prefactor     .10000E-03    35.376        .87379E-07** at limit **
  25  Prefactor     .10001E-03    5.8737        .18652E-05** at limit **
  26  Prefactor     .10000E-03    22.337       -.40149E-07** at limit **
  27  Prefactor     15.893        24.542        .18879E-05    .40625E-04
  28  Prefactor     23.472        29.752        .27262E-05   -.88174E-04
  29  Normalizat    .22522        .34757       -.40008E-04   -.18231E-04
  30  Prefactor     1.0858        .23768        .10294E-04    .17082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.18309
  Prefactor  = 48.3288
  Prefactor  = 0.0001
  norm       = 5.97529
  norm       = 0.0001
  Prefactor  = 0.000100033
  norm       = 35.8183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.90091
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.8132
  Prefactor  = 5.09217
  Prefactor  = 0.000100385
  Prefactor  = 7.57836
  Prefactor  = 121.98
  norm       = 29.3416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 15.8932
  Prefactor  = 23.4724
  Normalizat = 0.225222
  Prefactor  = 1.08584
 **********
 **   18 **HESSE 
 **********

 FCN=   2571.711     FROM HESSE     STATUS=OK           588 CALLS     4524 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1831        399.39        .22753E-03   -1.5351    
   3  Prefactor     48.329        28.159        .57685E-04   -1.4316    
   4  Prefactor     .10000E-03    14.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9753        4.6313        .87485E-04   -1.5219    
   6  norm          .10000E-03    2.6289        .80071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    49.118        .37093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          35.818        30.590        .66960E-04   -1.4510    
   9  Prefactor     .10000E-03    48.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.035        .17868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.795        .16982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9009        2.0540        .57573E-04   -1.5367    
  14  norm          .10000E-03    13.540        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.813        19.074        .92416E-04   -1.4840    
  18  Prefactor     5.0922        11.628        .17809E-03   -1.5257    
  19  Prefactor     .10038E-03    6230.0        .18413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.5784        15.188        .14533E-03   -1.5157    
  21  Prefactor     121.98        55.901        .18216E-03   -1.3495    
  22  norm          29.342        29.304        .73964E-04   -1.4624    
  23  norm          .10000E-03    36.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    35.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    44.804        .21712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.893        24.596        .10050E-03   -1.4910    
  28  Prefactor     23.472        29.708        .82636E-04   -1.4739    
  29  Normalizat    .22522        .34983        .52366E-03   -1.2762    
  30  Prefactor     1.0858        .23837        .17794E-03   -.89921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68112e-09
Minuit parameter uncertainties:
  1  9.32073e-05
  2  71.804
  3  28.167
  4  8.9937e-05
  5  4.63154
  6  3.31299e-06
  7  0.00255766
  8  30.6031
  9  1.37678e-05
  10  4.90611e-05
  11  6.25455e-05
  12  1.05646e-05
  13  2.05403
  14  5.73733e-07
  15  6.04317e-05
  16  9.11939e-05
  17  19.0801
  18  11.6334
  19  0.0643856
  20  15.1952
  21  55.9255
  22  29.3183
  23  9.57341e-06
  24  1.37444e-05
  25  0.0016199
  26  2.24639e-05
  27  24.612
  28  29.7268
  29  0.353316
  30  0.238608
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.246e-05  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.086e+00  2.386e-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:  2.252e-01  3.533e-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: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73137/likelihoodResults_436320001_436579201_4FGL_J2339.6+0242_daily_bin760.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) = 2571.71157779
delta logL = -0.000212655132145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2571.71136701
delta logL = -1.87446312339e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0629       1.0000          .0000       10.000    
     3 'Normalizat'    .22522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0858       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=   2571.711     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      273 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10620E-03    14.658        .18142E-01** at limit **
   2  Index         2.9305        7.9853        .50000        .16360E-04
   3  Normalizat    .22522        .66304E-02    .52362E-03    .13917E-04
   4  Prefactor     1.0858        .48265E-02    .17794E-03    .56542E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001062
  Index      = 2.93053
  Normalizat = 0.225225
  Prefactor  = 1.08583
 **********
 **   18 **HESSE 
 **********

 FCN=   2571.711     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10620E-03    151.28        .19644E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9305        8.2430        .50000       -.42673    
   3  Normalizat    .22522        .21496E-01    .20945E-04   -1.2762    
   4  Prefactor     1.0858        .15648E-01    .71178E-05   -.89921    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.5597e-09
Minuit parameter uncertainties:
  1  0.0614078
  2  532.063
  3  0.021497
  4  0.0156481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73137': 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) = 2571.71136626
delta logL = -1.12562656795e-06

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.062e-04  6.141e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.931e+00  5.321e+02  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.086e+00  1.565e-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:  2.252e-01  2.150e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/73137/cmap_HighResolution_436320001_436579201_4FGL_J2339.6+0242_daily_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.78e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-30 02:51:36.848716', job_id='73137', GAL2='1.09', fit_tolerance='1e-08', EG2='0.23', EG='0.23', time_epoch_completed='1632995496.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='760' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 73137: <4FGL_J2339.6+0242_daily_bin760> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin760 354.904 2.7102 436320001 436579201 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            671 sec.

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

