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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin474
RA = 354.904, Dec = 2.7102
tmin = 362188801, tmax = 362448001
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='71674', job_status='RUN', time_executed='2021-09-30 02:38:21.524646', time_epoch_executed='1632994701.52' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71674/ft1_4FGL_J2339.6+0242_daily_bin474.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71674/ft2_4FGL_J2339.6+0242_daily_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71674/ft1_4FGL_J2339.6+0242_daily_bin474.fits outfile=/scratch/kocevski/71674/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin474.fits ra=354.904 dec=2.7102 rad=12.0 tmin=362188801.0 tmax=362448001.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 4.19
user 3.93
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71674/ft2_4FGL_J2339.6+0242_daily_bin474.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/71674/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin474.fits evtable="EVENTS" outfile="/scratch/kocevski/71674/ft1_filtered_4FGL_J2339.6+0242_daily_bin474.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/71674/ft1_filtered_4FGL_J2339.6+0242_daily_bin474.fits" evtable="EVENTS" scfile=/scratch/kocevski/71674/ft2_4FGL_J2339.6+0242_daily_bin474.fits sctable="SC_DATA" outfile=/scratch/kocevski/71674/ltcube_362188801_362448001_4FGL_J2339.6+0242_daily_bin474.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/71674/ft2_4FGL_J2339.6+0242_daily_bin474.fits
.....................!
real 12.16
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71674/ft1_filtered_4FGL_J2339.6+0242_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/71674/ft2_4FGL_J2339.6+0242_daily_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/71674/ltcube_362188801_362448001_4FGL_J2339.6+0242_daily_bin474.fits outfile=/scratch/kocevski/71674/expmap_362188801_362448001_4FGL_J2339.6+0242_daily_bin474.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/71674/ltcube_362188801_362448001_4FGL_J2339.6+0242_daily_bin474.fits
.....................!
real 190.27
user 185.15
sys 4.78

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/71674/ft1_filtered_4FGL_J2339.6+0242_daily_bin474.fits scfile=/scratch/kocevski/71674/ft2_4FGL_J2339.6+0242_daily_bin474.fits outfile=/scratch/kocevski/71674/cmap_362188801_362448001_4FGL_J2339.6+0242_daily_bin474.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/71674/ft1_filtered_4FGL_J2339.6+0242_daily_bin474.fits scfile=/scratch/kocevski/71674/ft2_4FGL_J2339.6+0242_daily_bin474.fits outfile=/scratch/kocevski/71674/cmap_HighResolution_362188801_362448001_4FGL_J2339.6+0242_daily_bin474.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.75
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1788       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.677       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1307       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3549       1.0000         .10000E-03   10000.    
     8 'norm      '    .14176E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.548       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9427       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3634       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5075       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.755       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17525E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10736E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.385       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.475       1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.076       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.060       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.8449       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.3144       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .42416       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1919       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5442.855     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     3243 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1784        1.1424        .55028E-06    .36092E-03
   2  Prefactor     21.676        1.0472       -.22217E-06    .21984E-03
   3  Prefactor     .10001E-03    7.0282       -.53117E-05** at limit **
   4  Prefactor     .10000E-03    4.0115        .98680E-07** at limit **
   5  norm          5.1309        3.0947       -.25248E-06    .26897E-05
   6  norm          6.1360        4.5954       -.37521E-05   -.23330E-03
   7  Prefactor     8.3554        1.0940       -.11592E-06    .28381E-03
   8  norm          .10060E-03    224.85       -.24411E-04** at limit **
   9  Prefactor     45.036        1.0439       -.15061E-06    .40847E-03
  10  Prefactor     .10000E-03    3.0756        .42102E-06** at limit **
  11  Prefactor     14.549        1.2874       -.60040E-06   -.33057E-03
  12  Prefactor     8.9418        1.4671        .10955E-05    .19997E-03
  13  norm          1.3606        1.0657        .17538E-06    .61661E-04
  14  norm          5.5069        1.1355       -.77603E-06    .54734E-04
  15  Prefactor     11.092        1.1165        .29452E-06    .41593E-03
  16  Prefactor     .10001E-03    9.2722        .72363E-05** at limit **
  17  norm          .10000E-03    2.4408        .32002E-06** at limit **
  18  Prefactor     10.755        1.3022       -.36640E-07    .54305E-03
  19  Prefactor     .10777E-03    32.504        .55063E-05** at limit **
  20  Prefactor     .10001E-03    8.0379        .88396E-05** at limit **
  21  Prefactor     13.388        3.4632       -.29589E-05    .42730E-03
  22  norm          .10001E-03    6.7648       -.79756E-05** at limit **
  23  norm          13.460        15.741        .13625E-04    .65641E-03
  24  Prefactor     33.061        3.6709       -.19751E-05    .29291E-02
  25  Prefactor     12.043        5.9486       -.20046E-05   -.86692E-04
  26  Prefactor     9.8483        2.8184       -.27515E-05    .56386E-03
  27  Prefactor     .10000E-03    22.970       -.35436E-06** at limit **
  28  Prefactor     7.3168        4.6689       -.53910E-05   -.20827E-03
  29  Normalizat    .42413        .23668        .56894E-05    .29517E-04
  30  Prefactor     1.1920        .16783       -.10846E-05    .62277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.1784
  Prefactor  = 21.6758
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 5.13086
  norm       = 6.13602
  Prefactor  = 8.35542
  norm       = 0.000100601
  Prefactor  = 45.0359
  Prefactor  = 0.0001
  Prefactor  = 14.5493
  Prefactor  = 8.94178
  norm       = 1.36063
  norm       = 5.50691
  Prefactor  = 11.0921
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 10.7553
  Prefactor  = 0.000107773
  Prefactor  = 0.000100008
  Prefactor  = 13.3877
  norm       = 0.000100014
  norm       = 13.46
  Prefactor  = 33.0609
  Prefactor  = 12.0432
  Prefactor  = 9.84832
  Prefactor  = 0.0001
  Prefactor  = 7.31683
  Normalizat = 0.424129
  Prefactor  = 1.19199
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.855     FROM HESSE     STATUS=OK           658 CALLS     3901 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1784        11.303        .37428E-02   -1.5172    
   2  Prefactor     21.676        44.422        .21507E-02   -1.4776    
   3  Prefactor     .10001E-03    10.886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1309        3.1385        .44373E-02   -1.5255    
   6  norm          6.1360        4.7020        .40518E-02   -1.5212    
   7  Prefactor     8.3554        10.814        .34673E-02   -1.5130    
   8  norm          .10060E-03    13.171        .90937E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.036        37.595        .14936E-02   -1.4365    
  10  Prefactor     .10000E-03    3.0719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.549        13.517        .26252E-02   -1.4945    
  12  Prefactor     8.9418        15.414        .33508E-02   -1.5110    
  13  norm          1.3606        1.1029        .93460E-02   -1.5475    
  14  norm          5.5069        9.7742        .42801E-02   -1.5239    
  15  Prefactor     11.092        9.3959        .30073E-02   -1.5042    
  16  Prefactor     .10001E-03    11.317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.755        7.8368        .30542E-02   -1.5052    
  19  Prefactor     .10777E-03    266.40        .10172E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    9.2655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.388        19.189        .27371E-02   -1.4976    
  22  norm          .10001E-03    9.5681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.460        17.188        .27279E-02   -1.4974    
  24  Prefactor     33.061        57.700        .17419E-02   -1.4557    
  25  Prefactor     12.043        6.1086        .28838E-02   -1.5014    
  26  Prefactor     9.8483        21.400        .31928E-02   -1.5080    
  27  Prefactor     .10000E-03    22.787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.3168        17.206        .37076E-02   -1.5167    
  29  Normalizat    .42413        .24811        .92220E-01   -1.1607    
  30  Prefactor     1.1920        .16192        .34824E-01   -.86578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26568e-07
