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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin548
RA = 354.904, Dec = 2.7102
tmin = 381369601, tmax = 381628801
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='71801', job_status='RUN', time_executed='2021-09-30 02:38:31.011258', time_epoch_executed='1632994711.01' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71801

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71801/ft1_4FGL_J2339.6+0242_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71801/ft2_4FGL_J2339.6+0242_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71801/ft1_4FGL_J2339.6+0242_daily_bin548.fits outfile=/scratch/kocevski/71801/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin548.fits ra=354.904 dec=2.7102 rad=12.0 tmin=381369601.0 tmax=381628801.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.55
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71801/ft2_4FGL_J2339.6+0242_daily_bin548.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/71801/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin548.fits evtable="EVENTS" outfile="/scratch/kocevski/71801/ft1_filtered_4FGL_J2339.6+0242_daily_bin548.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/71801/ft1_filtered_4FGL_J2339.6+0242_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/71801/ft2_4FGL_J2339.6+0242_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/71801/ltcube_381369601_381628801_4FGL_J2339.6+0242_daily_bin548.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/71801/ft2_4FGL_J2339.6+0242_daily_bin548.fits
.....................!
real 11.66
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71801/ft1_filtered_4FGL_J2339.6+0242_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/71801/ft2_4FGL_J2339.6+0242_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/71801/ltcube_381369601_381628801_4FGL_J2339.6+0242_daily_bin548.fits outfile=/scratch/kocevski/71801/expmap_381369601_381628801_4FGL_J2339.6+0242_daily_bin548.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/71801/ltcube_381369601_381628801_4FGL_J2339.6+0242_daily_bin548.fits
.....................!
real 192.40
user 187.02
sys 5.03

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/71801/ft1_filtered_4FGL_J2339.6+0242_daily_bin548.fits scfile=/scratch/kocevski/71801/ft2_4FGL_J2339.6+0242_daily_bin548.fits outfile=/scratch/kocevski/71801/cmap_381369601_381628801_4FGL_J2339.6+0242_daily_bin548.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/71801/ft1_filtered_4FGL_J2339.6+0242_daily_bin548.fits scfile=/scratch/kocevski/71801/ft2_4FGL_J2339.6+0242_daily_bin548.fits outfile=/scratch/kocevski/71801/cmap_HighResolution_381369601_381628801_4FGL_J2339.6+0242_daily_bin548.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    111.91       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.780       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8276       1.0000         .10000E-03   10000.    
     8 'norm      '    14.253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6767       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0785       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0839       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9045       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52784       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.357       1.0000         .10000E-03   10000.    
    22 'norm      '    23.216       1.0000         .10000E-03   10000.    
    23 'norm      '    13.215       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.664       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.801       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.757       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87955       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85797       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=   5276.627     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3920 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.409       -.25046E-05** at limit **
   2  Prefactor     111.92        78.187        .42170E-05    .24608E-04
   3  Prefactor     .10000E-03    11.304        .22723E-05** at limit **
   4  Prefactor     .10000E-03    4.7458        .12304E-06** at limit **
   5  norm          .10000E-03    1.0180       -.31644E-08** at limit **
   6  norm          13.780        6.1393       -.12957E-05   -.61229E-04
   7  Prefactor     3.8286        9.8790       -.45231E-06   -.16530E-04
   8  norm          14.254        12.431        .10093E-06    .15147E-05
   9  Prefactor     .10000E-03    16.477        .15527E-06** at limit **
  10  Prefactor     9.0466        18.217        .65818E-07   -.10550E-03
  11  Prefactor     9.6782        14.666        .27840E-06   -.15664E-05
  12  Prefactor     .10000E-03    3.3580       -.11999E-06** at limit **
  13  norm          1.0783        1.0624       -.82973E-07   -.19440E-03
  14  norm          4.0842        4.7646        .14302E-05    .25811E-04
  15  Prefactor     .10000E-03    4.7281       -.23497E-06** at limit **
  16  Prefactor     .10000E-03    61.358        .10391E-05** at limit **
  17  norm          2.9063        3.0604        .21456E-06   -.84272E-03
  18  Prefactor     .53545        5.0503        .29215E-06   -.17026E-03
  19  Prefactor     .10000E-03    131.51       -.13372E-05** at limit **
  20  Prefactor     .10000E-03    5.8006        .47667E-07** at limit **
  21  Prefactor     63.353        31.524       -.68491E-06   -.41587E-04
  22  norm          23.217        21.588        .26650E-07   -.18978E-04
  23  norm          13.210        19.718        .29998E-06    .16509E-05
  24  Prefactor     23.665        46.139        .29364E-06    .69797E-06
  25  Prefactor     .10000E-03    3.0192       -.32159E-07** at limit **
  26  Prefactor     38.797        36.127       -.13766E-05   -.68652E-05
  27  Prefactor     .10000E-03    27.302       -.44115E-06** at limit **
  28  Prefactor     12.758        16.477       -.61195E-07   -.46223E-05
  29  Normalizat    .87948        .21254        .21903E-06   -.47648E-04
  30  Prefactor     .85798        .14073        .71295E-07   -.48868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 111.917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.7799
  Prefactor  = 3.82865
  norm       = 14.2544
  Prefactor  = 0.0001
  Prefactor  = 9.0466
  Prefactor  = 9.67817
  Prefactor  = 0.0001
  norm       = 1.07827
  norm       = 4.08423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9063
  Prefactor  = 0.535452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.3528
  norm       = 23.2165
  norm       = 13.2102
  Prefactor  = 23.6649
  Prefactor  = 0.0001
  Prefactor  = 38.7967
  Prefactor  = 0.0001
  Prefactor  = 12.7581
  Normalizat = 0.879481
  Prefactor  = 0.857985
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.627     FROM HESSE     STATUS=OK           590 CALLS     4510 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     111.92        78.489        .38025E-04   -1.3588    
   3  Prefactor     .10000E-03    11.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7706        .15440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0506        .14305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.780        6.1358        .10790E-03   -1.4965    
   7  Prefactor     3.8286        9.8718        .20629E-03   -1.5317    
   8  norm          14.254        12.437        .10609E-03   -1.4953    
   9  Prefactor     .10000E-03    16.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0466        18.253        .66625E-03   -1.5106    
  11  Prefactor     9.6782        14.670        .12882E-03   -1.5086    
  12  Prefactor     .10000E-03    3.3647        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0783        1.0325        .70174E-04   -1.5500    
  14  norm          4.0842        4.7545        .16505E-03   -1.5304    
  15  Prefactor     .10000E-03    4.7448        .15421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    61.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9063        9.3855        .11921E-02   -1.5367    
  18  Prefactor     .53545        42.889        .28449E-02   -1.5562    
  19  Prefactor     .10000E-03    131.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8156        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.353        31.676        .50415E-04   -1.4114    
  22  norm          23.217        21.634        .83133E-04   -1.4744    
  23  norm          13.210        19.618        .11019E-03   -1.4981    
  24  Prefactor     23.665        46.184        .82343E-04   -1.4735    
  25  Prefactor     .10000E-03    3.0659        .12269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     38.797        36.186        .64346E-04   -1.4461    
  27  Prefactor     .10000E-03    27.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.758        16.531        .11215E-03   -1.4993    
  29  Normalizat    .87948        .24884        .28824E-03   -.97185    
  30  Prefactor     .85798        .16503        .20320E-03   -.97625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67948e-09
