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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin698
RA = 354.904, Dec = 2.7102
tmin = 420249601, tmax = 420508801
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='73046', job_status='RUN', time_executed='2021-09-30 02:42:38.974937', time_epoch_executed='1632994958.97' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73046

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73046/ft1_4FGL_J2339.6+0242_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73046/ft2_4FGL_J2339.6+0242_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73046/ft1_4FGL_J2339.6+0242_daily_bin698.fits outfile=/scratch/kocevski/73046/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin698.fits ra=354.904 dec=2.7102 rad=12.0 tmin=420249601.0 tmax=420508801.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 2.68
user 2.48
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73046/ft2_4FGL_J2339.6+0242_daily_bin698.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/73046/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin698.fits evtable="EVENTS" outfile="/scratch/kocevski/73046/ft1_filtered_4FGL_J2339.6+0242_daily_bin698.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73046/ft1_filtered_4FGL_J2339.6+0242_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/73046/ft2_4FGL_J2339.6+0242_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/73046/ltcube_420249601_420508801_4FGL_J2339.6+0242_daily_bin698.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/73046/ft2_4FGL_J2339.6+0242_daily_bin698.fits
.....................!
real 9.29
user 8.97
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73046/ft1_filtered_4FGL_J2339.6+0242_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/73046/ft2_4FGL_J2339.6+0242_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/73046/ltcube_420249601_420508801_4FGL_J2339.6+0242_daily_bin698.fits outfile=/scratch/kocevski/73046/expmap_420249601_420508801_4FGL_J2339.6+0242_daily_bin698.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/73046/ltcube_420249601_420508801_4FGL_J2339.6+0242_daily_bin698.fits
.....................!
real 149.84
user 146.09
sys 3.50

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/73046/ft1_filtered_4FGL_J2339.6+0242_daily_bin698.fits scfile=/scratch/kocevski/73046/ft2_4FGL_J2339.6+0242_daily_bin698.fits outfile=/scratch/kocevski/73046/cmap_420249601_420508801_4FGL_J2339.6+0242_daily_bin698.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73046/ft1_filtered_4FGL_J2339.6+0242_daily_bin698.fits scfile=/scratch/kocevski/73046/ft2_4FGL_J2339.6+0242_daily_bin698.fits outfile=/scratch/kocevski/73046/cmap_HighResolution_420249601_420508801_4FGL_J2339.6+0242_daily_bin698.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7737       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8254       1.0000         .10000E-03   10000.    
     6 'norm      '    5.4775       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.002       1.0000         .10000E-03   10000.    
     8 'norm      '    10.724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.625       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8245       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    107.17       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19793       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    20.103       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1626       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77165       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=   7601.331     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     3983 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0655        .13752E-07** at limit **
   2  Prefactor     .10000E-03    33.931       -.25371E-07** at limit **
   3  Prefactor     .10000E-03    10.847       -.15700E-06** at limit **
   4  Prefactor     2.7705        7.5779        .13312E-05   -.81595E-04
   5  norm          1.8245        1.8343        .13981E-06   -.94410E-04
   6  norm          5.4768        5.0089        .26863E-05   -.12215E-02
   7  Prefactor     13.994        14.652       -.10946E-05   -.10876E-03
   8  norm          10.723        9.5624        .17347E-06   -.88785E-04
   9  Prefactor     26.346        28.373        .57366E-06   -.14958E-04
  10  Prefactor     13.262        11.040        .19379E-06   -.20899E-04
  11  Prefactor     3.6445        12.757        .74384E-06   -.64663E-04
  12  Prefactor     .10000E-03    6.2129        .18060E-06** at limit **
  13  norm          .10000E-03    .34396        .75023E-06** at limit **
  14  norm          .10000E-03    4.5364        .32679E-06** at limit **
  15  Prefactor     22.620        11.199        .86231E-07   -.57750E-04
  16  Prefactor     .10000E-03    10.305        .77266E-07** at limit **
  17  norm          3.8286        7.6215        .86107E-06   -.71323E-04
  18  Prefactor     .10000E-03    4.9681       -.10850E-06** at limit **
  19  Prefactor     107.36        104.13       -.82895E-06    .13572E-03
  20  Prefactor     .10256E-03    7.2583        .39750E-05** at limit **
  21  Prefactor     .10000E-03    12.044        .65075E-07** at limit **
  22  norm          .10000E-03    7.8854        .76601E-08** at limit **
  23  norm          20.399        15.968       -.46894E-05   -.95680E-03
  24  Prefactor     .10000E-03    15.456        .98254E-07** at limit **
  25  Prefactor     .10000E-03    1.5131        .68290E-06** at limit **
  26  Prefactor     .10000E-03    17.532        .92347E-07** at limit **
  27  Prefactor     .10000E-03    16.842        .14282E-07** at limit **
  28  Prefactor     .10000E-03    4.4227        .33855E-07** at limit **
  29  Normalizat    1.1631        .17264       -.30799E-05   -.53792E-03
  30  Prefactor     .77143        .11623        .36487E-06   -.76328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.77048
  norm       = 1.82453
  norm       = 5.47677
  Prefactor  = 13.9944
  norm       = 10.7229
  Prefactor  = 26.3465
  Prefactor  = 13.2624
  Prefactor  = 3.64448
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 22.6203
  Prefactor  = 0.0001
  norm       = 3.82861
  Prefactor  = 0.0001
  Prefactor  = 107.363
  Prefactor  = 0.000102562
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.3995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1631
  Prefactor  = 0.771429
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.331     FROM HESSE     STATUS=OK           590 CALLS     4573 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0692        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7705        7.5912        .24436E-03   -1.5375    
   5  norm          1.8245        1.8189        .11348E-03   -1.5438    
   6  norm          5.4768        4.8491        .83759E-03   -1.5240    
   7  Prefactor     13.994        14.634        .10704E-03   -1.4960    
   8  norm          10.723        9.5621        .12235E-03   -1.5053    
   9  Prefactor     26.346        28.387        .78037E-04   -1.4681    
  10  Prefactor     13.262        11.040        .10999E-03   -1.4979    
  11  Prefactor     3.6445        12.740        .21159E-03   -1.5326    
  12  Prefactor     .10000E-03    6.3190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .55599        .96128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.7237        .36236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.620        11.144        .84211E-04   -1.4756    
  16  Prefactor     .10000E-03    10.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8286        7.5483        .20638E-03   -1.5317    
  18  Prefactor     .10000E-03    5.0265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     107.36        103.76        .19424E-03   -1.3632    
  20  Prefactor     .10256E-03    11.381        .60119E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.8948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          20.399        18.788        .89332E-04   -1.4804    
  24  Prefactor     .10000E-03    15.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.5403        .10458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.4335        .17906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1631        .20377        .25725E-03   -.87751    
  30  Prefactor     .77143        .13674        .21462E-03   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87271e-09
