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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin680
RA = 354.904, Dec = 2.7102
tmin = 415584001, tmax = 415843201
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='73021', job_status='RUN', time_executed='2021-09-30 02:42:37.737343', time_epoch_executed='1632994957.74' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73021/ft1_4FGL_J2339.6+0242_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73021/ft2_4FGL_J2339.6+0242_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73021/ft1_4FGL_J2339.6+0242_daily_bin680.fits outfile=/scratch/kocevski/73021/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin680.fits ra=354.904 dec=2.7102 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.31
user 6.01
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73021/ft1_filtered_4FGL_J2339.6+0242_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/73021/ft2_4FGL_J2339.6+0242_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/73021/ltcube_415584001_415843201_4FGL_J2339.6+0242_daily_bin680.fits outfile=/scratch/kocevski/73021/expmap_415584001_415843201_4FGL_J2339.6+0242_daily_bin680.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/73021/ltcube_415584001_415843201_4FGL_J2339.6+0242_daily_bin680.fits
.....................!
real 192.51
user 186.90
sys 5.09

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/73021/ft1_filtered_4FGL_J2339.6+0242_daily_bin680.fits scfile=/scratch/kocevski/73021/ft2_4FGL_J2339.6+0242_daily_bin680.fits outfile=/scratch/kocevski/73021/cmap_415584001_415843201_4FGL_J2339.6+0242_daily_bin680.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73021/ft1_filtered_4FGL_J2339.6+0242_daily_bin680.fits scfile=/scratch/kocevski/73021/ft2_4FGL_J2339.6+0242_daily_bin680.fits outfile=/scratch/kocevski/73021/cmap_HighResolution_415584001_415843201_4FGL_J2339.6+0242_daily_bin680.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1873       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4387       1.0000         .10000E-03   10000.    
     6 'norm      '    15.786       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9755       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.956       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8649       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.058       1.0000         .10000E-03   10000.    
    13 'norm      '    .71858       1.0000         .10000E-03   10000.    
    14 'norm      '    14.645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7523       1.0000         .10000E-03   10000.    
    19 'Prefactor '    99.131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4898       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0899       1.0000         .10000E-03   10000.    
    23 'norm      '    61.104       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.760       1.0000         .10000E-03   10000.    
    27 'Prefactor '    38.032       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.0380       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84891       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94384       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=   4170.035     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     5187 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.754       -.68390E-06** at limit **
   2  Prefactor     .10000E-03    36.052        .20661E-05** at limit **
   3  Prefactor     .10000E-03    22.539        .96287E-06** at limit **
   4  Prefactor     1.1871        4.2451        .85915E-06    .26949E-05
   5  norm          2.4385        2.9643        .15293E-06   -.41141E-04
   6  norm          15.785        8.3171        .45401E-08   -.13833E-04
   7  Prefactor     6.9752        12.317        .72322E-07   -.50826E-05
   8  norm          .10000E-03    11.223        .10047E-06** at limit **
   9  Prefactor     37.937        45.095       -.13979E-05   -.23351E-04
  10  Prefactor     21.493        20.705        .12647E-06    .38068E-04
  11  Prefactor     9.8642        16.265        .16355E-06    .35453E-05
  12  Prefactor     12.057        14.314       -.11003E-07    .11501E-04
  13  norm          .71837        1.0096       -.22661E-06   -.34903E-03
  14  norm          14.646        10.066       -.11180E-07    .21534E-04
  15  Prefactor     .10000E-03    6.4553       -.64965E-08** at limit **
  16  Prefactor     .10000E-03    149.51       -.15052E-05** at limit **
  17  norm          .10004E-03    10.134       -.13549E-05** at limit **
  18  Prefactor     3.7594        12.089        .77601E-06    .27299E-03
  19  Prefactor     99.182        239.68        .56890E-06    .97426E-05
  20  Prefactor     3.4760        50.538        .51087E-05    .31354E-04
  21  Prefactor     .10000E-03    21.556        .12684E-05** at limit **
  22  norm          3.0893        27.711        .81656E-06    .72899E-05
  23  norm          61.129        48.606       -.13563E-05    .39726E-04
  24  Prefactor     .10000E-03    27.644       -.23566E-05** at limit **
  25  Prefactor     .10000E-03    7.7339       -.34820E-06** at limit **
  26  Prefactor     12.751        62.906       -.34942E-05   -.63018E-05
  27  Prefactor     38.032        32.031        .18545E-06    .19932E-04
  28  Prefactor     6.0371        14.969       -.63062E-07   -.62845E-05
  29  Normalizat    .84906        .25991        .57819E-06    .64367E-04
  30  Prefactor     .94377        .16829       -.89390E-06    .14421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.18712
  norm       = 2.43852
  norm       = 15.785
  Prefactor  = 6.97518
  norm       = 0.0001
  Prefactor  = 37.9374
  Prefactor  = 21.4928
  Prefactor  = 9.86421
  Prefactor  = 12.0572
  norm       = 0.718367
  norm       = 14.6457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100041
  Prefactor  = 3.75942
  Prefactor  = 99.1819
  Prefactor  = 3.47605
  Prefactor  = 0.0001
  norm       = 3.08931
  norm       = 61.1294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7514
  Prefactor  = 38.0321
  Prefactor  = 6.03713
  Normalizat = 0.849062
  Prefactor  = 0.943771
 **********
 **   18 **HESSE 
 **********

 FCN=   4170.035     FROM HESSE     STATUS=OK           596 CALLS     5783 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1871        4.1737        .24437E-03   -1.5490    
   5  norm          2.4385        2.9522        .11562E-03   -1.5396    
   6  norm          15.785        8.3133        .10081E-03   -1.4913    
   7  Prefactor     6.9752        12.305        .15190E-03   -1.5180    
   8  norm          .10000E-03    11.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.937        45.184        .65056E-04   -1.4475    
  10  Prefactor     21.493        20.701        .86398E-04   -1.4780    
  11  Prefactor     9.8642        16.264        .12758E-03   -1.5080    
  12  Prefactor     12.057        14.329        .11536E-03   -1.5013    
  13  norm          .71837        .96193        .71998E-03   -1.5538    
  14  norm          14.646        10.059        .10466E-03   -1.4942    
  15  Prefactor     .10000E-03    6.4677        .16020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    150.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10004E-03    33.361        .32384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7594        10.572        .20843E-03   -1.5320    
  19  Prefactor     99.182        239.48        .20188E-03   -1.3713    
  20  Prefactor     3.4760        51.483        .21644E-03   -1.5335    
  21  Prefactor     .10000E-03    21.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0893        27.610        .23072E-03   -1.5356    
  23  norm          61.129        48.441        .51330E-04   -1.4143    
  24  Prefactor     .10000E-03    27.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.9341        .34868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.751        62.811        .11214E-03   -1.4994    
  27  Prefactor     38.032        32.055        .64990E-04   -1.4474    
  28  Prefactor     6.0371        14.995        .16340E-03   -1.5217    
  29  Normalizat    .84906        .29936        .30643E-03   -.98274    
  30  Prefactor     .94377        .19284        .20795E-03   -.94628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44258e-09
