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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin419
RA = 354.904, Dec = 2.7102
tmin = 347932801, tmax = 348192001
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='71572', job_status='RUN', time_executed='2021-09-30 02:37:30.688150', time_epoch_executed='1632994650.69' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71572/ft1_4FGL_J2339.6+0242_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71572/ft2_4FGL_J2339.6+0242_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71572/ft1_4FGL_J2339.6+0242_daily_bin419.fits outfile=/scratch/kocevski/71572/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin419.fits ra=354.904 dec=2.7102 rad=12.0 tmin=347932801.0 tmax=348192001.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.41
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71572/ft2_4FGL_J2339.6+0242_daily_bin419.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/71572/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin419.fits evtable="EVENTS" outfile="/scratch/kocevski/71572/ft1_filtered_4FGL_J2339.6+0242_daily_bin419.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71572/ft1_filtered_4FGL_J2339.6+0242_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/71572/ft2_4FGL_J2339.6+0242_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/71572/ltcube_347932801_348192001_4FGL_J2339.6+0242_daily_bin419.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/71572/ft2_4FGL_J2339.6+0242_daily_bin419.fits
.....................!
real 11.80
user 11.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71572/ft1_filtered_4FGL_J2339.6+0242_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/71572/ft2_4FGL_J2339.6+0242_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/71572/ltcube_347932801_348192001_4FGL_J2339.6+0242_daily_bin419.fits outfile=/scratch/kocevski/71572/expmap_347932801_348192001_4FGL_J2339.6+0242_daily_bin419.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/71572/ltcube_347932801_348192001_4FGL_J2339.6+0242_daily_bin419.fits
.....................!
real 190.67
user 185.89
sys 4.35

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/71572/ft1_filtered_4FGL_J2339.6+0242_daily_bin419.fits scfile=/scratch/kocevski/71572/ft2_4FGL_J2339.6+0242_daily_bin419.fits outfile=/scratch/kocevski/71572/cmap_347932801_348192001_4FGL_J2339.6+0242_daily_bin419.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/71572/ft1_filtered_4FGL_J2339.6+0242_daily_bin419.fits scfile=/scratch/kocevski/71572/ft2_4FGL_J2339.6+0242_daily_bin419.fits outfile=/scratch/kocevski/71572/cmap_HighResolution_347932801_348192001_4FGL_J2339.6+0242_daily_bin419.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7211       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7654       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0968       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5442       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12549E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8659       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.453       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26641E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10478E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.7827       1.0000         .10000E-03   10000.    
    24 'Prefactor '    102.35       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    70.883       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.2598       1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.504       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83266       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93328       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=   5385.801     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3910 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6199       -.21268E-06** at limit **
   2  Prefactor     .10000E-03    17.113        .62009E-06** at limit **
   3  Prefactor     15.574        16.843        .12573E-06    .10699E-04
   4  Prefactor     .10000E-03    1.6915       -.93382E-08** at limit **
   5  norm          2.7198        3.2155       -.65583E-06   -.13914E-03
   6  norm          .10000E-03    1.2083        .54328E-07** at limit **
   7  Prefactor     .10000E-03    10.753        .15056E-05** at limit **
   8  norm          .10000E-03    8.9931        .52398E-06** at limit **
   9  Prefactor     .10000E-03    13.280       -.12238E-05** at limit **
  10  Prefactor     11.339        11.701       -.30800E-06   -.12062E-04
  11  Prefactor     .10000E-03    10.051       -.10289E-05** at limit **
  12  Prefactor     .10000E-03    5.9664        .10846E-05** at limit **
  13  norm          2.7661        1.5122       -.48764E-07   -.34467E-04
  14  norm          3.0939        5.7962       -.81035E-06   -.14313E-03
  15  Prefactor     5.5424        7.8943       -.26164E-06    .13414E-04
  16  Prefactor     .10000E-03    24.077       -.34152E-06** at limit **
  17  norm          .10000E-03    12.076        .35582E-06** at limit **
  18  Prefactor     7.8620        6.8927       -.58493E-07    .50407E-04
  19  Prefactor     .10000E-03    70.919       -.36562E-05** at limit **
  20  Prefactor     18.374        24.711        .55250E-07    .17061E-04
  21  Prefactor     .10000E-03    72.639       -.10048E-04** at limit **
  22  norm          .10000E-03    6.2596        .21349E-07** at limit **
  23  norm          8.9716        42.292       -.12485E-05   -.61312E-05
  24  Prefactor     102.44        74.607       -.54902E-05   -.66365E-04
  25  Prefactor     .10000E-03    1.6911       -.41250E-06** at limit **
  26  Prefactor     70.868        43.845       -.12580E-05   -.81985E-05
  27  Prefactor     7.2561        21.403       -.16647E-05   -.73013E-05
  28  Prefactor     30.487        18.615       -.27320E-06    .17666E-04
  29  Normalizat    .83318        .23434        .38778E-05   -.53765E-04
  30  Prefactor     .93291        .15116       -.12266E-05    .26851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5735
  Prefactor  = 0.0001
  norm       = 2.71978
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76608
  norm       = 3.09395
  Prefactor  = 5.54241
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.86205
  Prefactor  = 0.0001
  Prefactor  = 18.3743
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 8.97161
  Prefactor  = 102.436
  Prefactor  = 0.0001
  Prefactor  = 70.8681
  Prefactor  = 7.25614
  Prefactor  = 30.4871
  Normalizat = 0.833184
  Prefactor  = 0.932905
 **********
 **   18 **HESSE 
 **********

 FCN=   5385.801     FROM HESSE     STATUS=OK           586 CALLS     4496 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.574        16.822        .10151E-03   -1.4918    
   4  Prefactor     .10000E-03    1.6919        .93214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7198        3.2076        .12839E-03   -1.5378    
   6  norm          .10000E-03    1.2108        .78775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.0211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.339        11.704        .11897E-03   -1.5034    
  11  Prefactor     .10000E-03    10.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.358        .33197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7661        1.5043        .59909E-04   -1.5375    
  14  norm          3.0939        5.6943        .22760E-03   -1.5356    
  15  Prefactor     5.5424        7.8221        .17063E-03   -1.5237    
  16  Prefactor     .10000E-03    24.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8620        6.8296        .14297E-03   -1.5147    
  19  Prefactor     .10000E-03    71.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.374        24.842        .93237E-04   -1.4850    
  21  Prefactor     .10000E-03    72.302        .53730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2632        .17933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.9716        42.803        .13525E-03   -1.5109    
  24  Prefactor     102.44        75.130        .19871E-03   -1.3680    
  25  Prefactor     .10000E-03    1.6966        .93162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     70.868        43.821        .47681E-04   -1.4022    
  27  Prefactor     7.2561        21.389        .14887E-03   -1.5169    
  28  Prefactor     30.487        18.624        .72544E-04   -1.4603    
  29  Normalizat    .83318        .26149        .30444E-03   -.98849    
  30  Prefactor     .93291        .17339        .20152E-03   -.95001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91004e-10
