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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin455
RA = 354.904, Dec = 2.7102
tmin = 357264001, tmax = 357523201
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='71645', job_status='RUN', time_executed='2021-09-30 02:37:25.368518', time_epoch_executed='1632994645.37' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71645/ft1_4FGL_J2339.6+0242_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71645/ft2_4FGL_J2339.6+0242_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71645/ft1_4FGL_J2339.6+0242_daily_bin455.fits outfile=/scratch/kocevski/71645/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin455.fits ra=354.904 dec=2.7102 rad=12.0 tmin=357264001.0 tmax=357523201.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.67
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71645/ft2_4FGL_J2339.6+0242_daily_bin455.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/71645/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin455.fits evtable="EVENTS" outfile="/scratch/kocevski/71645/ft1_filtered_4FGL_J2339.6+0242_daily_bin455.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71645/ft1_filtered_4FGL_J2339.6+0242_daily_bin455.fits" evtable="EVENTS" scfile=/scratch/kocevski/71645/ft2_4FGL_J2339.6+0242_daily_bin455.fits sctable="SC_DATA" outfile=/scratch/kocevski/71645/ltcube_357264001_357523201_4FGL_J2339.6+0242_daily_bin455.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/71645/ft2_4FGL_J2339.6+0242_daily_bin455.fits
.....................!
real 11.86
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71645/ft1_filtered_4FGL_J2339.6+0242_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/71645/ft2_4FGL_J2339.6+0242_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/71645/ltcube_357264001_357523201_4FGL_J2339.6+0242_daily_bin455.fits outfile=/scratch/kocevski/71645/expmap_357264001_357523201_4FGL_J2339.6+0242_daily_bin455.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/71645/ltcube_357264001_357523201_4FGL_J2339.6+0242_daily_bin455.fits
.....................!
real 190.34
user 185.53
sys 4.49

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/71645/ft1_filtered_4FGL_J2339.6+0242_daily_bin455.fits scfile=/scratch/kocevski/71645/ft2_4FGL_J2339.6+0242_daily_bin455.fits outfile=/scratch/kocevski/71645/cmap_357264001_357523201_4FGL_J2339.6+0242_daily_bin455.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71645/ft1_filtered_4FGL_J2339.6+0242_daily_bin455.fits scfile=/scratch/kocevski/71645/ft2_4FGL_J2339.6+0242_daily_bin455.fits outfile=/scratch/kocevski/71645/cmap_HighResolution_357264001_357523201_4FGL_J2339.6+0242_daily_bin455.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0129       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4958       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7771       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3420       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72702E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .66321       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.874       1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1033       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.501       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.555       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.713       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78035       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0043       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=   5443.225     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     3934 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4704        18.435       -.20314E-05   -.43151E-04
   2  Prefactor     5.7514        291.46        .96060E-05   -.42875E-05
   3  Prefactor     .10000E-03    5.1336       -.14824E-07** at limit **
   4  Prefactor     .10000E-03    5.6342       -.18908E-05** at limit **
   5  norm          1.4961        2.0042        .11379E-06    .40232E-04
   6  norm          2.7763        4.2955        .42441E-06    .28010E-04
   7  Prefactor     .10000E-03    5.9981        .64453E-08** at limit **
   8  norm          6.3416        11.224        .33003E-06   -.13870E-05
   9  Prefactor     .10000E-03    98.716        .13287E-06** at limit **
  10  Prefactor     .10057E-03    7.3014        .13317E-05** at limit **
  11  Prefactor     17.682        24.781        .45094E-06   -.20057E-04
  12  Prefactor     .10000E-03    3.2533        .27402E-07** at limit **
  13  norm          .66335        .72886        .15954E-06    .27901E-03
  14  norm          .10000E-03    1.4958        .17237E-07** at limit **
  15  Prefactor     3.4439        4.3847       -.42874E-07   -.57574E-04
  16  Prefactor     16.752        52.947        .64679E-06    .22005E-04
  17  norm          .10000E-03    1.8984       -.70674E-07** at limit **
  18  Prefactor     1.1000        7.0705        .34120E-05    .34759E-04
  19  Prefactor     .10000E-03    44.793        .16556E-07** at limit **
  20  Prefactor     10.501        9.4775        .14832E-06   -.14677E-04
  21  Prefactor     .10000E-03    15.475        .24039E-07** at limit **
  22  norm          .10000E-03    7.8788       -.35275E-07** at limit **
  23  norm          .10000E-03    8.9648        .61120E-07** at limit **
  24  Prefactor     .10000E-03    18.767        .33244E-07** at limit **
  25  Prefactor     .10000E-03    .94222        .46904E-07** at limit **
  26  Prefactor     49.556        37.499        .20496E-06   -.51532E-05
  27  Prefactor     15.714        22.745        .27980E-06   -.18774E-04
  28  Prefactor     .10000E-03    5.3258       -.98924E-07** at limit **
  29  Normalizat    .78031        .20373       -.68646E-06   -.16525E-03
  30  Prefactor     1.0044        .13719       -.63721E-06   -.22330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.47044
  Prefactor  = 5.75141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49609
  norm       = 2.77631
  Prefactor  = 0.0001
  norm       = 6.34158
  Prefactor  = 0.0001
  Prefactor  = 0.000100572
  Prefactor  = 17.6818
  Prefactor  = 0.0001
  norm       = 0.663355
  norm       = 0.0001
  Prefactor  = 3.44386
  Prefactor  = 16.7519
  norm       = 0.0001
  Prefactor  = 1.1
  Prefactor  = 0.0001
  Prefactor  = 10.5012
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.5561
  Prefactor  = 15.7144
  Prefactor  = 0.0001
  Normalizat = 0.780314
  Prefactor  = 1.00436
 **********
 **   18 **HESSE 
 **********

 FCN=   5443.225     FROM HESSE     STATUS=OK           590 CALLS     4524 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4704        18.230        .13042E-03   -1.5092    
   2  Prefactor     5.7514        291.12        .16375E-03   -1.5228    
   3  Prefactor     .10000E-03    5.1406        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6451        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4961        1.9822        .11620E-03   -1.5463    
   6  norm          2.7763        4.2840        .18398E-03   -1.5375    
   7  Prefactor     .10000E-03    6.0175        .17645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3416        11.215        .15939E-03   -1.5204    
   9  Prefactor     .10000E-03    100.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10057E-03    84.607        .35950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.682        24.829        .95257E-04   -1.4867    
  12  Prefactor     .10000E-03    3.2617        .12996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .66335        .69758        .63679E-03   -1.5545    
  14  norm          .10000E-03    1.4988        .88116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4439        4.3786        .16967E-03   -1.5337    
  16  Prefactor     16.752        52.675        .97501E-04   -1.4889    
  17  norm          .10000E-03    1.9024        .99278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1000        7.0880        .36647E-03   -1.5498    
  19  Prefactor     .10000E-03    44.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.501        9.4550        .12364E-03   -1.5060    
  21  Prefactor     .10000E-03    15.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.8865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.9677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .94426        .69925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.556        37.517        .56966E-04   -1.4299    
  27  Prefactor     15.714        22.782        .10104E-03   -1.4915    
  28  Prefactor     .10000E-03    5.3329        .16627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .78031        .23693        .29691E-03   -1.0080    
  30  Prefactor     1.0044        .16033        .18900E-03   -.92584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44854e-09
