/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 170 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7440
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin679
RA = 354.904, Dec = 2.7102
tmin = 415324801, tmax = 415584001
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='76115', job_status='RUN', time_executed='2021-09-30 02:53:12.865723', time_epoch_executed='1632995592.87' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76115

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76115/ft1_4FGL_J2339.6+0242_daily_bin679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76115/ft2_4FGL_J2339.6+0242_daily_bin679.fits


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

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

Done.
real 6.03
user 5.75
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/76115/ft2_4FGL_J2339.6+0242_daily_bin679.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/76115/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin679.fits evtable="EVENTS" outfile="/scratch/kocevski/76115/ft1_filtered_4FGL_J2339.6+0242_daily_bin679.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/76115/ft1_filtered_4FGL_J2339.6+0242_daily_bin679.fits" evtable="EVENTS" scfile=/scratch/kocevski/76115/ft2_4FGL_J2339.6+0242_daily_bin679.fits sctable="SC_DATA" outfile=/scratch/kocevski/76115/ltcube_415324801_415584001_4FGL_J2339.6+0242_daily_bin679.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/76115/ft2_4FGL_J2339.6+0242_daily_bin679.fits
.....................!
real 12.28
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76115/ft1_filtered_4FGL_J2339.6+0242_daily_bin679.fits evtable="EVENTS" scfile=/scratch/kocevski/76115/ft2_4FGL_J2339.6+0242_daily_bin679.fits sctable="SC_DATA" expcube=/scratch/kocevski/76115/ltcube_415324801_415584001_4FGL_J2339.6+0242_daily_bin679.fits outfile=/scratch/kocevski/76115/expmap_415324801_415584001_4FGL_J2339.6+0242_daily_bin679.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/76115/ltcube_415324801_415584001_4FGL_J2339.6+0242_daily_bin679.fits
.....................!
real 191.00
user 186.05
sys 4.61

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/76115/ft1_filtered_4FGL_J2339.6+0242_daily_bin679.fits scfile=/scratch/kocevski/76115/ft2_4FGL_J2339.6+0242_daily_bin679.fits outfile=/scratch/kocevski/76115/cmap_415324801_415584001_4FGL_J2339.6+0242_daily_bin679.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76115/ft1_filtered_4FGL_J2339.6+0242_daily_bin679.fits scfile=/scratch/kocevski/76115/ft2_4FGL_J2339.6+0242_daily_bin679.fits outfile=/scratch/kocevski/76115/cmap_HighResolution_415324801_415584001_4FGL_J2339.6+0242_daily_bin679.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6090       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .90469E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.557       1.0000         .10000E-03   10000.    
     8 'norm      '    56.615       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4106       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7236       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.185       1.0000         .10000E-03   10000.    
    19 'Prefactor '    181.73       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.583       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5019       1.0000         .10000E-03   10000.    
    23 'norm      '    44.788       1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.154       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    51.047       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91857       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0267       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=   4519.143     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3902 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0066        .69633E-08** at limit **
   2  Prefactor     .10000E-03    50.198       -.10205E-05** at limit **
   3  Prefactor     41.897        24.350        .30175E-06    .49353E-04
   4  Prefactor     4.6083        5.0299        .52445E-07    .88819E-05
   5  norm          .10000E-03    1.5601       -.71035E-07** at limit **
   6  norm          .10100E-03    5.1853       -.12986E-05** at limit **
   7  Prefactor     18.571        16.772        .13441E-06    .16850E-03
   8  norm          56.606        24.550        .19705E-06    .70590E-05
   9  Prefactor     .10000E-03    48.415       -.75529E-06** at limit **
  10  Prefactor     .10000E-03    9.1937        .27321E-07** at limit **
  11  Prefactor     17.086        23.676        .28266E-06    .29543E-05
  12  Prefactor     .10000E-03    12.879        .16059E-05** at limit **
  13  norm          1.4106        1.1362       -.14168E-06   -.22688E-04
  14  norm          3.0358        7.6143        .23797E-05    .14360E-03
  15  Prefactor     .10000E-03    22.292       -.42301E-07** at limit **
  16  Prefactor     .10000E-03    46.577       -.50060E-06** at limit **
  17  norm          3.6800        20.633        .61309E-06    .10443E-04
  18  Prefactor     13.202        14.609       -.17904E-07   -.12047E-04
  19  Prefactor     181.25        359.01        .16536E-04    .18182E-04
  20  Prefactor     36.696        28.894       -.75319E-06    .20331E-05
  21  Prefactor     19.584        47.605       -.41302E-06   -.73191E-05
  22  norm          1.4809        118.68        .25452E-05    .31619E-05
  23  norm          44.784        47.169       -.59853E-06   -.14774E-04
  24  Prefactor     36.147        40.464        .18612E-06    .34937E-05
  25  Prefactor     .10000E-03    2.0810       -.24640E-06** at limit **
  26  Prefactor     51.007        59.226        .20650E-05    .16210E-04
  27  Prefactor     .10000E-03    36.975        .12101E-05** at limit **
  28  Prefactor     .10000E-03    10.183       -.63242E-07** at limit **
  29  Normalizat    .91908        .26933       -.22434E-06    .68641E-04
  30  Prefactor     1.0266        .17665       -.77528E-06    .52860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.8966
  Prefactor  = 4.60832
  norm       = 0.0001
  norm       = 0.000100996
  Prefactor  = 18.5708
  norm       = 56.6063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0863
  Prefactor  = 0.0001
  norm       = 1.4106
  norm       = 3.03575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.68002
  Prefactor  = 13.2018
  Prefactor  = 181.245
  Prefactor  = 36.6957
  Prefactor  = 19.5845
  norm       = 1.48091
  norm       = 44.7844
  Prefactor  = 36.147
  Prefactor  = 0.0001
  Prefactor  = 51.0067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.919085
  Prefactor  = 1.0266
 **********
 **   18 **HESSE 
 **********

 FCN=   4519.143     FROM HESSE     STATUS=OK           592 CALLS     4494 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0084        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.897        24.443        .61924E-04   -1.4413    
   4  Prefactor     4.6083        5.0305        .15317E-03   -1.5279    
   5  norm          .10000E-03    1.5817        .81770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10100E-03    79.936        .25917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.571        16.440        .92976E-04   -1.4846    
   8  norm          56.606        24.566        .53314E-04   -1.4202    
   9  Prefactor     .10000E-03    48.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.086        23.678        .96878E-04   -1.4881    
  12  Prefactor     .10000E-03    13.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4106        1.1364        .36478E-04   -1.5470    
  14  norm          3.0358        7.6406        .11634E-02   -1.5359    
  15  Prefactor     .10000E-03    22.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6800        19.175        .20926E-03   -1.5324    
  18  Prefactor     13.202        14.284        .11031E-03   -1.4981    
  19  Prefactor     181.25        359.73        .14973E-03   -1.3007    
  20  Prefactor     36.696        29.044        .66133E-04   -1.4496    
  21  Prefactor     19.584        46.951        .90507E-04   -1.4823    
  22  norm          1.4809        120.94        .34935E-03   -1.5465    
  23  norm          44.784        47.352        .59907E-04   -1.4369    
  24  Prefactor     36.147        40.469        .66652E-04   -1.4505    
  25  Prefactor     .10000E-03    2.0903        .94703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     51.007        59.405        .56132E-04   -1.4278    
  27  Prefactor     .10000E-03    37.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91908        .30684        .32601E-03   -.95793    
  30  Prefactor     1.0266        .20108        .22032E-03   -.91848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16981e-08
