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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin786
RA = 354.904, Dec = 2.7102
tmin = 443059201, tmax = 443318401
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='73177', job_status='RUN', time_executed='2021-09-30 02:42:22.215751', time_epoch_executed='1632994942.22' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73177/ft1_4FGL_J2339.6+0242_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73177/ft2_4FGL_J2339.6+0242_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73177/ft1_4FGL_J2339.6+0242_daily_bin786.fits outfile=/scratch/kocevski/73177/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin786.fits ra=354.904 dec=2.7102 rad=12.0 tmin=443059201.0 tmax=443318401.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.79
user 3.59
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73177/ft2_4FGL_J2339.6+0242_daily_bin786.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/73177/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/73177/ft1_filtered_4FGL_J2339.6+0242_daily_bin786.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/73177/ft1_filtered_4FGL_J2339.6+0242_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/73177/ft2_4FGL_J2339.6+0242_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/73177/ltcube_443059201_443318401_4FGL_J2339.6+0242_daily_bin786.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/73177/ft2_4FGL_J2339.6+0242_daily_bin786.fits
.....................!
real 12.19
user 11.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73177/ft1_filtered_4FGL_J2339.6+0242_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/73177/ft2_4FGL_J2339.6+0242_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/73177/ltcube_443059201_443318401_4FGL_J2339.6+0242_daily_bin786.fits outfile=/scratch/kocevski/73177/expmap_443059201_443318401_4FGL_J2339.6+0242_daily_bin786.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/73177/ltcube_443059201_443318401_4FGL_J2339.6+0242_daily_bin786.fits
.....................!
real 191.19
user 186.60
sys 4.21

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/73177/ft1_filtered_4FGL_J2339.6+0242_daily_bin786.fits scfile=/scratch/kocevski/73177/ft2_4FGL_J2339.6+0242_daily_bin786.fits outfile=/scratch/kocevski/73177/cmap_443059201_443318401_4FGL_J2339.6+0242_daily_bin786.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73177/ft1_filtered_4FGL_J2339.6+0242_daily_bin786.fits scfile=/scratch/kocevski/73177/ft2_4FGL_J2339.6+0242_daily_bin786.fits outfile=/scratch/kocevski/73177/cmap_HighResolution_443059201_443318401_4FGL_J2339.6+0242_daily_bin786.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32504E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1284       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.0014       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.635       1.0000         .10000E-03   10000.    
     8 'norm      '    7.2053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.174       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.195       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.991       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2650       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.559       1.0000         .10000E-03   10000.    
    22 'norm      '    9.0747       1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.060       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.0340       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84965       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99941       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=   7083.235     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3972 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10123E-03    7.3193       -.22105E-06** at limit **
   2  Prefactor     .10000E-03    11.885        .24106E-06** at limit **
   3  Prefactor     .10000E-03    2.7968        .14798E-07** at limit **
   4  Prefactor     1.1278        5.5785        .23569E-05   -.23485E-03
   5  norm          .10000E-03    .50246        .34129E-08** at limit **
   6  norm          5.0007        5.9882        .30445E-07   -.25895E-03
   7  Prefactor     23.634        15.780        .24015E-06   -.20829E-05
   8  norm          7.2046        7.9454        .17156E-06   -.27388E-04
   9  Prefactor     .10004E-03    66.290       -.10716E-04** at limit **
  10  Prefactor     .10000E-03    8.8618       -.40503E-08** at limit **
  11  Prefactor     19.172        15.794        .37150E-06    .68737E-04
  12  Prefactor     15.195        8.4776        .38955E-06   -.18515E-03
  13  norm          .10000E-03    .28782        .70300E-07** at limit **
  14  norm          .10000E-03    2.7061       -.22160E-07** at limit **
  15  Prefactor     .10000E-03    4.9761       -.72180E-07** at limit **
  16  Prefactor     18.988        36.905        .13626E-07   -.28100E-04
  17  norm          .10000E-03    11.641       -.15135E-05** at limit **
  18  Prefactor     6.1960        6.8783        .32942E-05   -.93468E-03
  19  Prefactor     .10007E-03    73.045        .11782E-04** at limit **
  20  Prefactor     6.2716        8.4425        .71016E-06    .14948E-04
  21  Prefactor     38.557        27.376       -.56346E-06    .30548E-04
  22  norm          9.0701        22.167        .59301E-07    .37037E-04
  23  norm          .10000E-03    40.603        .90163E-06** at limit **
  24  Prefactor     10.051        24.856        .16314E-05    .90663E-04
  25  Prefactor     .10000E-03    1.2850        .48326E-07** at limit **
  26  Prefactor     .10000E-03    11.271        .71963E-06** at limit **
  27  Prefactor     7.0317        19.994        .15215E-05    .50968E-04
  28  Prefactor     .10000E-03    10.896       -.51668E-06** at limit **
  29  Normalizat    .84979        .18365       -.17432E-05    .26103E-04
  30  Prefactor     .99937        .12542       -.24269E-06   -.19266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12779
  norm       = 0.0001
  norm       = 5.00069
  Prefactor  = 23.6343
  norm       = 7.20458
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 19.1719
  Prefactor  = 15.1946
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9884
  norm       = 0.000100001
  Prefactor  = 6.19602
  Prefactor  = 0.000100066
  Prefactor  = 6.27163
  Prefactor  = 38.5566
  norm       = 9.07008
  norm       = 0.0001
  Prefactor  = 10.0513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.03172
  Prefactor  = 0.0001
  Normalizat = 0.849786
  Prefactor  = 0.999375
 **********
 **   18 **HESSE 
 **********

 FCN=   7083.235     FROM HESSE     STATUS=OK           598 CALLS     4570 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10123E-03    10.397        .71099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7980        .13746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1278        5.6781        .38438E-03   -1.5496    
   5  norm          .10000E-03    .50508        .58239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0007        5.9859        .17982E-03   -1.5261    
   7  Prefactor     23.634        15.788        .82394E-04   -1.4735    
   8  norm          7.2046        7.9445        .14943E-03   -1.5171    
   9  Prefactor     .10004E-03    71.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.172        15.802        .91469E-04   -1.4832    
  12  Prefactor     15.195        8.4712        .51375E-03   -1.4928    
  13  norm          .10000E-03    .42712        .86693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7731        .26981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.988        36.920        .91906E-04   -1.4836    
  17  norm          .10000E-03    12.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1960        7.2274        .80633E-03   -1.5210    
  19  Prefactor     .10007E-03    79.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2716        8.3379        .16037E-03   -1.5207    
  21  Prefactor     38.557        27.349        .64546E-04   -1.4465    
  22  norm          9.0701        22.200        .13305E-03   -1.5106    
  23  norm          .10000E-03    41.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.051        24.897        .12633E-03   -1.5074    
  25  Prefactor     .10000E-03    1.2949        .93022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.0317        19.995        .15126E-03   -1.5178    
  28  Prefactor     .10000E-03    10.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84979        .21535        .29484E-03   -.98248    
  30  Prefactor     .99937        .14817        .19715E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70517e-09
