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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin545
RA = 354.904, Dec = 2.7102
tmin = 380592001, tmax = 380851201
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='71796', job_status='RUN', time_executed='2021-09-30 02:37:43.542143', time_epoch_executed='1632994663.54' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71796/ft1_4FGL_J2339.6+0242_daily_bin545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71796/ft2_4FGL_J2339.6+0242_daily_bin545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71796/ft1_4FGL_J2339.6+0242_daily_bin545.fits outfile=/scratch/kocevski/71796/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin545.fits ra=354.904 dec=2.7102 rad=12.0 tmin=380592001.0 tmax=380851201.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 4.77
user 4.52
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71796/ft1_filtered_4FGL_J2339.6+0242_daily_bin545.fits" evtable="EVENTS" scfile=/scratch/kocevski/71796/ft2_4FGL_J2339.6+0242_daily_bin545.fits sctable="SC_DATA" outfile=/scratch/kocevski/71796/ltcube_380592001_380851201_4FGL_J2339.6+0242_daily_bin545.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/71796/ft2_4FGL_J2339.6+0242_daily_bin545.fits
.....................!
real 11.69
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71796/ft1_filtered_4FGL_J2339.6+0242_daily_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/71796/ft2_4FGL_J2339.6+0242_daily_bin545.fits sctable="SC_DATA" expcube=/scratch/kocevski/71796/ltcube_380592001_380851201_4FGL_J2339.6+0242_daily_bin545.fits outfile=/scratch/kocevski/71796/expmap_380592001_380851201_4FGL_J2339.6+0242_daily_bin545.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/71796/ltcube_380592001_380851201_4FGL_J2339.6+0242_daily_bin545.fits
.....................!
real 194.37
user 189.34
sys 4.70

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/71796/ft1_filtered_4FGL_J2339.6+0242_daily_bin545.fits scfile=/scratch/kocevski/71796/ft2_4FGL_J2339.6+0242_daily_bin545.fits outfile=/scratch/kocevski/71796/cmap_380592001_380851201_4FGL_J2339.6+0242_daily_bin545.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.52
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.157       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3234       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.889       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.980       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9450       1.0000         .10000E-03   10000.    
    14 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5421       1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.983       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0000       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.795       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.189       1.0000         .10000E-03   10000.    
    23 'norm      '    .10685E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    101.91       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .28890       1.0000         .10000E-03   10000.    
    26 'Prefactor '    71.254       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.0303       1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.984       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .43362       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1180       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=   4666.464     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3943 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7351        7.4388       -.32441E-07    .46166E-05
   2  Prefactor     .10000E-03    16.329        .56496E-06** at limit **
   3  Prefactor     29.155        19.125       -.13013E-06    .43723E-05
   4  Prefactor     .10000E-03    6.4347       -.41553E-07** at limit **
   5  norm          1.3226        2.4344       -.76296E-07   -.10606E-03
   6  norm          .10000E-03    1.6079        .37996E-08** at limit **
   7  Prefactor     .10000E-03    5.0354        .20922E-08** at limit **
   8  norm          17.639        17.146        .10772E-05    .16823E-04
   9  Prefactor     51.875        44.060       -.94446E-05   -.59952E-04
  10  Prefactor     2.2412        6.7341        .63376E-06   -.89588E-03
  11  Prefactor     .10000E-03    14.576       -.27862E-06** at limit **
  12  Prefactor     25.980        17.416       -.12233E-05    .16008E-04
  13  norm          1.9448        1.2818       -.41186E-07    .18992E-03
  14  norm          .10000E-03    4.9759       -.18029E-07** at limit **
  15  Prefactor     9.5418        12.044       -.11072E-07   -.97003E-05
  16  Prefactor     59.978        62.949       -.46143E-05   -.45438E-05
  17  norm          2.9977        5.2926        .21980E-06   -.12687E-02
  18  Prefactor     .10000E-03    2.8254       -.10187E-06** at limit **
  19  Prefactor     .10000E-03    119.88        .37274E-06** at limit **
  20  Prefactor     18.807        23.032        .42474E-06    .14188E-03
  21  Prefactor     .10000E-03    7.4266       -.22975E-07** at limit **
  22  norm          14.185        24.037       -.49134E-06   -.53409E-05
  23  norm          .10000E-03    22.217       -.31421E-06** at limit **
  24  Prefactor     101.92        106.43        .74848E-05    .33352E-04
  25  Prefactor     .30087        5.6250       -.49177E-06    .77256E-04
  26  Prefactor     71.250        47.947       -.24601E-05   -.21518E-06
  27  Prefactor     3.0239        21.394        .54411E-05    .61878E-05
  28  Prefactor     26.988        26.610       -.54441E-06    .35208E-04
  29  Normalizat    .43393        .26533        .25441E-05    .56246E-04
  30  Prefactor     1.1179        .16505       -.21399E-06    .54070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.73509
  Prefactor  = 0.0001
  Prefactor  = 29.1554
  Prefactor  = 0.0001
  norm       = 1.32257
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6392
  Prefactor  = 51.875
  Prefactor  = 2.24124
  Prefactor  = 0.0001
  Prefactor  = 25.9796
  norm       = 1.9448
  norm       = 0.0001
  Prefactor  = 9.54178
  Prefactor  = 59.9781
  norm       = 2.99767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8074
  Prefactor  = 0.0001
  norm       = 14.1845
  norm       = 0.0001
  Prefactor  = 101.918
  Prefactor  = 0.300874
  Prefactor  = 71.2501
  Prefactor  = 3.02389
  Prefactor  = 26.9877
  Normalizat = 0.433925
  Prefactor  = 1.11787
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.464     FROM HESSE     STATUS=OK           590 CALLS     4533 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7351        7.4354        .16772E-03   -1.5229    
   2  Prefactor     .10000E-03    16.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.155        19.027        .74197E-04   -1.4628    
   4  Prefactor     .10000E-03    6.6040        .33835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3226        2.3815        .13424E-03   -1.5478    
   6  norm          .10000E-03    1.6128        .84582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0435        .14969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.639        17.095        .95352E-04   -1.4868    
   9  Prefactor     51.875        44.041        .55676E-04   -1.4266    
  10  Prefactor     2.2412        10.150        .13721E-02   -1.5409    
  11  Prefactor     .10000E-03    14.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.980        17.370        .78594E-04   -1.4688    
  13  norm          1.9448        1.2747        .57767E-04   -1.5429    
  14  norm          .10000E-03    4.9958        .14856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5418        12.214        .12973E-03   -1.5090    
  16  Prefactor     59.978        63.139        .51804E-04   -1.4158    
  17  norm          2.9977        6.5337        .11610E-02   -1.5362    
  18  Prefactor     .10000E-03    2.8489        .11205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    119.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.807        24.234        .92385E-04   -1.4840    
  21  Prefactor     .10000E-03    7.4321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.185        24.038        .10633E-03   -1.4955    
  23  norm          .10000E-03    22.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     101.92        105.95        .39828E-04   -1.3685    
  25  Prefactor     .30087        40.392        .23845E-02   -1.5598    
  26  Prefactor     71.250        47.892        .47558E-04   -1.4018    
  27  Prefactor     3.0239        21.254        .23311E-03   -1.5360    
  28  Prefactor     26.988        26.447        .77121E-04   -1.4669    
  29  Normalizat    .43393        .26900        .39872E-03   -1.1558    
  30  Prefactor     1.1179        .17383        .18500E-03   -.88898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60214e-09
