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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin581
RA = 354.904, Dec = 2.7102
tmin = 389923201, tmax = 390182401
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='71859', job_status='RUN', time_executed='2021-09-30 02:39:50.845337', time_epoch_executed='1632994790.85' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71859

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71859/ft1_4FGL_J2339.6+0242_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71859/ft2_4FGL_J2339.6+0242_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71859/ft1_4FGL_J2339.6+0242_daily_bin581.fits outfile=/scratch/kocevski/71859/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin581.fits ra=354.904 dec=2.7102 rad=12.0 tmin=389923201.0 tmax=390182401.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.47
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71859/ft2_4FGL_J2339.6+0242_daily_bin581.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/71859/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin581.fits evtable="EVENTS" outfile="/scratch/kocevski/71859/ft1_filtered_4FGL_J2339.6+0242_daily_bin581.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/71859/ft1_filtered_4FGL_J2339.6+0242_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/71859/ft2_4FGL_J2339.6+0242_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/71859/ltcube_389923201_390182401_4FGL_J2339.6+0242_daily_bin581.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/71859/ft2_4FGL_J2339.6+0242_daily_bin581.fits
.....................!
real 11.69
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71859/ft1_filtered_4FGL_J2339.6+0242_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/71859/ft2_4FGL_J2339.6+0242_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/71859/ltcube_389923201_390182401_4FGL_J2339.6+0242_daily_bin581.fits outfile=/scratch/kocevski/71859/expmap_389923201_390182401_4FGL_J2339.6+0242_daily_bin581.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/71859/ltcube_389923201_390182401_4FGL_J2339.6+0242_daily_bin581.fits
.....................!
real 191.64
user 187.39
sys 3.94

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/71859/ft1_filtered_4FGL_J2339.6+0242_daily_bin581.fits scfile=/scratch/kocevski/71859/ft2_4FGL_J2339.6+0242_daily_bin581.fits outfile=/scratch/kocevski/71859/cmap_389923201_390182401_4FGL_J2339.6+0242_daily_bin581.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71859/ft1_filtered_4FGL_J2339.6+0242_daily_bin581.fits scfile=/scratch/kocevski/71859/ft2_4FGL_J2339.6+0242_daily_bin581.fits outfile=/scratch/kocevski/71859/cmap_HighResolution_389923201_390182401_4FGL_J2339.6+0242_daily_bin581.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87264E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.826       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1434       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7793       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8081       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8077       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .60094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .64874E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6926       1.0000         .10000E-03   10000.    
    14 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    33.696       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14888E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.789       1.0000         .10000E-03   10000.    
    22 'norm      '    15.330       1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.717       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.167       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .82609       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2045       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67280       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=   5280.109     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3982 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    9.0599        .12250E-05** at limit **
   2  Prefactor     23.817        33.380       -.27958E-06    .42170E-04
   3  Prefactor     5.7423        16.620       -.54254E-06    .27989E-04
   4  Prefactor     1.1417        6.5436       -.38650E-06    .71060E-05
   5  norm          1.7792        2.0185       -.65415E-07    .89497E-04
   6  norm          .10000E-03    3.9223       -.55854E-07** at limit **
   7  Prefactor     .10000E-03    3.8236       -.32546E-07** at limit **
   8  norm          .10000E-03    5.5369       -.30385E-07** at limit **
   9  Prefactor     8.7940        29.788       -.13805E-05    .19835E-04
  10  Prefactor     8.8067        10.351       -.19264E-06    .14342E-04
  11  Prefactor     .63436        13.664        .17043E-05    .47472E-05
  12  Prefactor     .10001E-03    43.166       -.96656E-05** at limit **
  13  norm          4.6939        1.3767       -.47229E-08    .83338E-03
  14  norm          .10000E-03    2.6835       -.10143E-06** at limit **
  15  Prefactor     .10000E-03    4.6055       -.16763E-06** at limit **
  16  Prefactor     .10000E-03    104.99        .30624E-05** at limit **
  17  norm          33.687        13.805       -.23764E-07    .85736E-04
  18  Prefactor     2.5751        8.9215       -.67679E-06   -.14987E-04
  19  Prefactor     .10000E-03    141.91       -.45531E-05** at limit **
  20  Prefactor     .10000E-03    6.7870       -.61907E-06** at limit **
  21  Prefactor     29.796        23.802        .14791E-06    .46470E-04
  22  norm          15.333        15.119       -.91765E-07    .77397E-05
  23  norm          .10000E-03    9.5778       -.91048E-07** at limit **
  24  Prefactor     42.682        48.221       -.14685E-05    .53773E-04
  25  Prefactor     .10000E-03    3.1971       -.53779E-06** at limit **
  26  Prefactor     18.112        41.971       -.13005E-05    .46829E-04
  27  Prefactor     .80303        37.056        .49096E-05   -.50232E-04
  28  Prefactor     .10000E-03    11.575       -.43834E-06** at limit **
  29  Normalizat    1.2047        .22001        .15661E-05    .22564E-03
  30  Prefactor     .67280        .13817        .80539E-06    .52376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Prefactor  = 23.8166
  Prefactor  = 5.74232
  Prefactor  = 1.14169
  norm       = 1.7792
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.79402
  Prefactor  = 8.80674
  Prefactor  = 0.634358
  Prefactor  = 0.000100007
  norm       = 4.69394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.6868
  Prefactor  = 2.57513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7955
  norm       = 15.3332
  norm       = 0.0001
  Prefactor  = 42.6816
  Prefactor  = 0.0001
  Prefactor  = 18.1117
  Prefactor  = 0.803028
  Prefactor  = 0.0001
  Normalizat = 1.20473
  Prefactor  = 0.672802
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.109     FROM HESSE     STATUS=OK           592 CALLS     4574 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    22.044        .37998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.817        33.273        .82064E-04   -1.4732    
   3  Prefactor     5.7423        16.530        .16753E-03   -1.5229    
   4  Prefactor     1.1417        6.5490        .35789E-03   -1.5494    
   5  norm          1.7792        1.9985        .10228E-03   -1.5441    
   6  norm          .10000E-03    3.9879        .14048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8311        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.5590        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.7940        29.797        .13506E-03   -1.5115    
  10  Prefactor     8.8067        10.355        .13506E-03   -1.5114    
  11  Prefactor     .63436        81.262        .46519E-02   -1.5549    
  12  Prefactor     .10001E-03    52.529        .35994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6939        1.3755        .44082E-04   -1.5275    
  14  norm          .10000E-03    2.6966        .11621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6196        .15228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    105.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          33.687        13.922        .69033E-04   -1.4547    
  18  Prefactor     2.5751        9.1048        .12721E-02   -1.5387    
  19  Prefactor     .10000E-03    142.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.796        23.796        .73408E-04   -1.4616    
  22  norm          15.333        15.122        .10230E-03   -1.4925    
  23  norm          .10000E-03    9.5986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     42.682        47.942        .30668E-03   -1.4400    
  25  Prefactor     .10000E-03    3.2933        .12720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.112        42.141        .93967E-04   -1.4857    
  27  Prefactor     .80303        202.31        .60153E-02   -1.5529    
  28  Prefactor     .10000E-03    11.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2047        .24434        .12726E-02   -.86457    
  30  Prefactor     .67280        .15933        .22607E-03   -1.0460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20978e-09
