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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin377
RA = 354.904, Dec = 2.7102
tmin = 337046401, tmax = 337305601
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='71499', job_status='RUN', time_executed='2021-09-30 02:38:13.308153', time_epoch_executed='1632994693.31' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71499/ft1_4FGL_J2339.6+0242_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71499/ft2_4FGL_J2339.6+0242_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71499/ft1_4FGL_J2339.6+0242_daily_bin377.fits outfile=/scratch/kocevski/71499/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin377.fits ra=354.904 dec=2.7102 rad=12.0 tmin=337046401.0 tmax=337305601.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 12.99
user 12.57
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71499/ft1_filtered_4FGL_J2339.6+0242_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/71499/ft2_4FGL_J2339.6+0242_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/71499/ltcube_337046401_337305601_4FGL_J2339.6+0242_daily_bin377.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/71499/ft2_4FGL_J2339.6+0242_daily_bin377.fits
.....................!
real 14.41
user 13.96
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71499/ft1_filtered_4FGL_J2339.6+0242_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/71499/ft2_4FGL_J2339.6+0242_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/71499/ltcube_337046401_337305601_4FGL_J2339.6+0242_daily_bin377.fits outfile=/scratch/kocevski/71499/expmap_337046401_337305601_4FGL_J2339.6+0242_daily_bin377.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/71499/ltcube_337046401_337305601_4FGL_J2339.6+0242_daily_bin377.fits
.....................!
real 228.32
user 221.73
sys 5.98

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/71499/ft1_filtered_4FGL_J2339.6+0242_daily_bin377.fits scfile=/scratch/kocevski/71499/ft2_4FGL_J2339.6+0242_daily_bin377.fits outfile=/scratch/kocevski/71499/cmap_337046401_337305601_4FGL_J2339.6+0242_daily_bin377.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.61
user 0.43
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71499/ft1_filtered_4FGL_J2339.6+0242_daily_bin377.fits scfile=/scratch/kocevski/71499/ft2_4FGL_J2339.6+0242_daily_bin377.fits outfile=/scratch/kocevski/71499/cmap_HighResolution_337046401_337305601_4FGL_J2339.6+0242_daily_bin377.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.63
user 0.45
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.741       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.982       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.800       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3561       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6029       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7512       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2700       1.0000         .10000E-03   10000.    
    14 'norm      '    10.149       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26291E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    24.375       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.920       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .67005       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89635       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=   2262.634     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     3911 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.741        12.741        .55550E-06    .42432E-03
   2  Prefactor     .10000E-03    25.046       -.30848E-06** at limit **
   3  Prefactor     12.050        29.652       -.56327E-05   -.67356E-04
   4  Prefactor     11.801        10.792       -.13427E-06   -.53825E-03
   5  norm          1.3482        4.7741        .21954E-05   -.17835E-03
   6  norm          1.6023        5.7761        .76776E-07   -.27997E-03
   7  Prefactor     .10000E-03    8.5345        .52609E-07** at limit **
   8  norm          .10000E-03    14.072       -.60996E-07** at limit **
   9  Prefactor     26.051        56.639        .52414E-05   -.25093E-04
  10  Prefactor     .10000E-03    10.026        .36204E-07** at limit **
  11  Prefactor     2.7093        63.166        .37072E-04   -.35702E-04
  12  Prefactor     3.7431        41.379       -.21004E-04   -.17040E-03
  13  norm          2.2698        1.6958       -.17014E-06   -.22473E-03
  14  norm          10.154        16.905        .56671E-05    .91993E-04
  15  Prefactor     .10000E-03    6.1749        .16339E-07** at limit **
  16  Prefactor     .10000E-03    40.093       -.74192E-06** at limit **
  17  norm          .10000E-03    3.2984        .51331E-08** at limit **
  18  Prefactor     .10000E-03    3.9768        .31794E-07** at limit **
  19  Prefactor     .10000E-03    1779.8        .84109E-05** at limit **
  20  Prefactor     .10000E-03    15.804        .16500E-06** at limit **
  21  Prefactor     .10000E-03    16.216       -.82804E-08** at limit **
  22  norm          24.362        30.753        .40550E-05   -.46810E-06
  23  norm          .10000E-03    11.084       -.14275E-07** at limit **
  24  Prefactor     15.017        217.02        .67604E-04    .11491E-04
  25  Prefactor     .10000E-03    2.0743       -.53877E-07** at limit **
  26  Prefactor     .10000E-03    58.386        .10872E-05** at limit **
  27  Prefactor     .10000E-03    12.442        .12655E-06** at limit **
  28  Prefactor     .10000E-03    28.891        .83570E-06** at limit **
  29  Normalizat    .67017        .30025       -.89753E-05   -.96274E-05
  30  Prefactor     .89630        .19743        .78399E-06   -.20876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7406
  Prefactor  = 0.0001
  Prefactor  = 12.0495
  Prefactor  = 11.8014
  norm       = 1.34819
  norm       = 1.60228
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.0513
  Prefactor  = 0.0001
  Prefactor  = 2.70927
  Prefactor  = 3.74312
  norm       = 2.26982
  norm       = 10.1537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.3618
  norm       = 0.0001
  Prefactor  = 15.0168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.670172
  Prefactor  = 0.896303
 **********
 **   18 **HESSE 
 **********

 FCN=   2262.634     FROM HESSE     STATUS=OK           582 CALLS     4493 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.741        12.775        .56111E-03   -1.4994    
   2  Prefactor     .10000E-03    25.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.050        28.748        .11573E-03   -1.5014    
   4  Prefactor     11.801        10.805        .58309E-03   -1.5021    
   5  norm          1.3482        4.5899        .15612E-03   -1.5476    
   6  norm          1.6023        5.7423        .21024E-03   -1.5455    
   7  Prefactor     .10000E-03    8.5414        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.136        .17428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.051        56.586        .78486E-04   -1.4687    
  10  Prefactor     .10000E-03    10.060        .14712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7093        60.588        .24863E-03   -1.5379    
  12  Prefactor     3.7431        40.311        .20846E-03   -1.5321    
  13  norm          2.2698        1.6935        .49427E-04   -1.5407    
  14  norm          10.154        16.497        .12578E-03   -1.5071    
  15  Prefactor     .10000E-03    6.1835        .11545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3000        .84375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9861        .92641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1790.9        .18307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.362        30.761        .81135E-04   -1.4720    
  23  norm          .10000E-03    11.090        .15469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.017        219.21        .10369E-03   -1.4933    
  25  Prefactor     .10000E-03    2.0795        .66892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    58.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    12.455        .16390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    29.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .67017        .35088        .29016E-03   -1.0508    
  30  Prefactor     .89630        .23431        .18336E-03   -.96270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81044e-09
