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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin693
RA = 354.904, Dec = 2.7102
tmin = 418953601, tmax = 419212801
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='73040', job_status='RUN', time_executed='2021-09-30 02:42:21.839753', time_epoch_executed='1632994941.84' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73040

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73040/ft1_4FGL_J2339.6+0242_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73040/ft2_4FGL_J2339.6+0242_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73040/ft1_4FGL_J2339.6+0242_daily_bin693.fits outfile=/scratch/kocevski/73040/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin693.fits ra=354.904 dec=2.7102 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.59
user 5.30
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73040/ft1_filtered_4FGL_J2339.6+0242_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/73040/ft2_4FGL_J2339.6+0242_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/73040/ltcube_418953601_419212801_4FGL_J2339.6+0242_daily_bin693.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/73040/ft2_4FGL_J2339.6+0242_daily_bin693.fits
.....................!
real 12.80
user 12.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73040/ft1_filtered_4FGL_J2339.6+0242_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/73040/ft2_4FGL_J2339.6+0242_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/73040/ltcube_418953601_419212801_4FGL_J2339.6+0242_daily_bin693.fits outfile=/scratch/kocevski/73040/expmap_418953601_419212801_4FGL_J2339.6+0242_daily_bin693.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/73040/ltcube_418953601_419212801_4FGL_J2339.6+0242_daily_bin693.fits
.....................!
real 191.47
user 185.81
sys 5.24

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/73040/ft1_filtered_4FGL_J2339.6+0242_daily_bin693.fits scfile=/scratch/kocevski/73040/ft2_4FGL_J2339.6+0242_daily_bin693.fits outfile=/scratch/kocevski/73040/cmap_418953601_419212801_4FGL_J2339.6+0242_daily_bin693.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73040/ft1_filtered_4FGL_J2339.6+0242_daily_bin693.fits scfile=/scratch/kocevski/73040/ft2_4FGL_J2339.6+0242_daily_bin693.fits outfile=/scratch/kocevski/73040/cmap_HighResolution_418953601_419212801_4FGL_J2339.6+0242_daily_bin693.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.647       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.681       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0317       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6432       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6316       1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4231       1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.771       1.0000         .10000E-03   10000.    
    17 'norm      '    13.247       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    207.64       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1814       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    61.002       1.0000         .10000E-03   10000.    
    23 'norm      '    .13084E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.8789       1.0000         .10000E-03   10000.    
    26 'Prefactor '    106.11       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .27507       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2688       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=   2940.241     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     4762 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.646        17.099       -.58791E-07   -.16062E-04
   2  Prefactor     51.659        84.431        .17674E-05   -.27566E-04
   3  Prefactor     .10000E-03    7.0991        .37072E-07** at limit **
   4  Prefactor     .10000E-03    13.950       -.70898E-06** at limit **
   5  norm          3.0316        2.7894        .89409E-07   -.13035E-04
   6  norm          5.6429        5.1890        .10376E-06    .68040E-04
   7  Prefactor     .10000E-03    3.8658        .18544E-07** at limit **
   8  norm          .10002E-03    94.691       -.13874E-06** at limit **
   9  Prefactor     .10000E-03    48.718       -.15475E-06** at limit **
  10  Prefactor     .10000E-03    6.8675        .54172E-08** at limit **
  11  Prefactor     .10000E-03    18.497        .94901E-06** at limit **
  12  Prefactor     2.6255        24.551        .11408E-05    .16414E-04
  13  norm          .10000E-03    .63604        .11143E-06** at limit **
  14  norm          .10000E-03    3.0143        .14210E-07** at limit **
  15  Prefactor     1.4255        37.877        .16920E-04   -.50502E-04
  16  Prefactor     72.763        106.39        .16803E-05    .15704E-04
  17  norm          13.238        14.846        .11890E-07    .74344E-03
  18  Prefactor     .10000E-03    15.748       -.11901E-05** at limit **
  19  Prefactor     207.65        307.56       -.17541E-05   -.96798E-05
  20  Prefactor     8.1652        27.902       -.29389E-05   -.13801E-03
  21  Prefactor     .10000E-03    21.863       -.51785E-06** at limit **
  22  norm          61.002        44.328        .47076E-06    .10832E-03
  23  norm          .10000E-03    68.429        .21965E-05** at limit **
  24  Prefactor     .10000E-03    195.86        .28573E-05** at limit **
  25  Prefactor     6.8685        11.493        .16673E-05   -.34479E-03
  26  Prefactor     106.10        69.600        .57494E-06    .34911E-04
  27  Prefactor     .10000E-03    11.230       -.27401E-07** at limit **
  28  Prefactor     .10000E-03    17.253        .41734E-07** at limit **
  29  Normalizat    .27534        .37733       -.71518E-05   -.56629E-05
  30  Prefactor     1.2686        .24980        .16208E-05    .49415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6461
  Prefactor  = 51.6585
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.03157
  norm       = 5.64291
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.62551
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.42547
  Prefactor  = 72.7626
  norm       = 13.2381
  Prefactor  = 0.0001
  Prefactor  = 207.647
  Prefactor  = 8.16517
  Prefactor  = 0.0001
  norm       = 61.0019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.86848
  Prefactor  = 106.105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.275337
  Prefactor  = 1.26858
 **********
 **   18 **HESSE 
 **********

 FCN=   2940.241     FROM HESSE     STATUS=OK           572 CALLS     5334 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.646        17.067        .92752E-04   -1.4844    
   2  Prefactor     51.659        83.905        .55788E-04   -1.4269    
   3  Prefactor     .10000E-03    7.1034        .14109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0316        2.7580        .82026E-04   -1.5360    
   6  norm          5.6429        5.1782        .11471E-03   -1.5233    
   7  Prefactor     .10000E-03    3.8666        .10413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    95.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    48.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8693        .13879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6255        23.990        .25137E-03   -1.5384    
  13  norm          .10000E-03    .65145        .84290E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0152        .91907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4255        37.347        .18125E-02   -1.5469    
  16  Prefactor     72.763        105.99        .47063E-04   -1.4000    
  17  norm          13.238        15.138        .11005E-03   -1.4980    
  18  Prefactor     .10000E-03    15.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     207.65        307.28        .14026E-03   -1.2816    
  20  Prefactor     8.1652        27.227        .14017E-03   -1.5136    
  21  Prefactor     .10000E-03    21.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          61.002        44.378        .51372E-04   -1.4144    
  23  norm          .10000E-03    68.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    196.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.8685        11.296        .76486E-03   -1.5184    
  26  Prefactor     106.10        69.087        .39039E-04   -1.3644    
  27  Prefactor     .10000E-03    11.236        .17749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .27534        .33128        .49759E-03   -1.2434    
  30  Prefactor     1.2686        .23020        .17703E-03   -.84246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55963e-09