Minuit parameter uncertainties:
  1  0.00716186
  2  3.8872e-05
  3  1.40989e-06
  4  5.06167
  5  3.37791e-07
  6  5.98665
  7  15.791
  8  7.94564
  9  0.00357307
  10  6.13492e-06
  11  15.8051
  12  8.47183
  13  3.9433e-07
  14  1.85196e-06
  15  3.10161e-06
  16  36.9642
  17  0.000200313
  18  7.2284
  19  0.00459676
  20  8.33944
  21  27.3582
  22  22.2205
  23  1.93911e-06
  24  24.9225
  25  8.25978e-07
  26  0.00010327
  27  20.0141
  28  6.66053e-05
  29  0.215568
  30  0.148233
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.033e-04  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.994e-01  1.482e-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.498e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73177/likelihoodResults_443059201_443318401_4FGL_J2339.6+0242_daily_bin786.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): 102
logL (Free Index) = 7083.2349407
delta logL = -0.000421419179474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7083.23451928
delta logL = 5.27325028088e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5384       1.0000          .0000       10.000    
     3 'Normalizat'    .84977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7083.235     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10166E-03    354.06        .18142E-02** at limit **
   2  Index         2.4288        6.2129        .50000        .59515E-05
   3  Normalizat    .84979        .25214E-01    .29484E-03   -.30847E-06
   4  Prefactor     .99937        .18263E-01    .19715E-03    .13840E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101661
  Index      = 2.42884
  Normalizat = 0.849785
  Prefactor  = 0.999375
 **********
 **   18 **HESSE 
 **********

 FCN=   7083.235     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10166E-03    1283.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4288        6.5078        .50000       -.54011    
   3  Normalizat    .84979        .55527E-01    .11794E-04   -.98248    
   4  Prefactor     .99937        .40215E-01    .78858E-05   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.91047e-08
Minuit parameter uncertainties:
  1  0.0944165
  2  2772.53
  3  0.0555303
  4  0.0402166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73177': 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) = 7083.23451915
delta logL = 1.26970007841e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.017e-04  9.442e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.429e+00  2.773e+03  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.994e-01  4.022e-02  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.498e-01  5.553e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/73177/cmap_HighResolution_443059201_443318401_4FGL_J2339.6+0242_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-30 02:56:41.732324', job_id='73177', GAL2='1.00', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632995801.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='786' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 73177: <4FGL_J2339.6+0242_daily_bin786> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin786 354.904 2.7102 443059201 443318401 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 :                                   851.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