Minuit parameter uncertainties:
  1  11.306
  2  44.4901
  3  0.000807391
  4  7.96942e-06
  5  3.1386
  6  4.7023
  7  10.8165
  8  0.00562703
  9  37.615
  10  3.51844e-06
  11  13.5196
  12  15.4211
  13  1.10295
  14  9.77698
  15  9.39714
  16  0.000611667
  17  3.47237e-06
  18  7.83756
  19  0.0914201
  20  0.000553172
  21  19.1983
  22  0.000724481
  23  17.1945
  24  57.7972
  25  6.10893
  26  21.4162
  27  1.47853e-05
  28  17.2171
  29  0.248758
  30  0.161991
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  9.848e+00  2.142e+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.192e+00  1.620e-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.241e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71674/likelihoodResults_362188801_362448001_4FGL_J2339.6+0242_daily_bin474.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) = 5442.5202123
delta logL = 0.334731160794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5442.46230983
delta logL = 0.392633636012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.501       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6260       1.0000          .0000       10.000    
     3 'Normalizat'    .43639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1838       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=   5442.462     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      222 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.465        26.012        .23934E-02    .26318E-04
   2  Index         1.6253        .63270        .28514       -.38946E-04
   3  Normalizat    .43623        .21416        .90951E-01    .42908E-04
   4  Prefactor     1.1840        .15765        .35026E-01   -.15442E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4651
  Index      = 1.62527
  Normalizat = 0.436232
  Prefactor  = 1.18396
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.462     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.465        25.328        .47869E-03   -1.4872    
   2  Index         1.6253        .77384        .11521E-01   -.74089    
   3  Normalizat    .43623        .22472        .40294E-03   -1.1547    
   4  Prefactor     1.1840        .16608        .18523E-03   -.86826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09932e-09
Minuit parameter uncertainties:
  1  25.3438
  2  0.779627
  3  0.225184
  4  0.166155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71674': 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) = 5442.46230807
delta logL = 0.392635387642

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.747e+01  2.534e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.625e+00  7.796e-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.184e+00  1.662e-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.362e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.63 +/- 0.78
Photon Flux (Free Index): 7.75e-09 +/- 1.26e-08
Energy Flux (Free Index): 1.61e-05 +/- 3.56e-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/71674/cmap_HighResolution_362188801_362448001_4FGL_J2339.6+0242_daily_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='3.93e-01', photon_flux2='7.75e-09', job_status='DONE', time_completed='2021-09-30 02:50:00.517388', photon_index_error2='0.78', photon_index2='1.63', ts='0.30', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='3.56e-05', EG='0.42', time_epoch_completed='1632995400.52', return_code='0', job_id='71674', GAL2='1.18', EG2='0.44', return_code2='0', photon_flux_error2='1.26e-08', ts2='1.09', photon_index='2.55' WHERE bin_id='474' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 71674: <4FGL_J2339.6+0242_daily_bin474> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin474 354.904 2.7102 362188801 362448001 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 :                                   696.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

