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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin401
RA = 354.904, Dec = 2.7102
tmin = 343267201, tmax = 343526401
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='71541', job_status='RUN', time_executed='2021-09-30 02:37:27.533172', time_epoch_executed='1632994647.53' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71541/ft1_4FGL_J2339.6+0242_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71541/ft2_4FGL_J2339.6+0242_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71541/ft1_4FGL_J2339.6+0242_daily_bin401.fits outfile=/scratch/kocevski/71541/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin401.fits ra=354.904 dec=2.7102 rad=12.0 tmin=343267201.0 tmax=343526401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.49
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71541/ft2_4FGL_J2339.6+0242_daily_bin401.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/71541/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/71541/ft1_filtered_4FGL_J2339.6+0242_daily_bin401.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/71541/ft1_filtered_4FGL_J2339.6+0242_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/71541/ft2_4FGL_J2339.6+0242_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/71541/ltcube_343267201_343526401_4FGL_J2339.6+0242_daily_bin401.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/71541/ft2_4FGL_J2339.6+0242_daily_bin401.fits
.....................!
real 12.44
user 12.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71541/ft1_filtered_4FGL_J2339.6+0242_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/71541/ft2_4FGL_J2339.6+0242_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/71541/ltcube_343267201_343526401_4FGL_J2339.6+0242_daily_bin401.fits outfile=/scratch/kocevski/71541/expmap_343267201_343526401_4FGL_J2339.6+0242_daily_bin401.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/71541/ltcube_343267201_343526401_4FGL_J2339.6+0242_daily_bin401.fits
.....................!
real 191.22
user 185.79
sys 4.76

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/71541/ft1_filtered_4FGL_J2339.6+0242_daily_bin401.fits scfile=/scratch/kocevski/71541/ft2_4FGL_J2339.6+0242_daily_bin401.fits outfile=/scratch/kocevski/71541/cmap_343267201_343526401_4FGL_J2339.6+0242_daily_bin401.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71541/ft1_filtered_4FGL_J2339.6+0242_daily_bin401.fits scfile=/scratch/kocevski/71541/ft2_4FGL_J2339.6+0242_daily_bin401.fits outfile=/scratch/kocevski/71541/cmap_HighResolution_343267201_343526401_4FGL_J2339.6+0242_daily_bin401.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6229       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6003       1.0000         .10000E-03   10000.    
     5 'norm      '    .48991E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .11961E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4752       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8879       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11299E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18783E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8742       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68548       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    28.292       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3362       1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.187       1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.554       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0588       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94765       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=   5581.442     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3879 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8459        .12031E-05** at limit **
   2  Prefactor     .10000E-03    15.712        .84589E-05** at limit **
   3  Prefactor     9.6141        15.762        .45005E-06    .68655E-04
   4  Prefactor     4.5997        4.8872       -.16661E-06    .77226E-04
   5  norm          .49850E-01    1.4017       -.38747E-06    .57449E-04
   6  norm          .10000E-03    3.7600       -.52961E-06** at limit **
   7  Prefactor     .10000E-03    7.8646        .96439E-06** at limit **
   8  norm          .10000E-03    22.680       -.31583E-05** at limit **
   9  Prefactor     31.973        40.299       -.16160E-04    .17266E-04
  10  Prefactor     7.4737        13.652        .15063E-07   -.10018E-04
  11  Prefactor     26.091        19.637       -.24656E-05    .44038E-04
  12  Prefactor     .10000E-03    9.8617       -.33687E-05** at limit **
  13  norm          1.8868        1.0807        .13760E-07    .38818E-03
  14  norm          .10000E-03    3.6906       -.12372E-08** at limit **
  15  Prefactor     .10000E-03    2.4229        .25863E-07** at limit **
  16  Prefactor     .10000E-03    17.708       -.46311E-05** at limit **
  17  norm          .10000E-03    2.5341        .34464E-07** at limit **
  18  Prefactor     .10000E-03    3.0599       -.16656E-05** at limit **
  19  Prefactor     .10000E-03    400.93       -.47028E-03** at limit **
  20  Prefactor     6.8351        17.036       -.15934E-04    .43640E-03
  21  Prefactor     .47203        14.108        .16214E-05   -.54563E-03
  22  norm          .10000E-03    5.8977        .20849E-05** at limit **
  23  norm          28.301        35.601        .21273E-04    .29500E-03
  24  Prefactor     .10000E-03    23.039       -.24712E-05** at limit **
  25  Prefactor     .10000E-03    2.4552       -.27733E-06** at limit **
  26  Prefactor     7.3365        15.641       -.60832E-06   -.90752E-05
  27  Prefactor     21.192        21.820        .37689E-05    .95897E-05
  28  Prefactor     27.545        21.091       -.58567E-05    .73708E-04
  29  Normalizat    1.0591        .21859        .46786E-05    .33069E-03
  30  Prefactor     .94761        .14595       -.49748E-06    .69388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.61414
  Prefactor  = 4.59971
  norm       = 0.0498498
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.9728
  Prefactor  = 7.4737
  Prefactor  = 26.0912
  Prefactor  = 0.0001
  norm       = 1.88678
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 6.83513
  Prefactor  = 0.472029
  norm       = 0.0001
  norm       = 28.3013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.3365
  Prefactor  = 21.1916
  Prefactor  = 27.5449
  Normalizat = 1.05906
  Prefactor  = 0.947606
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.442     FROM HESSE     STATUS=OK           588 CALLS     4467 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6141        15.752        .12918E-03   -1.5088    
   4  Prefactor     4.5997        4.8873        .16583E-03   -1.5279    
   5  norm          .49850E-01    19.465        .16447E-02   -1.5663    
   6  norm          .10000E-03    7.9767        .28031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    22.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.973        40.378        .70850E-04   -1.4576    
  10  Prefactor     7.4737        13.644        .14669E-03   -1.5161    
  11  Prefactor     26.091        19.643        .78420E-04   -1.4686    
  12  Prefactor     .10000E-03    9.9469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8868        1.0809        .15144E-03   -1.5433    
  14  norm          .10000E-03    3.7163        .14013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4248        .11356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5406        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0422        .25252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    400.49        .20284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.8351        17.023        .15302E-03   -1.5185    
  21  Prefactor     .47203        165.09        .53291E-02   -1.5571    
  22  norm          .10000E-03    5.8984        .17720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          28.301        35.613        .75320E-04   -1.4643    
  24  Prefactor     .10000E-03    23.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.4760        .11406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.3365        15.632        .14808E-03   -1.5166    
  27  Prefactor     21.192        21.823        .87017E-04   -1.4787    
  28  Prefactor     27.545        21.115        .76319E-04   -1.4658    
  29  Normalizat    1.0591        .25540        .28951E-03   -.91077    
  30  Prefactor     .94761        .17166        .21182E-03   -.94497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03888e-08
