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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin942
RA = 354.904, Dec = 2.7102
tmin = 483494401, tmax = 483753601
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='73411', job_status='RUN', time_executed='2021-09-30 02:41:05.402770', time_epoch_executed='1632994865.4' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73411/ft1_4FGL_J2339.6+0242_daily_bin942.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73411/ft2_4FGL_J2339.6+0242_daily_bin942.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73411/ft1_4FGL_J2339.6+0242_daily_bin942.fits outfile=/scratch/kocevski/73411/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin942.fits ra=354.904 dec=2.7102 rad=12.0 tmin=483494401.0 tmax=483753601.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.54
user 6.26
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73411/ft2_4FGL_J2339.6+0242_daily_bin942.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/73411/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin942.fits evtable="EVENTS" outfile="/scratch/kocevski/73411/ft1_filtered_4FGL_J2339.6+0242_daily_bin942.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/73411/ft1_filtered_4FGL_J2339.6+0242_daily_bin942.fits" evtable="EVENTS" scfile=/scratch/kocevski/73411/ft2_4FGL_J2339.6+0242_daily_bin942.fits sctable="SC_DATA" outfile=/scratch/kocevski/73411/ltcube_483494401_483753601_4FGL_J2339.6+0242_daily_bin942.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/73411/ft2_4FGL_J2339.6+0242_daily_bin942.fits
.....................!
real 11.40
user 11.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73411/ft1_filtered_4FGL_J2339.6+0242_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/73411/ft2_4FGL_J2339.6+0242_daily_bin942.fits sctable="SC_DATA" expcube=/scratch/kocevski/73411/ltcube_483494401_483753601_4FGL_J2339.6+0242_daily_bin942.fits outfile=/scratch/kocevski/73411/expmap_483494401_483753601_4FGL_J2339.6+0242_daily_bin942.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/73411/ltcube_483494401_483753601_4FGL_J2339.6+0242_daily_bin942.fits
.....................!
real 189.94
user 185.11
sys 4.48

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73411/ft1_filtered_4FGL_J2339.6+0242_daily_bin942.fits scfile=/scratch/kocevski/73411/ft2_4FGL_J2339.6+0242_daily_bin942.fits outfile=/scratch/kocevski/73411/cmap_HighResolution_483494401_483753601_4FGL_J2339.6+0242_daily_bin942.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.743       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8838       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.979       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12171E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.874       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1162       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0460       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0493       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10463E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    147.92       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.828       1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.952       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7952       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.454       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.616       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.9949       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .43159       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0615       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=   5019.259     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3914 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8144        .14904E-07** at limit **
   2  Prefactor     22.762        40.002        .21268E-05    .45239E-04
   3  Prefactor     9.6184        17.480        .34602E-06    .94543E-05
   4  Prefactor     .10000E-03    2.7103        .41535E-07** at limit **
   5  norm          4.8826        3.7385        .74851E-07   -.20650E-04
   6  norm          5.0828        5.5059        .18490E-06   -.27097E-04
   7  Prefactor     .10000E-03    6.4289        .96988E-08** at limit **
   8  norm          12.976        16.710        .48151E-06    .13429E-04
   9  Prefactor     .10000E-03    9.9889        .41409E-07** at limit **
  10  Prefactor     .10000E-03    10.935        .37113E-06** at limit **
  11  Prefactor     15.886        20.072       -.27529E-06   -.36201E-04
  12  Prefactor     3.1140        6.6255        .30728E-06   -.27943E-04
  13  norm          1.0463        .87441       -.65000E-07   -.37013E-03
  14  norm          .10000E-03    1.5983       -.24634E-08** at limit **
  15  Prefactor     6.0590        9.4151        .11442E-06   -.35233E-04
  16  Prefactor     .10000E-03    34.170       -.23674E-06** at limit **
  17  norm          .10000E-03    12.867       -.47457E-07** at limit **
  18  Prefactor     .10000E-03    7.3416        .38905E-07** at limit **
  19  Prefactor     148.05        207.38        .10450E-04    .69131E-04
  20  Prefactor     .10000E-03    8.3877       -.36485E-06** at limit **
  21  Prefactor     31.839        26.991        .34418E-06    .37680E-05
  22  norm          .10000E-03    7.3712        .83280E-07** at limit **
  23  norm          14.960        16.647       -.12763E-05   -.21613E-04
  24  Prefactor     .10000E-03    26.593        .96158E-07** at limit **
  25  Prefactor     5.7920        5.1651        .19819E-05   -.51633E-03
  26  Prefactor     20.434        31.003       -.92079E-06   -.28274E-04
  27  Prefactor     18.616        28.468        .65843E-06    .59022E-05
  28  Prefactor     10.011        22.797       -.10735E-05   -.31652E-04
  29  Normalizat    .43191        .23214       -.16554E-05   -.33333E-04
  30  Prefactor     1.0614        .14684       -.73172E-07   -.36224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.7624
  Prefactor  = 9.61842
  Prefactor  = 0.0001
  norm       = 4.88257
  norm       = 5.08283
  Prefactor  = 0.0001
  norm       = 12.9758
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.8862
  Prefactor  = 3.11399
  norm       = 1.04628
  norm       = 0.0001
  Prefactor  = 6.059
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 148.051
  Prefactor  = 0.0001
  Prefactor  = 31.8393
  norm       = 0.0001
  norm       = 14.9601
  Prefactor  = 0.0001
  Prefactor  = 5.79198
  Prefactor  = 20.4339
  Prefactor  = 18.6157
  Prefactor  = 10.0111
  Normalizat = 0.431915
  Prefactor  = 1.06139
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.259     FROM HESSE     STATUS=OK           592 CALLS     4506 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8151        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.762        40.148        .83992E-04   -1.4753    
   3  Prefactor     9.6184        17.477        .12919E-03   -1.5088    
   4  Prefactor     .10000E-03    2.7210        .11389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8826        3.7352        .10308E-03   -1.5266    
   6  norm          5.0828        5.4966        .16718E-03   -1.5257    
   7  Prefactor     .10000E-03    6.4422        .17540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.976        16.683        .11118E-03   -1.4987    
   9  Prefactor     .10000E-03    9.9941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    145.01        .44770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.886        20.049        .10053E-03   -1.4911    
  12  Prefactor     3.1140        6.6037        .22969E-03   -1.5355    
  13  norm          1.0463        .85111        .57503E-04   -1.5503    
  14  norm          .10000E-03    1.5994        .87453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0590        9.3869        .16325E-03   -1.5216    
  16  Prefactor     .10000E-03    34.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.4671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     148.05        220.20        .16567E-03   -1.3268    
  20  Prefactor     .10000E-03    8.4667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.839        26.913        .71023E-04   -1.4579    
  22  norm          .10000E-03    7.3787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.960        16.631        .10358E-03   -1.4934    
  24  Prefactor     .10000E-03    26.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.7920        5.3980        .71570E-03   -1.5227    
  26  Prefactor     20.434        30.991        .88563E-04   -1.4804    
  27  Prefactor     18.616        28.370        .92829E-04   -1.4845    
  28  Prefactor     10.011        22.710        .12675E-03   -1.5075    
  29  Normalizat    .43191        .24451        .38437E-03   -1.1568    
  30  Prefactor     1.0614        .15967        .17646E-03   -.90710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04885e-10