Minuit parameter uncertainties:
  1  18.2406
  2  82.2633
  3  1.4008e-06
  4  2.64949e-05
  5  1.98228
  6  4.28446
  7  1.33229e-06
  8  11.2182
  9  8.64243e-05
  10  0.0139303
  11  24.8439
  12  1.51418e-06
  13  0.697585
  14  5.51056e-07
  15  4.37904
  16  52.8215
  17  6.12672e-06
  18  5.58527
  19  2.16414e-06
  20  9.45635
  21  1.07197e-05
  22  5.39305e-06
  23  7.13988e-07
  24  5.48106e-06
  25  5.75808e-07
  26  37.5348
  27  22.7945
  28  1.46123e-06
  29  0.237241
  30  0.160407
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.956e+01  3.753e+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.004e+00  1.604e-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:  7.803e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.25e-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) = 5442.9902397
delta logL = 0.234336837188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5442.99013577
delta logL = 0.234440773927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.710       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0617       1.0000          .0000       10.000    
     3 'Normalizat'    .80583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5442.990     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      246 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.817        375.68        .12770E-02    .43615E-04
   2  Index         2.0634        3.1374        .18507       -.13164E-04
   3  Normalizat    .80567        .26152        .66142E-01   -.22837E-04
   4  Prefactor     .99282        .16382        .46177E-01   -.13626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.8172
  Index      = 2.06345
  Normalizat = 0.805675
  Prefactor  = 0.992819
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.990     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.817        47.897        .51079E-04   -1.4134    
   2  Index         2.0634        .65689        .95808E-02   -.62773    
   3  Normalizat    .80567        .22400        .29262E-03   -.99859    
   4  Prefactor     .99282        .15972        .18996E-03   -.92969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69455e-11
Minuit parameter uncertainties:
  1  47.9268
  2  0.659813
  3  0.224256
  4  0.159791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71645': 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) = 5442.99012951
delta logL = 0.234447030062

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.182e+01  4.793e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.063e+00  6.598e-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.928e-01  1.598e-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.057e-01  2.243e-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.06 +/- 0.66
Photon Flux (Free Index): 4.02e-08 +/- 4.13e-08
Energy Flux (Free Index): 2.39e-05 +/- 2.69e-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/71645/cmap_HighResolution_357264001_357523201_4FGL_J2339.6+0242_daily_bin455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='2.39e-05', photon_flux_error='4.54e-08', dlogl='2.34e-01', energy_flux='1.65e-05', photon_flux2='4.02e-08', job_status='DONE', time_completed='2021-09-30 02:48:22.850489', photon_index_error2='0.66', photon_index2='2.06', ts='4.10', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.69e-05', EG='0.78', time_epoch_completed='1632995302.85', return_code='0', job_id='71645', GAL2='0.99', EG2='0.81', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.13e-08', ts2='4.57', photon_index='2.55' WHERE bin_id='455' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:48:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 71645: <4FGL_J2339.6+0242_daily_bin455> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin455 354.904 2.7102 357264001 357523201 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

