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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1595
RA = 354.904, Dec = 2.7102
tmin = 652752001, tmax = 653011201
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='76698', job_status='RUN', time_executed='2021-09-30 02:51:18.125876', time_epoch_executed='1632995478.13' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76698/ft1_4FGL_J2339.6+0242_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76698/ft2_4FGL_J2339.6+0242_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76698/ft1_4FGL_J2339.6+0242_daily_bin1595.fits outfile=/scratch/kocevski/76698/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1595.fits ra=354.904 dec=2.7102 rad=12.0 tmin=652752001.0 tmax=653011201.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.17
user 2.92
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76698/ft1_filtered_4FGL_J2339.6+0242_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/76698/ft2_4FGL_J2339.6+0242_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/76698/ltcube_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.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/76698/ft2_4FGL_J2339.6+0242_daily_bin1595.fits
.....................!
real 12.99
user 12.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76698/ft1_filtered_4FGL_J2339.6+0242_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/76698/ft2_4FGL_J2339.6+0242_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/76698/ltcube_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.fits outfile=/scratch/kocevski/76698/expmap_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.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/76698/ltcube_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.fits
.....................!
real 193.17
user 187.67
sys 4.97

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/76698/ft1_filtered_4FGL_J2339.6+0242_daily_bin1595.fits scfile=/scratch/kocevski/76698/ft2_4FGL_J2339.6+0242_daily_bin1595.fits outfile=/scratch/kocevski/76698/cmap_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76698/ft1_filtered_4FGL_J2339.6+0242_daily_bin1595.fits scfile=/scratch/kocevski/76698/ft2_4FGL_J2339.6+0242_daily_bin1595.fits outfile=/scratch/kocevski/76698/cmap_HighResolution_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.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.61
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/76698/ft1_filtered_4FGL_J2339.6+0242_daily_bin1595.fits', '/scratch/kocevski/76698/ft2_4FGL_J2339.6+0242_daily_bin1595.fits', expMap='/scratch/kocevski/76698/expmap_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.fits', expCube='/scratch/kocevski/76698/ltcube_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/76698/Model_4FGL_J2339.6+0242_daily_bin1595.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/76698/ft1_filtered_4FGL_J2339.6+0242_daily_bin1595.fits
Spacecraft file(s): /scratch/kocevski/76698/ft2_4FGL_J2339.6+0242_daily_bin1595.fits
Exposure map: /scratch/kocevski/76698/expmap_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.fits
Exposure cube: /scratch/kocevski/76698/ltcube_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/76698/Model_4FGL_J2339.6+0242_daily_bin1595.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1160.40904278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1155.9352479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0500       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4932       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3379       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33406E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    9.2139       1.0000         .10000E-03   10000.    
     6 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12905       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12379E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43337       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.606       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30423       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .36382E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13973E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21985E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    16.962       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4680       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19534E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.090       1.0000         .10000E-03   10000.    
    22 'norm      '    .16279E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .61549       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.6526       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13907E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    531.54       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .30677E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .30884E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1508       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1155.928     FROM MIGRAD    STATUS=CONVERGED    249 CALLS      871 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2962        278.36       -.36700E-03    .40267E-02
   2  Prefactor     .18116        535.63       -.34038E-03    .30688E-02
   3  Prefactor     .10050E-03    522.15       -.28059E-03** at limit **
   4  Prefactor     .10358E-03    230.37       -.99552E-04** at limit **
   5  norm          9.4859        22.459        .17453E-04   -.67210E-03
   6  norm          .10000E-03    5.2315       -.85480E-05** at limit **
   7  Prefactor     .10000E-03    20.902        .18882E-04** at limit **
   8  norm          .10000E-03    51.118       -.40624E-04** at limit **
   9  Prefactor     .10000E-03    29.301       -.61346E-04** at limit **
  10  Prefactor     .57290        114.88        .11683E-03   -.96744E-05
  11  Prefactor     36.797        28.630        .34982E-04    .74372E-02
  12  Prefactor     .10650E-01    6195.8        .15378E-02    .18699E-02
  13  norm          .10000E-03    6.0567       -.10483E-04** at limit **
  14  norm          .10259E-03    200.44        .37726E-03** at limit **
  15  Prefactor     .10000E-03    29.325        .31191E-04** at limit **
  16  Prefactor     .10323E-03    7.8434        .37759E-04** at limit **
  17  norm          17.015        21.103       -.98708E-05   -.65308E-03
  18  Prefactor     .10000E-03    13.917        .16410E-04** at limit **
  19  Prefactor     .51696E-02    1282.7        .47844E-03   -.25370E-02
  20  Prefactor     .10008E-03    100.99        .17254E-03** at limit **
  21  Prefactor     50.715        60.476       -.46205E-04   -.83438E-02
  22  norm          .10000E-03    28.734        .22140E-04** at limit **
  23  norm          .10048E-03    237.29        .24303E-04** at limit **
  24  Prefactor     2.6526        1.0190         .0000         .0000    
  25  Prefactor     .10000E-03    50.693        .16265E-03** at limit **
  26  Prefactor     531.02        11.363       -.42393E-05    .74683E-02
  27  Prefactor     .10059E-03    129.66        .10430E-03** at limit **
  28  Prefactor     .10058E-03    1.8187        .35199E-04** at limit **
  29  Normalizat    .10000E-01    .18558       -.98677E-04** at limit **
  30  Prefactor     1.1508        .17804       -.18120E-04   -.20454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.29622
  Prefactor  = 0.181163
  Prefactor  = 0.000100501
  Prefactor  = 0.00010358
  norm       = 9.48589
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.572896
  Prefactor  = 36.7974
  Prefactor  = 0.0106499
  norm       = 0.0001
  norm       = 0.000102591
  Prefactor  = 0.0001
  Prefactor  = 0.000103234
  norm       = 17.0147
  Prefactor  = 0.0001
  Prefactor  = 0.00516959
  Prefactor  = 0.000100081
  Prefactor  = 50.7151
  norm       = 0.0001
  norm       = 0.000100481
  Prefactor  = 2.65262
  Prefactor  = 0.0001
  Prefactor  = 531.021
  Prefactor  = 0.000100589
  Prefactor  = 0.000100578
  Normalizat = 0.01
  Prefactor  = 1.15075
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1155.928     FROM HESSE     STATUS=FAILED       105 CALLS      976 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2962        9265.7        .58077E-02   -1.5480    
   2  Prefactor     .18116        7714.6        .64714E-02   -1.5623    
   3  Prefactor     .10050E-03    515.98        .94782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10358E-03    230.69        .91888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.4859        22.704        .33008E-02   -1.5092    
   6  norm          .10000E-03    5.2147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    50.986        .96488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.293        .90848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .57290        31.709        .59845E-01   -1.5557    
  11  Prefactor     36.797        64.144        .16560E-02   -1.4494    
  12  Prefactor     .10650E-01    6247.6        .10444E-01   -1.5687    
  13  norm          .10000E-03    6.0540        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10259E-03    202.06        .92034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.064        .90927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10323E-03    138.46        .10071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.015        19.221        .24312E-02   -1.4883    
  18  Prefactor     .10000E-03    13.766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .51696E-02    1338.8        .39452E-02   -1.5722    
  20  Prefactor     .10008E-03    101.08        .10125E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.715        63.870        .14027E-02   -1.4282    
  22  norm          .10000E-03    28.503        .10203E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10048E-03    237.61        .11734E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     559.10        556.35         .0000       -1.5382    
  25  Prefactor     .10000E-03    .20571        .16265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     531.02        .99954       -.42393E-05   -1.1057    
  27  Prefactor     .10059E-03    .21047        .10430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10058E-03    .28562        .35199E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .25774       -.98677E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.1508        1.1215       -.18120E-04   -.87860    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36761e-09