Minuit parameter uncertainties:
  1  7.43657
  2  2.93879e-06
  3  19.0308
  4  9.68992e-06
  5  2.3817
  6  1.87296e-06
  7  4.26992e-06
  8  17.0998
  9  44.0689
  10  9.54156
  11  3.35331e-05
  12  17.3732
  13  1.27469
  14  1.76434e-07
  15  12.2173
  16  63.2099
  17  6.53528
  18  2.40085e-06
  19  4.20945e-06
  20  24.2465
  21  6.81113e-07
  22  24.0539
  23  4.42557e-06
  24  106.151
  25  6.97588
  26  47.9176
  27  16.0414
  28  26.4585
  29  0.269802
  30  0.17392
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.125e+01  4.792e+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.118e+00  1.739e-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:  4.339e-01  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.62e-08 +/- 5.79e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.60e-05

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

Saving results to:
/scratch/kocevski/71796/likelihoodResults_380592001_380851201_4FGL_J2339.6+0242_daily_bin545.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) = 4664.31269026
delta logL = 2.15081813329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4664.28754875
delta logL = 2.17595964849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4497       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9588       1.0000          .0000       10.000    
     3 'Normalizat'    .32198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1788       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=   4664.288     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      279 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4090        19.320        .65339E-02    .28357E-03
   2  Index         4.9678        2.7872        .76028E-01    .12260E-03
   3  Normalizat    .32224        .90325E-01    .10381        .48141E-04
   4  Prefactor     1.1788        .64541E-01    .35152E-01   -.30321E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.409
  Index      = 4.96777
  Normalizat = 0.322242
  Prefactor  = 1.17884
 **********
 **   18 **HESSE 
 **********

 FCN=   4664.288     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      312 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4090        26.942        .47928E-04   -1.5398    
   2  Index         4.9678        3.3413        .32181E-02   -.64462E-02
   3  Normalizat    .32224        .22597        .45962E-03   -1.2153    
   4  Prefactor     1.1788        .16320        .18073E-03   -.86985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.05807e-11
Minuit parameter uncertainties:
  1  16.1214
  2  3.65935
  3  0.226612
  4  0.163274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71796': 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) = 4664.28753789
delta logL = 2.17597050885

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.409e+00  1.612e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.968e+00  3.659e+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:  1.179e+00  1.633e-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:  3.222e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.45
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.97 +/- 3.66
Photon Flux (Free Index): 1.64e-07 +/- 7.91e-08
Energy Flux (Free Index): 2.19e-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/71796/cmap_HighResolution_380592001_380851201_4FGL_J2339.6+0242_daily_bin545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', photon_flux='8.62e-08', energy_flux2='2.19e-05', photon_flux_error='5.79e-08', dlogl='2.18e+00', energy_flux='2.38e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-30 02:49:16.689713', photon_index_error2='3.66', photon_index2='4.97', ts='3.53', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.02e-07', energy_flux_error2='1.35e-05', EG='0.43', time_epoch_completed='1632995356.69', return_code='0', job_id='71796', GAL2='1.18', EG2='0.32', return_code2='102', energy_flux_error='1.60e-05', photon_flux_error2='7.91e-08', ts2='8.45', photon_index='2.55' WHERE bin_id='545' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:49:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 71796: <4FGL_J2339.6+0242_daily_bin545> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin545 354.904 2.7102 380592001 380851201 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            815 sec.

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

