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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin367
RA = 354.904, Dec = 2.7102
tmin = 334454401, tmax = 334713601
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='70228', job_status='RUN', time_executed='2021-09-30 02:33:16.225057', time_epoch_executed='1632994396.23' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70228/ft1_4FGL_J2339.6+0242_daily_bin367.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70228/ft2_4FGL_J2339.6+0242_daily_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70228/ft1_4FGL_J2339.6+0242_daily_bin367.fits outfile=/scratch/kocevski/70228/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin367.fits ra=354.904 dec=2.7102 rad=12.0 tmin=334454401.0 tmax=334713601.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.47
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70228/ft1_filtered_4FGL_J2339.6+0242_daily_bin367.fits" evtable="EVENTS" scfile=/scratch/kocevski/70228/ft2_4FGL_J2339.6+0242_daily_bin367.fits sctable="SC_DATA" outfile=/scratch/kocevski/70228/ltcube_334454401_334713601_4FGL_J2339.6+0242_daily_bin367.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/70228/ft2_4FGL_J2339.6+0242_daily_bin367.fits
.....................!
real 11.59
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70228/ft1_filtered_4FGL_J2339.6+0242_daily_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/70228/ft2_4FGL_J2339.6+0242_daily_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/70228/ltcube_334454401_334713601_4FGL_J2339.6+0242_daily_bin367.fits outfile=/scratch/kocevski/70228/expmap_334454401_334713601_4FGL_J2339.6+0242_daily_bin367.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/70228/ltcube_334454401_334713601_4FGL_J2339.6+0242_daily_bin367.fits
.....................!
real 190.23
user 185.30
sys 4.56

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/70228/ft1_filtered_4FGL_J2339.6+0242_daily_bin367.fits scfile=/scratch/kocevski/70228/ft2_4FGL_J2339.6+0242_daily_bin367.fits outfile=/scratch/kocevski/70228/cmap_334454401_334713601_4FGL_J2339.6+0242_daily_bin367.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70228/ft1_filtered_4FGL_J2339.6+0242_daily_bin367.fits scfile=/scratch/kocevski/70228/ft2_4FGL_J2339.6+0242_daily_bin367.fits outfile=/scratch/kocevski/70228/cmap_HighResolution_334454401_334713601_4FGL_J2339.6+0242_daily_bin367.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9369       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1327       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1065       1.0000         .10000E-03   10000.    
    13 'norm      '    .31002       1.0000         .10000E-03   10000.    
    14 'norm      '    .11496E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13657E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    83.608       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7421       1.0000         .10000E-03   10000.    
    23 'norm      '    .17604E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1568       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.255       1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.819       1.0000         .10000E-03   10000.    
    27 'Prefactor '    33.471       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69832       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98007       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=   4654.120     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3941 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.675       -.16358E-06** at limit **
   2  Prefactor     .10000E-03    19.748        .18104E-06** at limit **
   3  Prefactor     .10000E-03    4.6980       -.42913E-07** at limit **
   4  Prefactor     7.9368        6.4929        .14154E-06    .19411E-04
   5  norm          .10000E-03    1.7895       -.14509E-06** at limit **
   6  norm          3.1329        3.2098       -.17304E-08    .49038E-05
   7  Prefactor     .10000E-03    11.551       -.23965E-06** at limit **
   8  norm          .10000E-03    15.676       -.11117E-06** at limit **
   9  Prefactor     .10000E-03    57.444       -.20441E-06** at limit **
  10  Prefactor     6.8646        11.787       -.62474E-07    .17825E-04
  11  Prefactor     24.370        23.258       -.10919E-07    .61267E-05
  12  Prefactor     8.1139        10.993        .28251E-06   -.12796E-03
  13  norm          .31028        1.0476        .23363E-07   -.15783E-03
  14  norm          .10000E-03    6.2426        .74396E-06** at limit **
  15  Prefactor     .10000E-03    7.0138       -.11606E-06** at limit **
  16  Prefactor     .10000E-03    18.402       -.31018E-06** at limit **
  17  norm          .10000E-03    11.962       -.12861E-06** at limit **
  18  Prefactor     .10000E-03    4.9006       -.10374E-05** at limit **
  19  Prefactor     83.569        150.98        .31319E-05   -.33785E-05
  20  Prefactor     10.218        16.017        .14141E-07    .13696E-04
  21  Prefactor     .10000E-03    7.4761       -.68990E-07** at limit **
  22  norm          1.7412        72.128        .76144E-05    .21583E-04
  23  norm          .10000E-03    123.20       -.74075E-06** at limit **
  24  Prefactor     5.2311        266.09       -.19823E-04   -.39927E-05
  25  Prefactor     12.254        7.1067        .99034E-07    .33629E-04
  26  Prefactor     32.813        51.194        .47267E-06    .56331E-05
  27  Prefactor     33.463        21.332       -.14243E-06    .13464E-04
  28  Prefactor     .10000E-03    4.1794       -.20077E-07** at limit **
  29  Normalizat    .69826        .22168       -.22902E-06    .55368E-04
  30  Prefactor     .98009        .14907        .26914E-06    .96084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.9368
  norm       = 0.0001
  norm       = 3.13294
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.8646
  Prefactor  = 24.3703
  Prefactor  = 8.11387
  norm       = 0.31028
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 83.5692
  Prefactor  = 10.2177
  Prefactor  = 0.0001
  norm       = 1.7412
  norm       = 0.0001
  Prefactor  = 5.2311
  Prefactor  = 12.2544
  Prefactor  = 32.8135
  Prefactor  = 33.4627
  Prefactor  = 0.0001
  Normalizat = 0.698257
  Prefactor  = 0.980093
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.120     FROM HESSE     STATUS=OK           588 CALLS     4529 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7031        .14441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9368        6.4907        .71162E-03   -1.5144    
   5  norm          .10000E-03    1.8688        .17793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1329        3.2075        .12036E-03   -1.5354    
   7  Prefactor     .10000E-03    11.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8646        11.779        .15312E-03   -1.5184    
  11  Prefactor     24.370        23.262        .81148E-04   -1.4720    
  12  Prefactor     8.1139        10.187        .14082E-03   -1.5138    
  13  norm          .31028        1.0267        .11685E-03   -1.5597    
  14  norm          .10000E-03    11.781        .29814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1550        .17640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.166        .27865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     83.569        150.59        .21965E-03   -1.3877    
  20  Prefactor     10.218        15.864        .12532E-03   -1.5069    
  21  Prefactor     .10000E-03    7.4891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7412        75.185        .15891E-02   -1.5444    
  23  norm          .10000E-03    125.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.2311        269.82        .17703E-03   -1.5250    
  25  Prefactor     12.254        7.1013        .11391E-03   -1.5008    
  26  Prefactor     32.813        51.198        .69946E-04   -1.4562    
  27  Prefactor     33.463        21.331        .69263E-04   -1.4550    
  28  Prefactor     .10000E-03    4.1817        .13621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .69826        .25660        .30351E-03   -1.0396    
  30  Prefactor     .98009        .17701        .18632E-03   -.93396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82976e-10