Minuit parameter uncertainties:
  1  8.77166e-06
  2  6.53041e-07
  3  15.7585
  4  4.88769
  5  1.96876
  6  0.000124511
  7  2.14165e-05
  8  2.16945e-05
  9  40.4125
  10  13.6495
  11  19.648
  12  4.02345e-06
  13  1.08086
  14  1.59785e-06
  15  3.587e-07
  16  1.5121e-05
  17  3.10764e-06
  18  0.000236725
  19  0.00282208
  20  17.0353
  21  17.7026
  22  2.8807e-06
  23  35.6397
  24  1.2562e-07
  25  3.82529e-05
  26  15.6409
  27  21.831
  28  21.1203
  29  0.255701
  30  0.171759
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.336e+00  1.564e+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:  9.476e-01  1.718e-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:  1.059e+00  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71541/likelihoodResults_343267201_343526401_4FGL_J2339.6+0242_daily_bin401.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) = 5580.93743137
delta logL = 0.504595289533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5580.80662521
delta logL = 0.635401453595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.601       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5161       1.0000          .0000       10.000    
     3 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93991       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5580.807     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      216 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.650        22.428        .24575E-02    .24433E-03
   2  Index         1.5151        .54885        .29628       -.48102E-04
   3  Normalizat    1.0686        .20682        .65174E-01    .61455E-04
   4  Prefactor     .94000        .14468        .45512E-01   -.47086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6505
  Index      = 1.51505
  Normalizat = 1.0686
  Prefactor  = 0.940005
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.807     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.650        21.835        .98300E-04   -1.4892    
   2  Index         1.5151        .68030        .10374E-01   -.77119    
   3  Normalizat    1.0686        .24208        .28831E-03   -.90766    
   4  Prefactor     .94000        .16953        .21240E-03   -.94757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05792e-10
Minuit parameter uncertainties:
  1  21.8454
  2  0.684454
  3  0.242335
  4  0.169625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71541': 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) = 5580.80661972
delta logL = 0.635406937489

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.665e+01  2.185e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.515e+00  6.845e-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:  9.400e-01  1.696e-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:  1.069e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.52 +/- 0.68
Photon Flux (Free Index): 7.04e-09 +/- 9.81e-09
Energy Flux (Free Index): 2.12e-05 +/- 4.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/71541/cmap_HighResolution_343267201_343526401_4FGL_J2339.6+0242_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', comment='SUCCESS', energy_flux2='2.12e-05', dlogl='6.35e-01', photon_flux2='7.04e-09', job_status='DONE', time_completed='2021-09-30 02:49:47.020099', photon_index_error2='0.68', photon_index2='1.52', ts='0.32', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='7.65e-08', energy_flux_error2='4.43e-05', EG='1.06', time_epoch_completed='1632995387.02', return_code='0', job_id='71541', GAL2='0.94', EG2='1.07', return_code2='0', photon_flux_error2='9.81e-09', ts2='1.60', photon_index='2.55' WHERE bin_id='401' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:49:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 71541: <4FGL_J2339.6+0242_daily_bin401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin401 354.904 2.7102 343267201 343526401 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 :                                   735.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