Minuit parameter uncertainties:
  1  4.10185e-05
  2  0.000143207
  3  3.35225e-05
  4  4.17477
  5  2.95237
  6  8.31387
  7  12.3099
  8  5.28845e-06
  9  45.2245
  10  20.708
  11  16.2713
  12  14.333
  13  0.96195
  14  10.0604
  15  7.75595e-06
  16  8.89999e-05
  17  0.00234215
  18  10.5773
  19  241.878
  20  26.7822
  21  9.12798e-05
  22  18.4821
  23  48.4726
  24  0.00015535
  25  5.0805e-05
  26  56.6969
  27  32.0695
  28  15.0047
  29  0.299949
  30  0.192978
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.275e+01  5.670e+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:  9.438e-01  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.491e-01  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/73021/likelihoodResults_415584001_415843201_4FGL_J2339.6+0242_daily_bin680.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) = 4169.59491253
delta logL = 0.43973434845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4169.46978944
delta logL = 0.564857432923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35597E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.8906       1.0000          .0000       10.000    
     3 'Normalizat'    .76446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98493       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=   4169.470     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      334 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32880E-01    .58354        .25921E-02   -.75719E-02
   2  Index         6.9317        3.1245        .15946       -.80866E-04
   3  Normalizat    .76501        .53208E-01    .72535E-01   -.24076E-03
   4  Prefactor     .98461        .38119E-01    .46078E-01   -.91477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0328802
  Index      = 6.93168
  Normalizat = 0.765006
  Prefactor  = 0.984611
 **********
 **   18 **HESSE 
 **********

 FCN=   4169.470     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      367 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32880E-01    1.6822        .11823E-03   -1.5672    
   2  Index         6.9317        8.3054        .57598E-02    .39666    
   3  Normalizat    .76501        .20349        .32102E-03   -1.0138    
   4  Prefactor     .98461        .14257        .20403E-03   -.93244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.86523e-10
Minuit parameter uncertainties:
  1  0.469664
  2  7.41239
  3  0.203691
  4  0.142625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73021': 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) = 4169.46977415
delta logL = 0.564872721397

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.288e-02  4.697e-01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  6.932e+00  7.412e+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:  9.846e-01  1.426e-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.650e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 354.904 2.710
Photon Index (Free Index): 6.93 +/- 7.41
Photon Flux (Free Index): 8.51e-08 +/- 8.54e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.13e-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/73021/cmap_HighResolution_415584001_415843201_4FGL_J2339.6+0242_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='5.65e-01', photon_flux2='8.51e-08', job_status='DONE', time_completed='2021-09-30 02:54:37.086148', photon_index_error2='7.41', photon_index2='6.93', ts='0.06', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.13e-05', EG='0.85', time_epoch_completed='1632995677.09', return_code='0', job_id='73021', GAL2='0.98', EG2='0.77', return_code2='102', photon_flux_error2='8.54e-08', ts2='1.30', photon_index='2.55' WHERE bin_id='680' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:54:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 73021: <4FGL_J2339.6+0242_daily_bin680> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin680 354.904 2.7102 415584001 415843201 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 :                                   713.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            860 sec.

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

