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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin258
RA = 354.904, Dec = 2.7102
tmin = 306201601, tmax = 306460801
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='69999', job_status='RUN', time_executed='2021-09-30 02:31:01.016817', time_epoch_executed='1632994261.02' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69999/ft1_4FGL_J2339.6+0242_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69999/ft2_4FGL_J2339.6+0242_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69999/ft1_4FGL_J2339.6+0242_daily_bin258.fits outfile=/scratch/kocevski/69999/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin258.fits ra=354.904 dec=2.7102 rad=12.0 tmin=306201601.0 tmax=306460801.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.51
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69999/ft1_filtered_4FGL_J2339.6+0242_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/69999/ft2_4FGL_J2339.6+0242_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/69999/ltcube_306201601_306460801_4FGL_J2339.6+0242_daily_bin258.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/69999/ft2_4FGL_J2339.6+0242_daily_bin258.fits
.....................!
real 11.61
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69999/ft1_filtered_4FGL_J2339.6+0242_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/69999/ft2_4FGL_J2339.6+0242_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/69999/ltcube_306201601_306460801_4FGL_J2339.6+0242_daily_bin258.fits outfile=/scratch/kocevski/69999/expmap_306201601_306460801_4FGL_J2339.6+0242_daily_bin258.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/69999/ltcube_306201601_306460801_4FGL_J2339.6+0242_daily_bin258.fits
.....................!
real 191.03
user 186.72
sys 3.98

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/69999/ft1_filtered_4FGL_J2339.6+0242_daily_bin258.fits scfile=/scratch/kocevski/69999/ft2_4FGL_J2339.6+0242_daily_bin258.fits outfile=/scratch/kocevski/69999/cmap_306201601_306460801_4FGL_J2339.6+0242_daily_bin258.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69999/ft1_filtered_4FGL_J2339.6+0242_daily_bin258.fits scfile=/scratch/kocevski/69999/ft2_4FGL_J2339.6+0242_daily_bin258.fits outfile=/scratch/kocevski/69999/cmap_HighResolution_306201601_306460801_4FGL_J2339.6+0242_daily_bin258.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0585       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4632       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.043       1.0000         .10000E-03   10000.    
     8 'norm      '    27.216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.656       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4818       1.0000         .10000E-03   10000.    
    19 'Prefactor '    319.51       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.913       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    98.902       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.996       1.0000         .10000E-03   10000.    
    26 'Prefactor '    82.037       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .16656       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2506       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=   5478.222     FROM MIGRAD    STATUS=CONVERGED   1348 CALLS     5178 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.822        13.243        .10069E-03    .10839E-04
   2  Prefactor     46.930        46.323        .58528E-04    .15306E-04
   3  Prefactor     42.901        23.532        .61205E-04    .27490E-04
   4  Prefactor     .10000E-03    2.5209        .11467E-02** at limit **
   5  norm          4.0580        3.4652        .11318E-03    .20090E-04
   6  norm          2.4626        4.5860        .10168E-02   -.12994E-02
   7  Prefactor     18.041        16.231        .94291E-04    .15795E-04
   8  norm          27.215        19.239        .76791E-04    .63512E-04
   9  Prefactor     .10000E-03    18.899        .18142E-02** at limit **
  10  Prefactor     .10000E-03    7.3749        .18142E-02** at limit **
  11  Prefactor     10.655        18.628        .12274E-03    .18803E-04
  12  Prefactor     .10000E-03    10.045        .18142E-02** at limit **
  13  norm          .10000E-03    .68343        .95456E-03** at limit **
  14  norm          .10000E-03    2.2119        .10738E-02** at limit **
  15  Prefactor     .10000E-03    3.3427        .13205E-02** at limit **
  16  Prefactor     .10000E-03    95.075        .18142E-02** at limit **
  17  norm          .10000E-03    18.735        .33948E-02** at limit **
  18  Prefactor     2.4755        6.5688        .25950E-03   -.22702E-03
  19  Prefactor     319.54        301.46        .11372E-03    .24653E-04
  20  Prefactor     6.4730        16.166        .15779E-03    .57281E-04
  21  Prefactor     56.911        31.631        .53175E-04   -.75085E-04
  22  norm          .10000E-03    5.3339        .16694E-02** at limit **
  23  norm          .10000E-03    29.576        .18142E-02** at limit **
  24  Prefactor     98.914        65.045        .20211E-03   -.38250E-05
  25  Prefactor     12.996        7.5064        .11111E-03    .21057E-03
  26  Prefactor     82.046        50.060        .44346E-04   -.44095E-05
  27  Prefactor     .10000E-03    43.963        .18142E-02** at limit **
  28  Prefactor     .10000E-03    5.5434        .17011E-02** at limit **
  29  Normalizat    .16664        .25344        .64121E-03   -.34964E-04
  30  Prefactor     1.2506        .16819        .17748E-03    .18436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8223
  Prefactor  = 46.9295
  Prefactor  = 42.9009
  Prefactor  = 0.0001
  norm       = 4.05802
  norm       = 2.46258
  Prefactor  = 18.0408
  norm       = 27.2154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6548
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.47551
  Prefactor  = 319.542
  Prefactor  = 6.47297
  Prefactor  = 56.9106
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 98.9138
  Prefactor  = 12.9962
  Prefactor  = 82.046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.166638
  Prefactor  = 1.25056
 **********
 **   18 **HESSE 
 **********

 FCN=   5478.222     FROM HESSE     STATUS=OK           556 CALLS     5734 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.822        13.243        .40275E-05   -1.4912    
   2  Prefactor     46.930        46.322        .11706E-04   -1.4337    
   3  Prefactor     42.901        23.530        .24482E-05   -1.4397    
   4  Prefactor     .10000E-03    2.5210        .22934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0580        3.4647        .45271E-05   -1.5305    
   6  norm          2.4626        4.5822        .40671E-04   -1.5394    
   7  Prefactor     18.041        16.220        .37717E-05   -1.4858    
   8  norm          27.215        19.240        .30717E-05   -1.4664    
   9  Prefactor     .10000E-03    18.900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.655        18.629        .49094E-05   -1.5055    
  12  Prefactor     .10000E-03    10.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .68397        .19091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2120        .21475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3428        .26410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    95.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.837        .67896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4755        6.5569        .10380E-04   -1.5393    
  19  Prefactor     319.54        301.44        .22744E-04   -1.2113    
  20  Prefactor     6.4730        16.157        .63114E-05   -1.5199    
  21  Prefactor     56.911        31.623        .10635E-04   -1.4198    
  22  norm          .10000E-03    5.3339        .33389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    29.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     98.914        65.042        .80845E-05   -1.3716    
  25  Prefactor     12.996        7.5042        .44444E-05   -1.4987    
  26  Prefactor     82.046        50.052        .88692E-05   -1.3894    
  27  Prefactor     .10000E-03    43.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.5436        .34023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .16664        .25260        .25648E-04   -1.3197    
  30  Prefactor     1.2506        .16778        .35495E-04   -.84789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91499e-09
