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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin177
RA = 354.904, Dec = 2.7102
tmin = 285206401, tmax = 285465601
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='69871', job_status='RUN', time_executed='2021-09-30 02:30:47.538913', time_epoch_executed='1632994247.54' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69871

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69871/ft1_4FGL_J2339.6+0242_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69871/ft2_4FGL_J2339.6+0242_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69871/ft1_4FGL_J2339.6+0242_daily_bin177.fits outfile=/scratch/kocevski/69871/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin177.fits ra=354.904 dec=2.7102 rad=12.0 tmin=285206401.0 tmax=285465601.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 2.75
user 2.55
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69871/ft2_4FGL_J2339.6+0242_daily_bin177.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/69871/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin177.fits evtable="EVENTS" outfile="/scratch/kocevski/69871/ft1_filtered_4FGL_J2339.6+0242_daily_bin177.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.41
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69871/ft1_filtered_4FGL_J2339.6+0242_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/69871/ft2_4FGL_J2339.6+0242_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/69871/ltcube_285206401_285465601_4FGL_J2339.6+0242_daily_bin177.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/69871/ft2_4FGL_J2339.6+0242_daily_bin177.fits
.....................!
real 9.49
user 9.19
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69871/ft1_filtered_4FGL_J2339.6+0242_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/69871/ft2_4FGL_J2339.6+0242_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/69871/ltcube_285206401_285465601_4FGL_J2339.6+0242_daily_bin177.fits outfile=/scratch/kocevski/69871/expmap_285206401_285465601_4FGL_J2339.6+0242_daily_bin177.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/69871/ltcube_285206401_285465601_4FGL_J2339.6+0242_daily_bin177.fits
.....................!
real 144.43
user 140.26
sys 3.89

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/69871/ft1_filtered_4FGL_J2339.6+0242_daily_bin177.fits scfile=/scratch/kocevski/69871/ft2_4FGL_J2339.6+0242_daily_bin177.fits outfile=/scratch/kocevski/69871/cmap_285206401_285465601_4FGL_J2339.6+0242_daily_bin177.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.45
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69871/ft1_filtered_4FGL_J2339.6+0242_daily_bin177.fits scfile=/scratch/kocevski/69871/ft2_4FGL_J2339.6+0242_daily_bin177.fits outfile=/scratch/kocevski/69871/cmap_HighResolution_285206401_285465601_4FGL_J2339.6+0242_daily_bin177.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.47
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59749E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4804       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1374       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0510       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7686       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7233       1.0000         .10000E-03   10000.    
    22 'norm      '    25.672       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    87.143       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1476       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77947       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=   5088.199     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     3958 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10040E-03    40.593        .70604E-05** at limit **
   2  Prefactor     .10010E-03    637.08        .20549E-04** at limit **
   3  Prefactor     .10000E-03    13.607        .50763E-07** at limit **
   4  Prefactor     .10000E-03    3.5490       -.35089E-07** at limit **
   5  norm          1.4808        2.7905       -.70081E-07    .29900E-04
   6  norm          6.1365        5.2698       -.65642E-08    .57043E-04
   7  Prefactor     .10000E-03    11.298       -.90560E-07** at limit **
   8  norm          .10000E-03    3.1219       -.96062E-08** at limit **
   9  Prefactor     .10000E-03    58.052        .32559E-05** at limit **
  10  Prefactor     3.0679        24.695        .15847E-05    .21468E-03
  11  Prefactor     15.101        20.237       -.11278E-06   -.54798E-06
  12  Prefactor     .10000E-03    3.4529       -.32018E-07** at limit **
  13  norm          1.0506        .90632       -.10363E-07    .90322E-04
  14  norm          .10000E-03    1.9034       -.29548E-07** at limit **
  15  Prefactor     .10000E-03    5.0133        .32251E-07** at limit **
  16  Prefactor     .10003E-03    96.364        .83831E-05** at limit **
  17  norm          6.7682        8.3239       -.12400E-06   -.22802E-06
  18  Prefactor     .10000E-03    3.9756        .21907E-07** at limit **
  19  Prefactor     .10005E-03    171.81       -.97046E-05** at limit **
  20  Prefactor     .10000E-03    7.9597       -.10840E-06** at limit **
  21  Prefactor     8.7185        29.162       -.32796E-06    .73587E-07
  22  norm          25.669        25.116       -.33738E-07    .11641E-04
  23  norm          .10000E-03    8.8399       -.30868E-07** at limit **
  24  Prefactor     .10001E-03    66.694       -.49830E-05** at limit **
  25  Prefactor     .10000E-03    3.2146       -.28446E-06** at limit **
  26  Prefactor     87.128        49.562       -.80050E-07    .16938E-04
  27  Prefactor     .10000E-03    6.0932       -.34443E-07** at limit **
  28  Prefactor     .10000E-03    32.365       -.44791E-06** at limit **
  29  Normalizat    1.1478        .21206        .77956E-06    .56328E-05
  30  Prefactor     .77943        .14193       -.60472E-07    .54569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100398
  Prefactor  = 0.000100097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.48081
  norm       = 6.13646
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.0679
  Prefactor  = 15.1015
  Prefactor  = 0.0001
  norm       = 1.05057
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 6.76817
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 8.7185
  norm       = 25.6693
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 87.1277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14777
  Prefactor  = 0.779433
 **********
 **   18 **HESSE 
 **********

 FCN=   5088.199     FROM HESSE     STATUS=OK           580 CALLS     4538 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10040E-03    77.217        .51767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10010E-03    650.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5650        .13122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4808        2.7796        .15391E-03   -1.5465    
   6  norm          6.1365        5.2662        .14656E-03   -1.5212    
   7  Prefactor     .10000E-03    11.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.1230        .12309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0679        25.835        .11566E-02   -1.5358    
  11  Prefactor     15.101        20.238        .10306E-03   -1.4931    
  12  Prefactor     .10000E-03    3.4570        .12945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0506        .90201        .60396E-04   -1.5503    
  14  norm          .10000E-03    1.9065        .96104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0242        .15593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    99.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7682        8.2937        .15423E-03   -1.5188    
  18  Prefactor     .10000E-03    3.9925        .13876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    176.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.9939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.7185        29.155        .13572E-03   -1.5117    
  22  norm          25.669        25.113        .79062E-04   -1.4694    
  23  norm          .10000E-03    8.8441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    68.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.1886        .24480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     87.128        49.612        .43038E-04   -1.3838    
  27  Prefactor     .10000E-03    6.1062        .17197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    33.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1478        .24095        .26324E-03   -.88233    
  30  Prefactor     .77943        .16449        .21498E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49271e-09