Minuit parameter uncertainties:
  1  6.52084e-06
  2  2.27114e-06
  3  1.55938e-06
  4  6.49124
  5  3.02426e-06
  6  3.20768
  7  6.87237e-06
  8  1.60595e-05
  9  4.67064e-05
  10  11.783
  11  23.2702
  12  10.1896
  13  1.02672
  14  0.000178924
  15  3.59141e-06
  16  1.94586e-07
  17  3.12038e-06
  18  0.000175739
  19  151.288
  20  15.8706
  21  1.4735e-06
  22  22.9134
  23  0.000186975
  24  75.5004
  25  7.10176
  26  51.2669
  27  21.3359
  28  7.08467e-07
  29  0.257045
  30  0.177116
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.281e+01  5.127e+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.801e-01  1.771e-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.983e-01  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70228/likelihoodResults_334454401_334713601_4FGL_J2339.6+0242_daily_bin367.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) = 4653.94026978
delta logL = 0.18019153821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4653.9307613
delta logL = 0.189700020289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.606       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2741       1.0000          .0000       10.000    
     3 'Normalizat'    .66967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99416       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=   4653.931     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      302 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.605        57.833        .98285E-04   -.41757E-04
   2  Index         3.2759        1.9550        .73365E-02   -.33701E-04
   3  Normalizat    .66965        .24862        .30933E-03   -.14422E-03
   4  Prefactor     .99404        .17589        .18510E-03   -.24627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6045
  Index      = 3.27588
  Normalizat = 0.669652
  Prefactor  = 0.99404
 **********
 **   18 **HESSE 
 **********

 FCN=   4653.931     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.605        38.465        .39314E-05   -1.4893    
   2  Index         3.2759        1.3182        .29346E-03   -.35205    
   3  Normalizat    .66965        .24859        .12373E-04   -1.0510    
   4  Prefactor     .99404        .17524        .37021E-04   -.92928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63491e-10
Minuit parameter uncertainties:
  1  38.5228
  2  1.33613
  3  0.249012
  4  0.175345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70228': 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) = 4653.93075729
delta logL = 0.189704024244

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.660e+01  3.852e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.276e+00  1.336e+00  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.940e-01  1.753e-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.697e-01  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/70228/cmap_HighResolution_334454401_334713601_4FGL_J2339.6+0242_daily_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-30 02:44:35.596738', job_id='70228', GAL2='0.99', fit_tolerance='1e-08', EG2='0.67', EG='0.70', time_epoch_completed='1632995075.6', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.90e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='367' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:44:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 70228: <4FGL_J2339.6+0242_daily_bin367> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin367> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:56 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:30:58 2021
Terminated at Thu Sep 30 02:44:36 2021
Results reported at Thu Sep 30 02:44:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin367 354.904 2.7102 334454401 334713601 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 :                                   676.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