Minuit parameter uncertainties:
  1  2.72743e-06
  2  1.32804e-05
  3  3.13975e-06
  4  7.59383
  5  1.81891
  6  4.84947
  7  14.6374
  8  9.56345
  9  28.402
  10  11.0419
  11  12.7494
  12  1.00263e-05
  13  4.25938e-05
  14  6.55132e-07
  15  11.1448
  16  1.96229e-05
  17  7.55013
  18  8.72446e-06
  19  103.936
  20  0.0108029
  21  3.46333e-05
  22  5.95113e-06
  23  18.7934
  24  1.40145e-05
  25  6.07939e-06
  26  4.55414e-05
  27  4.26282e-05
  28  7.60734e-06
  29  0.20391
  30  0.136797
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  4.554e-05  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:  7.714e-01  1.368e-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.163e+00  2.039e-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: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73046/likelihoodResults_420249601_420508801_4FGL_J2339.6+0242_daily_bin698.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) = 7601.33130093
delta logL = -0.000271115685791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7601.33103144
delta logL = -1.62250489666e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2196       1.0000          .0000       10.000    
     3 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77143       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=   7601.331     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10555E-03    4.1116        .18142E-01** at limit **
   2  Index         3.0625        6.5307        .50000        .15400E-04
   3  Normalizat    1.1631        .24755E-02    .25725E-03    .59308E-04
   4  Prefactor     .77143        .17268E-02    .21462E-03    .39940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105553
  Index      = 3.06253
  Normalizat = 1.1631
  Prefactor  = 0.77143
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.331     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10555E-03    477.55        .60076E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0625        8.0157        .50000       -.39791    
   3  Normalizat    1.1631        .27576E-01    .10290E-04   -.87751    
   4  Prefactor     .77143        .19235E-01    .85849E-05   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25673e-07
Minuit parameter uncertainties:
  1  0.103826
  2  1297.01
  3  0.0275765
  4  0.019235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73046': 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) = 7601.33103108
delta logL = -1.26061877381e-06

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.056e-04  1.038e-01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.063e+00  1.297e+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:  7.714e-01  1.923e-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:  1.163e+00  2.758e-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/73046/cmap_HighResolution_420249601_420508801_4FGL_J2339.6+0242_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-30 02:54:16.007234', job_id='73046', GAL2='0.77', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632995656.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='698' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:54:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 73046: <4FGL_J2339.6+0242_daily_bin698> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin698 354.904 2.7102 420249601 420508801 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 :                                   695.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            836 sec.

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