Minuit parameter uncertainties:
  1  1.03172e-05
  2  1.38596e-05
  3  16.8273
  4  3.61798e-07
  5  3.20775
  6  9.09005e-07
  7  6.374e-06
  8  2.96045e-06
  9  4.29785e-05
  10  11.7068
  11  3.74561e-05
  12  3.41329e-05
  13  1.50431
  14  5.69532
  15  7.82358
  16  1.73375e-05
  17  3.85844e-05
  18  6.83029
  19  0.000204622
  20  24.8558
  21  0.000434333
  22  2.11981e-06
  23  39.2379
  24  75.1997
  25  3.2325e-06
  26  43.8408
  27  21.4111
  28  18.6273
  29  0.26189
  30  0.173496
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.087e+01  4.384e+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:  9.329e-01  1.735e-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.332e-01  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.58e-08 +/- 5.30e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.46e-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) = 5385.65541885
delta logL = 0.146038836846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5385.65481268
delta logL = 0.146645012667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.738       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2820       1.0000          .0000       10.000    
     3 'Normalizat'    .84799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92357       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=   5385.655     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      297 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.771        64.298        .20978E-03    .88877E-05
   2  Index         2.2823        .46984        .60091E-02    .21993E-03
   3  Normalizat    .84768        .24398        .30208E-03   -.18102E-04
   4  Prefactor     .92370        .17057        .20235E-03    .27698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.7714
  Index      = 2.28231
  Normalizat = 0.847682
  Prefactor  = 0.9237
 **********
 **   18 **HESSE 
 **********

 FCN=   5385.655     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.771        63.242        .83912E-05   -1.3789    
   2  Index         2.2823        .46205        .12018E-02   -.57465    
   3  Normalizat    .84768        .24418        .12083E-04   -.98324    
   4  Prefactor     .92370        .17070        .80941E-05   -.95318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00223e-11
Minuit parameter uncertainties:
  1  63.2887
  2  0.462987
  3  0.244499
  4  0.170797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71572': 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) = 5385.65481116
delta logL = 0.146646527082

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  9.177e+01  6.329e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.282e+00  4.630e-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:  9.237e-01  1.708e-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.477e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.28 +/- 0.46
Photon Flux (Free Index): 7.76e-08 +/- 5.10e-08
Energy Flux (Free Index): 3.02e-05 +/- 2.35e-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/71572/cmap_HighResolution_347932801_348192001_4FGL_J2339.6+0242_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.58e-08', energy_flux2='3.02e-05', photon_flux_error='5.30e-08', dlogl='1.47e-01', energy_flux='2.36e-05', photon_flux2='7.76e-08', job_status='DONE', time_completed='2021-09-30 02:48:28.294626', photon_index_error2='0.46', photon_index2='2.28', ts='4.27', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='0.83', time_epoch_completed='1632995308.29', return_code='0', job_id='71572', GAL2='0.92', EG2='0.85', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.10e-08', ts2='4.55', photon_index='2.55' WHERE bin_id='419' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:48:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 71572: <4FGL_J2339.6+0242_daily_bin419> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin419 354.904 2.7102 347932801 348192001 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 :                                   654.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