Minuit parameter uncertainties:
  1  12.7779
  2  6.45715e-06
  3  28.7813
  4  10.8068
  5  4.59107
  6  5.74427
  7  1.73327e-05
  8  1.13277e-05
  9  56.7029
  10  9.67731e-06
  11  25.653
  12  24.5881
  13  1.69357
  14  16.5045
  15  4.04577e-06
  16  2.02855e-05
  17  2.79711e-06
  18  6.59138e-06
  19  0.00162113
  20  4.95549e-06
  21  2.18146e-05
  22  30.7805
  23  1.16058e-06
  24  115.26
  25  7.20416e-06
  26  0.0001284
  27  2.54805e-05
  28  0.000137225
  29  0.35206
  30  0.234575
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.284e-04  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:  8.963e-01  2.346e-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.702e-01  3.521e-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.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71499/likelihoodResults_337046401_337305601_4FGL_J2339.6+0242_daily_bin377.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) = 2262.63444895
delta logL = -8.1030306319e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2262.6343681
delta logL = -1.7274851416e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6040       1.0000          .0000       10.000    
     3 'Normalizat'    .67017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89631       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=   2262.634     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      306 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72356E-03    16.476        .18142    ** at limit **
   2  Index         1.9828        7.3251        .50000        .50755E-05
   3  Normalizat    .67017        .34792E-02    .29017E-03    .20491E-04
   4  Prefactor     .89631        .25342E-02    .18336E-03    .35801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000723559
  Index      = 1.98279
  Normalizat = 0.670168
  Prefactor  = 0.896306
 **********
 **   18 **HESSE 
 **********

 FCN=   2262.634     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72356E-03    1702.6        .74975E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9828        5.9913        .50000       -.64781    
   3  Normalizat    .67017        .97252E-02    .11607E-04   -1.0508    
   4  Prefactor     .89631        .70837E-02    .36671E-04   -.96270    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.00138e-07
Minuit parameter uncertainties:
  1  2.12421
  2  128.899
  3  0.00972518
  4  0.00708366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71499': 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) = 2262.63436745
delta logL = 4.7075582188e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.236e-04  2.124e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.983e+00  1.289e+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:  8.963e-01  7.084e-03  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.702e-01  9.725e-03  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/71499/cmap_HighResolution_337046401_337305601_4FGL_J2339.6+0242_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-30 02:48:40.356129', job_id='71499', GAL2='0.90', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632995320.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='377' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:48:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 71499: <4FGL_J2339.6+0242_daily_bin377> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin377> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:15 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:16 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:35:16 2021
Terminated at Thu Sep 30 02:48:41 2021
Results reported at Thu Sep 30 02:48:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin377 354.904 2.7102 337046401 337305601 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 :                                   624.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