Minuit parameter uncertainties:
  1  270.732
  2  70.8606
  3  0.032454
  4  0.0576982
  5  22.7244
  6  1.36435e-06
  7  5.07085e-06
  8  4.65517e-05
  9  8.55054e-05
  10  8.52835
  11  64.2649
  12  10.7656
  13  1.03803e-06
  14  0.0459212
  15  0.000100447
  16  0.0424204
  17  19.2276
  18  3.95774e-06
  19  5.33442
  20  0.00572317
  21  63.9567
  22  1.5025e-05
  23  0.0214748
  24  1.01897
  25  7.78793e-06
  26  0.999537
  27  0.000704274
  28  0.000812629
  29  1.69945e-07
  30  1.14602
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1155.92801575

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.310e+02  9.995e-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.151e+00  1.146e+00  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.000e-02  1.699e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.31
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.43e-07 +/- 1.21e-09
Energy Flux (Fixed Index): 1.77e-04 +/- 3.33e-07

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) = 1155.28274706
delta logL = 0.645268690749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1155.17132441
delta logL = 0.756691336802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    697.26       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9486       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1560       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=   1155.171     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     697.17        371.50       -.32396E-05    .73607E-05
   2  Index         1.9483        .44466       -.77240E-05    .35320E-04
   3  Normalizat    .10000E-01    .18597       -.33420E-05** at limit **
   4  Prefactor     1.1565        .17407        .10320E-05    .79597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 697.17
  Index      = 1.94828
  Normalizat = 0.01
  Prefactor  = 1.15646
 **********
 **   18 **HESSE 
 **********

 FCN=   1155.171     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     697.17        370.71        .78528E-04   -1.0364    
   2  Index         1.9483        .43937        .35571E-02   -.65649    
   3  Normalizat    .10000E-01    .20363        .83804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1565        .16330        .16486E-03   -.87682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98339e-11
Minuit parameter uncertainties:
  1  372.028
  2  0.440276
  3  6.24229e-07
  4  0.163367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76698': 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) = 1155.17132017
delta logL = 0.756695581561

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.972e+02  3.720e+02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.948e+00  4.403e-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.156e+00  1.634e-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.000e-02  6.242e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.81
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.95 +/- 0.44
Photon Flux (Free Index): 4.01e-07 +/- 2.92e-07
Energy Flux (Free Index): 3.16e-04 +/- 2.65e-04

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/76698/cmap_HighResolution_652752001_653011201_4FGL_J2339.6+0242_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-07', energy_flux2='3.16e-04', photon_flux_error='1.21e-09', dlogl='7.57e-01', energy_flux='1.77e-04', photon_flux2='4.01e-07', job_status='DONE', time_completed='2021-09-30 02:57:15.785029', photon_index_error2='0.44', photon_index2='1.95', ts='6.31', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.65e-04', EG='0.01', time_epoch_completed='1632995835.79', return_code='101', job_id='76698', GAL2='1.16', EG2='0.01', return_code2='0', energy_flux_error='3.33e-07', photon_flux_error2='2.92e-07', ts2='7.81', photon_index='2.55' WHERE bin_id='1595' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 76698: <4FGL_J2339.6+0242_daily_bin1595> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1595> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:50:58 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:51:00 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:51:00 2021
Terminated at Thu Sep 30 02:57:16 2021
Results reported at Thu Sep 30 02:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1595 354.904 2.7102 652752001 653011201 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 :                                   343.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   376 sec.
    Turnaround time :                            378 sec.

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

