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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin913
RA = 354.904, Dec = 2.7102
tmin = 475977601, tmax = 476236801
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='73368', job_status='RUN', time_executed='2021-09-30 02:40:58.845417', time_epoch_executed='1632994858.85' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73368/ft1_4FGL_J2339.6+0242_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73368/ft2_4FGL_J2339.6+0242_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73368/ft1_4FGL_J2339.6+0242_daily_bin913.fits outfile=/scratch/kocevski/73368/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin913.fits ra=354.904 dec=2.7102 rad=12.0 tmin=475977601.0 tmax=476236801.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.53
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73368/ft1_filtered_4FGL_J2339.6+0242_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/73368/ft2_4FGL_J2339.6+0242_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/73368/ltcube_475977601_476236801_4FGL_J2339.6+0242_daily_bin913.fits outfile=/scratch/kocevski/73368/expmap_475977601_476236801_4FGL_J2339.6+0242_daily_bin913.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/73368/ltcube_475977601_476236801_4FGL_J2339.6+0242_daily_bin913.fits
.....................!
real 189.86
user 184.57
sys 4.99

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/73368/ft1_filtered_4FGL_J2339.6+0242_daily_bin913.fits scfile=/scratch/kocevski/73368/ft2_4FGL_J2339.6+0242_daily_bin913.fits outfile=/scratch/kocevski/73368/cmap_475977601_476236801_4FGL_J2339.6+0242_daily_bin913.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73368/ft1_filtered_4FGL_J2339.6+0242_daily_bin913.fits scfile=/scratch/kocevski/73368/ft2_4FGL_J2339.6+0242_daily_bin913.fits outfile=/scratch/kocevski/73368/cmap_HighResolution_475977601_476236801_4FGL_J2339.6+0242_daily_bin913.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9721       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.7493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.772       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6992       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .79229       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20019E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.402       1.0000         .10000E-03   10000.    
    17 'norm      '    32.543       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.406       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.275       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.8320       1.0000         .10000E-03   10000.    
    26 'Prefactor '    69.913       1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.300       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78286       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1091       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=   6095.741     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3959 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.125        .43052E-05** at limit **
   2  Prefactor     .10000E-03    15.967        .33861E-05** at limit **
   3  Prefactor     .10000E-03    6.8509        .50807E-05** at limit **
   4  Prefactor     .10000E-03    2.4106       -.40075E-07** at limit **
   5  norm          .10000E-03    1.5224        .82165E-07** at limit **
   6  norm          4.9716        5.5479       -.89572E-07   -.39803E-03
   7  Prefactor     .10000E-03    8.5108        .46782E-05** at limit **
   8  norm          8.7479        13.683        .14661E-05   -.25764E-04
   9  Prefactor     13.772        35.602        .79285E-06    .11623E-04
  10  Prefactor     6.6986        10.376        .60530E-06   -.10813E-04
  11  Prefactor     .10000E-03    11.705       -.34510E-05** at limit **
  12  Prefactor     .10000E-03    3.3862        .19513E-07** at limit **
  13  norm          .79214        .91039       -.57776E-06   -.15796E-02
  14  norm          1.3044        3.5614       -.73673E-06   -.77966E-03
  15  Prefactor     .10034E-03    14.532       -.17664E-05** at limit **
  16  Prefactor     19.401        29.050        .26350E-05    .10223E-04
  17  norm          32.552        13.020       -.29660E-05    .34513E-03
  18  Prefactor     .10000E-03    5.3983        .17668E-05** at limit **
  19  Prefactor     21.452        230.97        .87064E-04    .63662E-05
  20  Prefactor     .10000E-03    4.2794       -.76191E-07** at limit **
  21  Prefactor     23.275        28.874        .16644E-04    .12279E-03
  22  norm          .10000E-03    5.6256       -.32217E-05** at limit **
  23  norm          .10000E-03    7.4339       -.79098E-05** at limit **
  24  Prefactor     .10000E-03    23.619       -.66521E-05** at limit **
  25  Prefactor     4.8306        5.7129       -.12555E-05   -.31462E-03
  26  Prefactor     69.913        44.361        .21960E-06    .28765E-04
  27  Prefactor     29.301        29.067       -.22638E-05   -.40650E-05
  28  Prefactor     .10000E-03    5.7658        .99546E-06** at limit **
  29  Normalizat    .78295        .21745        .52205E-08    .94320E-05
  30  Prefactor     1.1091        .14418       -.13066E-05    .21678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.97164
  Prefactor  = 0.0001
  norm       = 8.74791
  Prefactor  = 13.7723
  Prefactor  = 6.69864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.792145
  norm       = 1.30442
  Prefactor  = 0.00010034
  Prefactor  = 19.4006
  norm       = 32.5516
  Prefactor  = 0.0001
  Prefactor  = 21.4522
  Prefactor  = 0.0001
  Prefactor  = 23.2748
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83058
  Prefactor  = 69.9132
  Prefactor  = 29.3008
  Prefactor  = 0.0001
  Normalizat = 0.782952
  Prefactor  = 1.10909
 **********
 **   18 **HESSE 
 **********

 FCN=   6095.741     FROM HESSE     STATUS=OK           588 CALLS     4547 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.8590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4173        .11838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5541        .93976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9716        5.5444        .18036E-03   -1.5262    
   7  Prefactor     .10000E-03    8.5684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.7479        13.678        .13551E-03   -1.5116    
   9  Prefactor     13.772        35.600        .10793E-03   -1.4966    
  10  Prefactor     6.6986        10.366        .15503E-03   -1.5190    
  11  Prefactor     .10000E-03    11.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3914        .14024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .79214        .86930        .74853E-03   -1.5530    
  14  norm          1.3044        3.5179        .23618E-03   -1.5480    
  15  Prefactor     .10034E-03    22.165        .70896E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.401        29.047        .90929E-04   -1.4827    
  17  norm          32.552        13.002        .70241E-04   -1.4566    
  18  Prefactor     .10000E-03    5.4454        .17696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.452        230.84        .86573E-04   -1.4781    
  20  Prefactor     .10000E-03    4.2819        .15763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.275        28.905        .83028E-04   -1.4743    
  22  norm          .10000E-03    5.6237        .18082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.4226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.8306        5.7296        .18261E-03   -1.5268    
  26  Prefactor     69.913        44.393        .48008E-04   -1.4034    
  27  Prefactor     29.301        29.087        .74016E-04   -1.4625    
  28  Prefactor     .10000E-03    5.7715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .78295        .24338        .33643E-03   -1.0070    
  30  Prefactor     1.1091        .16269        .20189E-03   -.89177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09379e-09