Minuit parameter uncertainties:
  1  0.00136237
  2  33.2985
  3  16.543
  4  5.46949
  5  1.99858
  6  3.29974e-05
  7  7.51062e-06
  8  1.9319e-05
  9  29.8475
  10  10.357
  11  14.3784
  12  0.001218
  13  1.37553
  14  3.97537e-06
  15  3.58019e-06
  16  0.000398703
  17  13.9235
  18  9.1097
  19  1.19955e-05
  20  7.95562e-06
  21  23.804
  22  15.1262
  23  6.8193e-06
  24  47.9854
  25  9.96926e-06
  26  42.2105
  27  25.5779
  28  3.56938e-05
  29  0.244572
  30  0.159436
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.811e+01  4.221e+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:  6.728e-01  1.594e-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.205e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71859/likelihoodResults_389923201_390182401_4FGL_J2339.6+0242_daily_bin581.txt

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) = 5279.47970587
delta logL = 0.629702009936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5279.42096651
delta logL = 0.688441372599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9195       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6785       1.0000          .0000       10.000    
     3 'Normalizat'    1.1280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70810       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=   5279.421     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9083        31.098        .74983E-02    .53191E-03
   2  Index         4.6812        3.1817        .14839        .11150E-03
   3  Normalizat    1.1283        .56071E-01    .59168E-01    .74675E-05
   4  Prefactor     .70808        .38343E-01    .42509E-01    .10016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90831
  Index      = 4.6812
  Normalizat = 1.12833
  Prefactor  = 0.708075
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.421     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9083        71.003        .83379E-04   -1.5432    
   2  Index         4.6812        7.3048        .51639E-02   -.63803E-01
   3  Normalizat    1.1283        .21091        .26167E-03   -.88847    
   4  Prefactor     .70808        .14215        .22088E-03   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.98219e-10
Minuit parameter uncertainties:
  1  23.3099
  2  6.67422
  3  0.21107
  4  0.142218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71859': 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): 102
logL (Free Index) = 5279.42096336
delta logL = 0.688444527637

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.081e-01  1.422e-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.128e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.68 +/- 6.67
Photon Flux (Free Index): 7.77e-08 +/- 7.12e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.39e-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/71859/cmap_HighResolution_389923201_390182401_4FGL_J2339.6+0242_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='6.88e-01', photon_flux2='7.77e-08', job_status='DONE', time_completed='2021-09-30 02:51:55.140284', photon_index_error2='6.67', photon_index2='4.68', ts='0.23', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.39e-05', EG='1.20', time_epoch_completed='1632995515.14', return_code='0', job_id='71859', GAL2='0.71', EG2='1.13', return_code2='102', photon_flux_error2='7.12e-08', ts2='1.72', photon_index='2.55' WHERE bin_id='581' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 71859: <4FGL_J2339.6+0242_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin581 354.904 2.7102 389923201 390182401 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 :                                   721.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