Minuit parameter uncertainties:
  1  17.0719
  2  84.0981
  3  6.94575e-06
  4  0.000256721
  5  2.75808
  6  5.17863
  7  2.56864e-06
  8  0.00249071
  9  6.81382e-05
  10  1.00274e-07
  11  4.71282e-05
  12  15.881
  13  6.30265e-06
  14  1.78849e-06
  15  14.6023
  16  106.266
  17  15.1425
  18  6.90281e-05
  19  309.704
  20  27.2685
  21  2.35461e-07
  22  44.4024
  23  0.000140359
  24  0.000560674
  25  11.2998
  26  69.1395
  27  7.66349e-07
  28  1.10388e-05
  29  0.333673
  30  0.230385
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.061e+02  6.914e+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.269e+00  2.304e-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:  2.753e-01  3.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 8.36e-08
Energy Flux (Fixed Index): 3.54e-05 +/- 2.31e-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) = 2939.95767475
delta logL = 0.282873690656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2939.94358998
delta logL = 0.296958460931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.677       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2295       1.0000          .0000       10.000    
     3 'Normalizat'    .20764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3051       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=   2939.944     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.747        102.54        .55260E-04    .15006E-03
   2  Index         3.2287        1.3224        .39580E-02    .92521E-04
   3  Normalizat    .20742        .32170        .57057E-03    .20921E-05
   4  Prefactor     1.3053        .23265        .17485E-03   -.53965E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.7465
  Index      = 3.22867
  Normalizat = 0.207423
  Prefactor  = 1.30528
 **********
 **   18 **HESSE 
 **********

 FCN=   2939.944     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.747        80.078        .11052E-04   -1.4254    
   2  Index         3.2287        1.0357        .15832E-03   -.36213    
   3  Normalizat    .20742        .31660        .22823E-04   -1.2887    
   4  Prefactor     1.3053        .22915        .69941E-05   -.83150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80475e-11
Minuit parameter uncertainties:
  1  80.2421
  2  1.04439
  3  0.319406
  4  0.22933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73040': 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) = 2939.9435892
delta logL = 0.296959233919

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.305e+00  2.293e-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:  2.074e-01  3.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.23 +/- 1.04
Photon Flux (Free Index): 1.79e-07 +/- 1.16e-07
Energy Flux (Free Index): 3.25e-05 +/- 1.95e-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/73040/cmap_HighResolution_418953601_419212801_4FGL_J2339.6+0242_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.25e-05', photon_flux_error='8.36e-08', dlogl='2.97e-01', energy_flux='3.54e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-30 02:51:22.581809', photon_index_error2='1.04', photon_index2='3.23', ts='4.66', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='0.28', time_epoch_completed='1632995482.58', return_code='0', job_id='73040', GAL2='1.31', EG2='0.21', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='1.16e-07', ts2='5.42', photon_index='2.55' WHERE bin_id='693' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 73040: <4FGL_J2339.6+0242_daily_bin693> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin693> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:19 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:21 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:21 2021
Terminated at Thu Sep 30 02:51:23 2021
Results reported at Thu Sep 30 02:51:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin693 354.904 2.7102 418953601 419212801 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 :                                   531.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            664 sec.

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