Minuit parameter uncertainties:
  1  1.16531e-06
  2  40.1954
  3  17.4865
  4  8.62316e-07
  5  3.7354
  6  5.49714
  7  8.84223e-07
  8  16.689
  9  6.78718e-06
  10  0.000651237
  11  20.0571
  12  6.60528
  13  0.851125
  14  1.22766e-06
  15  9.38917
  16  1.87259e-05
  17  2.39795e-05
  18  1.28337e-05
  19  221.437
  20  8.40982e-05
  21  26.9233
  22  5.83374e-06
  23  16.636
  24  1.33484e-06
  25  5.39842
  26  31.0156
  27  28.3909
  28  22.73
  29  0.245122
  30  0.15974
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.043e+01  3.102e+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.061e+00  1.597e-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:  4.319e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73411/likelihoodResults_483494401_483753601_4FGL_J2339.6+0242_daily_bin942.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) = 5019.13416208
delta logL = 0.12485925483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5019.1226873
delta logL = 0.136334031359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.522       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0472       1.0000          .0000       10.000    
     3 'Normalizat'    .44216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0553       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=   5019.123     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.486        39.118        .73738E-04   -.15572E-04
   2  Index         2.0469        .82991        .11436E-01    .33999E-05
   3  Normalizat    .44220        .22231        .37997E-03    .20944E-04
   4  Prefactor     1.0553        .15705        .17686E-03   -.51977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4856
  Index      = 2.04694
  Normalizat = 0.442203
  Prefactor  = 1.05533
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.123     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.486        38.987        .29495E-05   -1.4621    
   2  Index         2.0469        .82689        .45744E-03   -.63182    
   3  Normalizat    .44220        .22232        .15199E-04   -1.1517    
   4  Prefactor     1.0553        .15707        .35372E-04   -.90907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42065e-11
Minuit parameter uncertainties:
  1  39.0207
  2  0.832789
  3  0.222769
  4  0.157137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73411': 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) = 5019.12268671
delta logL = 0.136334626468

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.949e+01  3.902e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.047e+00  8.328e-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:  1.055e+00  1.571e-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:  4.422e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
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/73411/cmap_HighResolution_483494401_483753601_4FGL_J2339.6+0242_daily_bin942.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.78e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-30 02:52:47.099025', job_id='73411', GAL2='1.06', fit_tolerance='1e-08', EG2='0.44', EG='0.43', time_epoch_completed='1632995567.1', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.36e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='942' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 73411: <4FGL_J2339.6+0242_daily_bin942> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin942> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:51 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:40:53 2021
Terminated at Thu Sep 30 02:52:47 2021
Results reported at Thu Sep 30 02:52:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin942 354.904 2.7102 483494401 483753601 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