Minuit parameter uncertainties:
  1  7.13038e-07
  2  4.19644e-05
  3  24.4491
  4  5.03097
  5  1.99063e-06
  6  0.0178681
  7  16.4438
  8  24.5703
  9  2.44286e-05
  10  2.30039e-06
  11  23.6906
  12  7.44052e-05
  13  1.13637
  14  7.64302
  15  1.66293e-05
  16  3.12795e-05
  17  16.809
  18  14.288
  19  364.236
  20  29.0548
  21  47.0394
  22  26.821
  23  47.3918
  24  40.4996
  25  1.2055e-05
  26  59.4744
  27  1.9696e-05
  28  8.73884e-07
  29  0.307431
  30  0.201227
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.101e+01  5.947e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.027e+00  2.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.191e-01  3.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/76115/likelihoodResults_415324801_415584001_4FGL_J2339.6+0242_daily_bin679.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) = 4517.63970929
delta logL = 1.50339075486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4517.50361153
delta logL = 1.6394885165

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15062E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6591       1.0000          .0000       10.000    
     3 'Normalizat'    .78619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1015       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=   4517.504     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      384 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14448E-01    .16134        .90981E-03   -.41321E-03
   2  Index         7.6804        2.9073        .10920        .55570E-04
   3  Normalizat    .78699        .84526E-01    .78885E-01   -.85296E-04
   4  Prefactor     1.1010        .60041E-01    .37529E-01   -.82588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0144484
  Index      = 7.68042
  Normalizat = 0.786991
  Prefactor  = 1.10103
 **********
 **   18 **HESSE 
 **********

 FCN=   4517.504     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      415 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14448E-01    .27992        .48214E-05   -1.5684    
   2  Index         7.6804        7.5478        .45579E-02    .56579    
   3  Normalizat    .78699        .25695        .34922E-03   -1.0055    
   4  Prefactor     1.1010        .17938        .21379E-03   -.89434    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.84693e-10
Minuit parameter uncertainties:
  1  0.126752
  2  4.51584
  3  0.257342
  4  0.179477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76115': 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) = 4517.50359861
delta logL = 1.63950143518

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.445e-02  1.268e-01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  7.680e+00  4.516e+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:  1.101e+00  1.795e-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:  7.870e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 354.904 2.710
Photon Index (Free Index): 7.68 +/- 4.52
Photon Flux (Free Index): 1.55e-07 +/- 9.75e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.22e-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/76115/cmap_HighResolution_415324801_415584001_4FGL_J2339.6+0242_daily_bin679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='1.64e+00', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-30 03:04:43.156233', photon_index_error2='4.52', photon_index2='7.68', ts='0.94', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.22e-05', EG='0.92', time_epoch_completed='1632996283.16', return_code='0', job_id='76115', GAL2='1.10', EG2='0.79', return_code2='102', photon_flux_error2='9.75e-08', ts2='4.58', photon_index='2.55' WHERE bin_id='679' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 76115: <4FGL_J2339.6+0242_daily_bin679> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin679> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:50:10 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:50:12 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:50:12 2021
Terminated at Thu Sep 30 03:04:43 2021
Results reported at Thu Sep 30 03:04:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin679 354.904 2.7102 415324801 415584001 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 :                                   683.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