Minuit parameter uncertainties:
  1  4.90696e-05
  2  1.83623e-06
  3  3.1173e-06
  4  1.22466e-06
  5  2.13406e-06
  6  5.54502
  7  1.47069e-06
  8  13.6826
  9  35.6546
  10  10.3687
  11  1.01753e-05
  12  7.25468e-06
  13  0.869319
  14  3.51849
  15  0.00549244
  16  29.0681
  17  13.003
  18  4.6438e-05
  19  141.444
  20  1.6076e-06
  21  28.9219
  22  2.39233e-06
  23  1.51794e-06
  24  9.97404e-06
  25  5.73022
  26  44.4145
  27  29.1006
  28  5.25129e-06
  29  0.243719
  30  0.162767
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.991e+01  4.441e+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.109e+00  1.628e-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.830e-01  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.57
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.46e-08 +/- 5.37e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.48e-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) = 6095.5224084
delta logL = 0.218548645512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6095.51438356
delta logL = 0.226573488057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.640       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0194       1.0000          .0000       10.000    
     3 'Normalizat'    .74572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1249       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=   6095.514     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      291 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.584        52.629        .57497E-04    .42270E-03
   2  Index         3.0207        .82907        .54722E-02    .15551E-03
   3  Normalizat    .74546        .23723        .34387E-03    .14600E-03
   4  Prefactor     1.1256        .16272        .20055E-03   -.13936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.5843
  Index      = 3.02074
  Normalizat = 0.745456
  Prefactor  = 1.12561
 **********
 **   18 **HESSE 
 **********

 FCN=   6095.514     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.584        47.151        .11499E-04   -1.4313    
   2  Index         3.0207        .74212        .21889E-03   -.40699    
   3  Normalizat    .74546        .23626        .13755E-04   -1.0213    
   4  Prefactor     1.1256        .16230        .40111E-04   -.88652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73027e-10
Minuit parameter uncertainties:
  1  47.1873
  2  0.74539
  3  0.236588
  4  0.162372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73368': 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) = 6095.51435348
delta logL = 0.226603561061

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.858e+01  4.719e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.021e+00  7.454e-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.126e+00  1.624e-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.455e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.09
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.02 +/- 0.75
Photon Flux (Free Index): 1.19e-07 +/- 8.14e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.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/73368/cmap_HighResolution_475977601_476236801_4FGL_J2339.6+0242_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-08', energy_flux2='2.35e-05', photon_flux_error='5.37e-08', dlogl='2.27e-01', energy_flux='2.33e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-30 02:52:41.686918', photon_index_error2='0.75', photon_index2='3.02', ts='4.57', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.78', time_epoch_completed='1632995561.69', return_code='0', job_id='73368', GAL2='1.13', EG2='0.75', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='8.14e-08', ts2='5.09', photon_index='2.55' WHERE bin_id='913' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 73368: <4FGL_J2339.6+0242_daily_bin913> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin913 354.904 2.7102 475977601 476236801 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 :                                   695.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            714 sec.

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