Minuit parameter uncertainties:
  1  0.0111012
  2  0.0160463
  3  2.44953e-06
  4  9.55427e-06
  5  2.77988
  6  5.26665
  7  1.83426e-05
  8  1.17467e-06
  9  0.0010704
  10  17.8157
  11  20.2471
  12  3.46093e-06
  13  0.902023
  14  2.30877e-06
  15  2.41129e-06
  16  0.00369283
  17  8.29507
  18  1.24793e-06
  19  0.00581257
  20  1.7622e-05
  21  29.2028
  22  25.1229
  23  5.32784e-06
  24  0.00186218
  25  4.13328e-05
  26  49.636
  27  4.86385e-06
  28  0.000166715
  29  0.241186
  30  0.164595
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.713e+01  4.964e+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:  7.794e-01  1.646e-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:  1.148e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.85
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.00e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.66e-05

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) = 5087.97608826
delta logL = 0.222763382722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5087.9663882
delta logL = 0.232463436159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.892       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9130       1.0000          .0000       10.000    
     3 'Normalizat'    1.1256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78981       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=   5087.966     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      307 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.813        58.324        .51419E-04    .17688E-04
   2  Index         2.9112        .61533        .46553E-02    .38198E-03
   3  Normalizat    1.1260        .23681        .26534E-03   -.81620E-04
   4  Prefactor     .79004        .16090        .21366E-03    .96413E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.8132
  Index      = 2.91122
  Normalizat = 1.12599
  Prefactor  = 0.790044
 **********
 **   18 **HESSE 
 **********

 FCN=   5087.966     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.813        54.637        .20568E-05   -1.4147    
   2  Index         2.9112        .57623        .93106E-03   -.43097    
   3  Normalizat    1.1260        .23695        .10614E-04   -.88922    
   4  Prefactor     .79004        .16093        .85466E-05   -1.0010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33083e-10
Minuit parameter uncertainties:
  1  54.6823
  2  0.577789
  3  0.237177
  4  0.161026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69871': 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) = 5087.96635428
delta logL = 0.232497361156

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.081e+01  5.468e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.911e+00  5.778e-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:  7.900e-01  1.610e-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:  1.126e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.33
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.91 +/- 0.58
Photon Flux (Free Index): 1.26e-07 +/- 7.10e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.48e-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/69871/cmap_HighResolution_285206401_285465601_4FGL_J2339.6+0242_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.63e-05', photon_flux_error='6.00e-08', dlogl='2.32e-01', energy_flux='2.91e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-30 02:39:03.973360', photon_index_error2='0.58', photon_index2='2.91', ts='4.85', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.15', time_epoch_completed='1632994743.97', return_code='0', job_id='69871', GAL2='0.79', EG2='1.13', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='7.10e-08', ts2='5.33', photon_index='2.55' WHERE bin_id='177' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:39:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 69871: <4FGL_J2339.6+0242_daily_bin177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin177 354.904 2.7102 285206401 285465601 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 :                                   491.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   512 sec.
    Turnaround time :                            513 sec.

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