Minuit parameter uncertainties:
  1  13.2457
  2  46.3579
  3  23.5354
  4  2.29379e-06
  5  3.46487
  6  4.58286
  7  16.2242
  8  19.244
  9  1.13836e-05
  10  1.0763e-05
  11  18.6395
  12  1.83623e-05
  13  9.49008e-06
  14  3.67958e-06
  15  4.74875e-06
  16  1.42531e-05
  17  0.000214555
  18  6.5588
  19  302.937
  20  16.1681
  21  31.632
  22  2.30788e-06
  23  5.93068e-06
  24  65.0892
  25  7.50474
  26  50.0773
  27  4.2355e-05
  28  3.08781e-06
  29  0.254376
  30  0.167854
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.205e+01  5.008e+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.251e+00  1.679e-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.666e-01  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.93e-08 +/- 6.06e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.67e-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) = 5478.17717293
delta logL = 0.0445809965286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5478.17225338
delta logL = 0.0495005457396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.394       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7817       1.0000          .0000       10.000    
     3 'Normalizat'    .14106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2629       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=   5478.172     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.411        70.256        .48186E-04   -.29402E-03
   2  Index         2.7818        .87163        .60606E-02   -.15689E-03
   3  Normalizat    .14116        .25680        .69160E-02    .24646E-03
   4  Prefactor     1.2628        .17876        .17673E-03    .16361E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.411
  Index      = 2.78183
  Normalizat = 0.141162
  Prefactor  = 1.26275
 **********
 **   18 **HESSE 
 **********

 FCN=   5478.172     FROM HESSE     STATUS=OK            27 CALLS      323 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.411        62.708        .96373E-05   -1.4040    
   2  Index         2.7818        .77231        .24242E-03   -.45965    
   3  Normalizat    .14116        .24333        .27664E-03   -1.3411    
   4  Prefactor     1.2628        .17015        .35347E-04   -.84421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65189e-09
Minuit parameter uncertainties:
  1  62.768
  2  0.776182
  3  0.245228
  4  0.170223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69999': 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) = 5478.17225239
delta logL = 0.0495015326478

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.263e+00  1.702e-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.412e-01  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.78 +/- 0.78
Photon Flux (Free Index): 1.18e-07 +/- 8.68e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.55e-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/69999/cmap_HighResolution_306201601_306460801_4FGL_J2339.6+0242_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.93e-08', energy_flux2='2.67e-05', photon_flux_error='6.06e-08', dlogl='4.95e-02', energy_flux='2.74e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-30 02:43:12.040974', photon_index_error2='0.78', photon_index2='2.78', ts='4.40', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.17', time_epoch_completed='1632994992.04', return_code='0', job_id='69999', GAL2='1.26', EG2='0.14', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='8.68e-08', ts2='4.57', photon_index='2.55' WHERE bin_id='258' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:43:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 69999: <4FGL_J2339.6+0242_daily_bin258> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin258> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:41 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:43 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:43 2021
Terminated at Thu Sep 30 02:43:12 2021
Results reported at Thu Sep 30 02:43:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin258 354.904 2.7102 306201601 306460801 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 :                                   723.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