Minuit parameter uncertainties:
  1  5.38308e-05
  2  78.5619
  3  8.65724e-06
  4  2.03754e-05
  5  2.32231e-07
  6  6.1361
  7  9.87602
  8  12.4393
  9  2.12802e-06
  10  18.2639
  11  14.6753
  12  6.58464e-06
  13  1.03249
  14  4.75498
  15  1.11043e-06
  16  1.09189e-05
  17  9.3903
  18  9.59057
  19  2.80255e-05
  20  2.9432e-06
  21  31.6839
  22  21.6408
  23  19.6271
  24  46.2537
  25  4.78647e-06
  26  36.2063
  27  2.9168e-05
  28  16.5372
  29  0.249167
  30  0.165128
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.880e+01  3.621e+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:  8.580e-01  1.651e-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:  8.795e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.70e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/71801/likelihoodResults_381369601_381628801_4FGL_J2339.6+0242_daily_bin548.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) = 5276.62501004
delta logL = 0.0016612686195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5276.6241917
delta logL = 0.00247961586228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.513       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5003       1.0000          .0000       10.000    
     3 'Normalizat'    .88102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85717       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=   5276.624     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      230 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.513        1092.4        .15744E-02   -.82123E-04
   2  Index         2.5003        6.2156        .21169        .50777E-04
   3  Normalizat    .88097        .81520E-01    .65112E-01    .15434E-04
   4  Prefactor     .85720        .53705E-01    .44457E-01    .64091E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.513
  Index      = 2.50035
  Normalizat = 0.880973
  Prefactor  = 0.857204
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.624     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.513        45.624        .62976E-04   -1.4434    
   2  Index         2.5003        .70385        .73638E-02   -.52352    
   3  Normalizat    .88097        .23390        .28802E-03   -.97132    
   4  Prefactor     .85720        .16324        .20328E-03   -.97653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36424e-09
Minuit parameter uncertainties:
  1  45.6633
  2  0.706982
  3  0.234169
  4  0.163334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71801': 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) = 5276.62419168
delta logL = 0.0024796356638

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.051e+01  4.566e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.500e+00  7.070e-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:  8.572e-01  1.633e-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:  8.810e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.50 +/- 0.71
Photon Flux (Free Index): 4.58e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.37e-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/71801/cmap_HighResolution_381369601_381628801_4FGL_J2339.6+0242_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.70e-08', energy_flux2='1.33e-05', photon_flux_error='4.38e-08', dlogl='2.48e-03', energy_flux='1.29e-05', photon_flux2='4.58e-08', job_status='DONE', time_completed='2021-09-30 02:50:37.676573', photon_index_error2='0.71', photon_index2='2.50', ts='1.78', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.37e-05', EG='0.88', time_epoch_completed='1632995437.68', return_code='0', job_id='71801', GAL2='0.86', EG2='0.88', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.52e-08', ts2='1.77', photon_index='2.55' WHERE bin_id='548' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 71801: <4FGL_J2339.6+0242_daily_bin548> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin548 354.904 2.7102 381369601 381628801 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

